The error is solved. This only happens if I start LCR and then OpenBSC because with LCR OpenBSC is also started. <br><br>Regards<br>Ellen<br><br><div class="gmail_quote">2012/6/26 Ellen Apolinar <span dir="ltr"><<a href="mailto:ellen.apolinar.td@googlemail.com" target="_blank">ellen.apolinar.td@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">@Don: Thanks, yes, that was the problem. I didn't know that the version from <a href="http://linux-call-router.de" target="_blank">linux-call-router.de</a> is so old. <br>
<br>@Mailinglist:<br><br>I tried it again. And this time I installed it from git:<br>



        
        
        
        <blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="1">git clone git://<a href="http://git.misdn.eu/lcr.git/" target="_blank">git.misdn.eu/lcr.git/</a><br>


cd /usr/src/lcr<br>./configure –without-asterisk --with-gsm-bs<br>make<br>make install</font><br></blockquote><div> </div>In the last installation I installed it from <a href="http://linux-call-router.de" target="_blank">linux-call-router.de</a>. Configuration with --with-sip wasn't available. <br>


<br>lcr start:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="1">** LCR  Version 1.10<br><br>ERROR Cannot get device information for port 1. (ioctl IMGETDEVINFO failed ret=-1)<br>


LCR 1.10 started, waiting for calls...<br></font></blockquote><br>lcradmin state<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="1">Ext(port 0: hfc-e1.1) TE ptp l2hold use:0  L2 unkn  L1 unkn<br>


Int (port 1: ) extension  not loaded<br></font></blockquote><br><br>Also OpenBSC worked. Now I get this error massage:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">

<font size="1">./osmo-nitb -c openbsc.cfg -C<br>1 device found<br>        id:             0<br>        Dprotocols:     00000018<br>        Bprotocols:     0000006e<br>        protocol:       3<br>        nrbchan:        30<br>

        name:           hfc-e1.1<br>could not bind l2 socket Device or resource busy<br><0005> bsc_init.c:512 Error enabling E1 input driver<br></font></blockquote><br>I don't know what is wrong and how I can solve this. Google wasn't very helpful in this case. <br>

<br>And how can I connect LCR to OpenBSC? <br><br>And what can I do with lcradmin state?<br><br>Best regards<span class="HOEnZb"><font color="#888888"><br>Ellen</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">
2012/6/26 Ellen Apolinar <span dir="ltr"><<a href="mailto:ellen.apolinar.td@googlemail.com" target="_blank">ellen.apolinar.td@googlemail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Andreas,<br><br>I try the way over SIP. But perhaps I make something wrong.<br><br>What I want to do:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">



<font size="1">cd /usr/src/lcr<br>./configure --prefix=/usr/src/lcr --without-misdn --with-sip</font><br></blockquote><br>What I get:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">



<font size="1">configure: WARNING: unrecognized options: --without-misdn, --with-sip</font><br></blockquote><br>What I am able to do:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">



<font size="1">./configure --prefix=/usr/src/lcr --with<br>--with-asterisk    --with-gsm-ms      --with-PACKAGE     --with-ssl         <br>--with-gsm-bs      --without-PACKAGE  --with-ss5</font>         <br></blockquote>


<br>
Makefile:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="1">ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE = #<br>ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE = <br>



ENABLE_GSM_BS_FALSE = #<br>ENABLE_GSM_BS_TRUE = <br>ENABLE_GSM_FALSE = #<br>ENABLE_GSM_MS_FALSE = <br>ENABLE_GSM_MS_TRUE = #<br>ENABLE_GSM_TRUE = <br>ENABLE_SS5_FALSE = <br>ENABLE_SS5_TRUE = #</font><br></blockquote><br>


I change to:<br>
<blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="1">ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE = #<br>ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE = <br>



<span style="background-color:rgb(255,255,153)">ENABLE_GSM_BS_FALSE = </span><br style="background-color:rgb(255,255,153)"><span style="background-color:rgb(255,255,153)">ENABLE_GSM_BS_TRUE = #</span><br>ENABLE_GSM_FALSE = #<br>



ENABLE_GSM_MS_FALSE = #<br>ENABLE_GSM_MS_TRUE = <br>ENABLE_GSM_TRUE = <br>ENABLE_SS5_FALSE = <br>ENABLE_SS5_TRUE = #<br></font></blockquote><br>make:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">



