<font size="-1">Hi Harald,<font color="#550055"><br><br>2011/7/23 Harald Welte <span dir="ltr"><<a href="mailto:laforge@gnumonks.org" target="_blank">laforge@gnumonks.org</a>></span><br><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

I've committed some changes a couple of minutes ago (to libosmocore +<br>
openbsc) that make lcr compile again.<br></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<br>
The only missing part is one minor change to lcr:<br>
<br>
diff --git a/gsm_bs.h b/gsm_bs.h<br>
index 8a55213..45bf083 100644<br>
--- a/gsm_bs.h<br>
+++ b/gsm_bs.h<br>
@@ -1,5 +1,6 @@<br>
 extern "C" {<br>
<div> #include <openbsc/gsm_data.h><br>
</div>+#include <openbsc/mncc.h><br>
 }<br>
<br>
 /* GSM port class */ <br></blockquote></font><div><br>
Compiles now, thanks!<br> </div><font color="#550055"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>
> Starting osmo-nitb with -P and -m parameters, LCR can connect to MNCC<br>
> socket. But any try to start voice traffic either from or to a mobile<br>
> station results into these continuous messages:<br>
<br>
</div>I will try to look into it, but I'm not sure when I find time to do so,<br>
there are lots of other issues on my todo list pending at the moment.<br></blockquote></font><div><br>Okay, I see.<br><br>It works now, I traced down the problem to LCR.<br>The file gsm.cpp contains following function at line 200:<br>

<br>    int send_and_free_mncc(void *instance, unsigned int msg_type, void *data)<br><br>There is an if-Query:<br>    if (instance) {<br>#ifdef WITH_GSM_BS<br>        ret = mncc_send((struct gsm_network *)instance, msg_type, data);<br>

#endif<br>#ifdef WITH_GSM_MS<br>        ret = mncc_send((struct osmocom_ms *)instance, msg_type, data);<br>#endif<br>    }<br><br>The problem is: The query is always false, so no messages are sent to OpenBSC.<br>If I comment out the if-query, everything works as expected: Calls can be made mobile originated and mobile terminated.<br>

However, I don't think the if-query is there without a reason.<br><br>Within gsm_bs.cpp, send_and_free_mncc is called with parameter p_m_g_instance, which is written at Line 64:<br><br>p_m_g_instance = gsm->network;<br>

<br>-- Lennart</div></font>