<font size="1"><div>make  all-am<br>make[1]: Entering directory `/usr/src/lcr'<br></div><div><div>gcc   -DWITH_GSM_BS -I./openbsc/include -I./libosmocore/include -I./openbsc   -Wall -DCONFIG_DATA="\"/usr/local/lcr\"" -DSHARE_DATA="\"/usr/local/lcr\"" -DLOG_DIR="\"/usr/local/lcr\"" -DEXTENSION_DATA="\"/usr/local/lcr/extensions\"" -D_GNU_SOURCE -fPIC -c chan_lcr.c -o chan_lcr.po<br>



chan_lcr.c: In function ‘send_setup_to_lcr’:<br>chan_lcr.c:644:12: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:655:12: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c: In function ‘lcr_in_setup’:<br>



chan_lcr.c:858:2: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast [enabled by default]<br>/usr/include/asterisk/channel.h:1118:2: note: expected ‘int’ but argument is of type ‘char *’<br>



chan_lcr.c:883:6: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:885:6: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:887:6: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:890:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:893:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:896:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:900:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:903:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:906:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:909:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c: In function ‘handle_queue’:<br>chan_lcr.c:1707:18: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’<br>



chan_lcr.c: In function ‘lcr_request’:<br>chan_lcr.c:1820:2: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast [enabled by default]<br>/usr/include/asterisk/channel.h:1118:2: note: expected ‘int’ but argument is of type ‘char *’<br>



chan_lcr.c: In function ‘lcr_call’:<br>chan_lcr.c:1927:9: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1927:31: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1928:29: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:1931:9: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1931:32: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1932:30: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:1934:9: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1934:33: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1935:31: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c: In function ‘lcr_write’:<br>chan_lcr.c:2164:6: error: wrong type argument to unary exclamation mark<br>chan_lcr.c:2166:20: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘format_t’)<br>



chan_lcr.c: In function ‘lcr_read’:<br>chan_lcr.c:2229:25: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’<br>chan_lcr.c: In function ‘lcr_indicate’:<br>chan_lcr.c:2274:8: warning: assignment from incompatible pointer type [enabled by default]<br>



chan_lcr.c:2289:8: warning: assignment from incompatible pointer type [enabled by default]<br>chan_lcr.c:2316:8: warning: assignment from incompatible pointer type [enabled by default]<br>chan_lcr.c:2381:14: error: dereferencing pointer to incomplete type<br>



chan_lcr.c:2382:33: error: dereferencing pointer to incomplete type<br>chan_lcr.c: At top level:<br>chan_lcr.c:2602:2: warning: initialization from incompatible pointer type [enabled by default]<br>chan_lcr.c:2602:2: warning: (near initialization for ‘lcr_tech.requester’) [enabled by default]<br>



chan_lcr.c: In function ‘load_module’:<br>chan_lcr.c:2818:2: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type [enabled by default]<br>/usr/include/asterisk/module.h:458:5: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’<br>



make[1]: *** [chan_lcr.po] Error 1<br>make[1]: Leaving directory `/usr/src/lcr'<br>make: *** [all] Error 2<br></div></div></font></blockquote><div><div><br>make install:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">



<font size="1">gcc   -DWITH_GSM_BS -I./openbsc/include -I./libosmocore/include -I./openbsc   -Wall -DCONFIG_DATA="\"/usr/local/lcr\"" -DSHARE_DATA="\"/usr/local/lcr\"" -DLOG_DIR="\"/usr/local/lcr\"" -DEXTENSION_DATA="\"/usr/local/lcr/extensions\"" -D_GNU_SOURCE -fPIC -c chan_lcr.c -o chan_lcr.po<br>



chan_lcr.c: In function ‘send_setup_to_lcr’:<br>chan_lcr.c:644:12: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:655:12: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c: In function ‘lcr_in_setup’:<br>



chan_lcr.c:858:2: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast [enabled by default]<br>/usr/include/asterisk/channel.h:1118:2: note: expected ‘int’ but argument is of type ‘char *’<br>



chan_lcr.c:883:6: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:885:6: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:887:6: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:890:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:893:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:896:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:900:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:903:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:906:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:909:7: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c: In function ‘handle_queue’:<br>chan_lcr.c:1707:18: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’<br>



chan_lcr.c: In function ‘lcr_request’:<br>chan_lcr.c:1820:2: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast [enabled by default]<br>/usr/include/asterisk/channel.h:1118:2: note: expected ‘int’ but argument is of type ‘char *’<br>



chan_lcr.c: In function ‘lcr_call’:<br>chan_lcr.c:1927:9: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1927:31: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1928:29: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:1931:9: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1931:32: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1932:30: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c:1934:9: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1934:33: error: ‘struct ast_channel’ has no member named ‘cid’<br>chan_lcr.c:1935:31: error: ‘struct ast_channel’ has no member named ‘cid’<br>



chan_lcr.c: In function ‘lcr_write’:<br>chan_lcr.c:2164:6: error: wrong type argument to unary exclamation mark<br>chan_lcr.c:2166:20: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘format_t’)<br>



chan_lcr.c: In function ‘lcr_read’:<br>chan_lcr.c:2229:25: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’<br>chan_lcr.c: In function ‘lcr_indicate’:<br>chan_lcr.c:2274:8: warning: assignment from incompatible pointer type [enabled by default]<br>



chan_lcr.c:2289:8: warning: assignment from incompatible pointer type [enabled by default]<br>chan_lcr.c:2316:8: warning: assignment from incompatible pointer type [enabled by default]<br>chan_lcr.c:2381:14: error: dereferencing pointer to incomplete type<br>



chan_lcr.c:2382:33: error: dereferencing pointer to incomplete type<br>chan_lcr.c: At top level:<br>chan_lcr.c:2602:2: warning: initialization from incompatible pointer type [enabled by default]<br>chan_lcr.c:2602:2: warning: (near initialization for ‘lcr_tech.requester’) [enabled by default]<br>



chan_lcr.c: In function ‘load_module’:<br>chan_lcr.c:2818:2: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type [enabled by default]<br>/usr/include/asterisk/module.h:458:5: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’<br>



</font></blockquote><br></div></div>lcr start:<br><blockquote style="margin:0px 0px 0px 6.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="1"><div>** LCR  Version 1.7<br>
<br>000000 DEBUG (in getrulesetbyname() line 1871): ruleset main found.<br>
</div><div><span style="background-color:rgb(255,255,153)">GSM is enabled, but not compiled. Use --with-gsm-bs or --with-gsm-ms while configure!</span><br></div>--------------------- <a href="tel:2012.06.26%2010" value="+12012062610" target="_blank">2012.06.26 10</a>:35:27 000001<div>


<br>000001 DEBUG (in join_free() line 99): no more pending join(s), done!<br>
</div></font></blockquote><br>Sofiasip is installed. Is there anything I forget so I can't configure LCR with sip?<br><br>Best regards.<span><font color="#888888"><br>Ellen</font></span><div>
<div><br><br><div class="gmail_quote">2012/6/24 Andreas Eversberg <span dir="ltr"><<a href="mailto:andreas@eversberg.eu" target="_blank">andreas@eversberg.eu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Ellen Apolinar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
OpenBSC seems to work without errors but to connect it with asterisk I need mISDN, mISDNuser and LCR.<br>
<br>
</blockquote></div>
hi,<br>
<br>
if you like to use lcr with gsm (bs or ms), then you cannot use asterisk channel driver. it only works with isdn. but you can use sip. in order to do that you may:<br>
<br>
- disable mISDN  (--without-misdn)<br>
- enable sip (--with-sip), you also need to have sipsofia installed<br>
- add a sip interface (see default/interface.conf). then everything is possible without mISDN, but you cannot use isdn phones/lines in this setup.<br>
<br>
example to just connect GSM and SIP interface without routing:<br>
<br>
 [GSM]<br>
gsm-bs<br>
tones yes<br>
earlyb no<br>
#rtp-bridge<br>
bridge SIP<br>
<br>
<br>
[SIP]<br>
sip <local ip>[:local sip port] <asterisk sip ip>[:asterisk sip port]<br>
tones no<br>
earlyb yes<br>
#rtp-bridge<br>
bridge GSM<br>
<br>
if asterisk and lcr run on the same machine, you need to change the sip port on asterisk or lcr side.<br>
<br>
if you like to use GSM codec on asterisk side, you may enable rtp-bridge. then the asterisk directly negotiates the codec with the phone.<br>
in this case GSM codec must be supported by asterisk. tested codecs are FR(standard) and EFR.<br>
<br>
regards,<br>
<br>
andreas<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>