<div dir="ltr">One other note.  I have gotten it to ring the mobile from asterisk.  But from the mobile to asterisk does not work.<div><br></div><div>Thank you again for any assistance!</div><div><br></div><div>Regards,</div>

<div>-Don</div><div><br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 12:58 PM, Don Fanning <span dir="ltr"><<a href="mailto:don@00100100.net">don@00100100.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div></div><div class="h5"><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">With that removed I get a new error: "the number you have dialed is not assigned".  It's not routing to the asterisk yet (the idea is that it hits extension 500 on the asterisk which is the welcome to asterisk default extension) but no activity is present on the asterisk console.  Sorry, the documentation is rather weak in this area.</div>


<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thanks again for any assistance!</div>


<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-Don</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">---</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">


lcr output</div></div></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div><div></div><div class="h5"><div>000000 DEBUG (in _action_init_call() line 34): EPOINT(3): Creating new join instance.</div>

<div>000000 DEBUG (in JoinRemote() line 32): Constructor(new join) ref=1002</div>
<div>000000 DEBUG (in JoinRemote() line 36): New remote join connected to endpoint id 3 and application asterisk (ref=1002)</div><div>000000 TRACE 10.02.12 07:51:42.885 EP(3): ACTION remote (setup)  number 500  remote asterisk</div>


<div>000000 DEBUG (in message_put() line 61): message MESSAGE_SETUP written from 3 to 3 (memory 8629248)</div><div>000000 DEBUG (in message_put() line 61): message MESSAGE_OVERLAP written from 3 to 3 (memory 862cb00)</div>


<div>000000 TRACE 10.02.12 07:51:42.885 EP(3): SETUP ACKNOWLEDGE  to CH(3)</div><div>000000 DEBUG (in message_get() line 107): message MESSAGE_TONE reading from 3 to 3 (memory 86220d8)</div><div>000000 DEBUG (in message_epoint() line 602): PORT(GSM-1-in) isdn port with (caller id 200) setting tone 'dialing' dir ''</div>


<div>000000 DEBUG (in set_tone() line 1543): isdn port now plays tone:'dialing'.</div><div>000000 DEBUG (in message_get() line 107): message MESSAGE_SETUP reading from 3 to 3 (memory 8629248)</div><div>000000 DEBUG (in message_epoint() line 60): Message 5 of endpoint 3 from LCR to remote (ref=1002)</div>


<div>000000 DEBUG (in message_get() line 107): message MESSAGE_OVERLAP reading from 3 to 3 (memory 862cb00)</div><div>000000 DEBUG (in message_epoint() line 778): Pgsm_bs(GSM-1-in) gsm port with (caller id 200) received unhandled nessage: 7</div>


<div>000000 DEBUG (in b_sock_callback() line 2009): DL_ESTABLISH confirm: bchannel is now activated (socket 14).</div><div>000000 TRACE 10.02.12 07:51:42.886 CH(3): BCHANNEL control  port 1  DSP-DTMF 1</div><div>000000 DEBUG (in message_remote() line 78): Message 12 of endpoint 3 from remote to LCR (ref=1002)</div>


<div>000000 DEBUG (in message_put() line 61): message MESSAGE_RELEASE written from 3 to 3 (memory 861d228)</div><div>000000 DEBUG (in message_get() line 107): message MESSAGE_RELEASE reading from 3 to 3 (memory 861d228)</div>


<div>000000 DEBUG (in ea_message_join() line 3397): EPOINT(3) epoint with terminal '' (caller id '200') received release with cause 1 location 1</div><div>000000 DEBUG (in join_disconnect_release() line 3092): EPOINT(3) we have own cause or we have no patterns. (own_cause=0 pattern=0)</div>


<div>000000 DEBUG (in message_put() line 61): message MESSAGE_TONE written from 3 to 3 (memory 8620ae0)</div><div>000000 TRACE 10.02.12 07:51:42.887 EP(3): TONE  to CH(3)  directory default  name cause_01</div><div>000000 DEBUG (in message_put() line 61): message MESSAGE_DISCONNECT written from 3 to 3 (memory 8624398)</div>


<div>000000 TRACE 10.02.12 07:51:42.887 EP(3): DISCONNECT  to CH(3)  cause value=1 location=1-Local-PBX</div><div>000000 DEBUG (in message_get() line 107): message MESSAGE_TONE reading from 3 to 3 (memory 8620ae0)</div><div>


000000 DEBUG (in message_epoint() line 602): PORT(GSM-1-in) isdn port with (caller id 200) setting tone 'cause_01' dir ''</div><div>000000 DEBUG (in set_tone() line 1543): isdn port now plays tone:'cause_01'.</div>


<div>000000 DEBUG (in message_get() line 107): message MESSAGE_DISCONNECT reading from 3 to 3 (memory 8624398)</div><div>000000 TRACE 10.02.12 07:51:42.887 CH(3): MNCC_DISC_REQ LCR<->BSC  port 1  progress coding=3 location=1 descr=8  cause coding=3 location=1 value=1</div>


<div>000000 DEBUG (in new_state() line 252): PORT(GSM-1-in) new state PORT_STATE_IN_PROCEEDING --> PORT_STATE_OUT_DISCONNECT</div><div>000000 DEBUG (in message_epoint() line 778): Pgsm_bs(GSM-1-in) gsm port with (caller id 200) received unhandled nessage: 11</div>


<div>000000 DEBUG (in read_audio() line 482): PORT(GSM-1-in) no tone: /usr/local/lcr/tones_american/cause_01</div><div>000000 DEBUG (in read_audio() line 585): PORT(GSM-1-in) opening tone: /usr/local/lcr/tones_american/cause_01_loop</div>


<div>000000 DEBUG (in read_audio() line 585): PORT(GSM-1-in) opening tone: /usr/local/lcr/tones_american/cause_01_loop</div><div>000000 TRACE 10.02.12 07:51:52.720 CH(3): MNCC_REL_IND LCR<->BSC  port 1</div><div>000000 DEBUG (in message_put() line 61): message MESSAGE_RELEASE written from 3 to 3 (memory 861d580)</div>


<div>000000 DEBUG (in free_epointlist() line 81): PORT(3) removed epoint from port</div><div>000000 DEBUG (in new_state() line 252): PORT(GSM-1-in) new state PORT_STATE_OUT_DISCONNECT --> PORT_STATE_RELEASE</div><div>

000000 DEBUG (in message_get() line 107): message MESSAGE_RELEASE reading from 3 to 3 (memory 861d580)</div>
<div>000000 DEBUG (in ea_message_port() line 2735): EPOINT(3) release with cause=16 location=0 (terminal '', caller id '200')</div><div>000000 TRACE 10.02.12 07:51:52.720 EP(3): RELEASE  from CH(3)  cause value=16 location=0-User</div>


<div>000000 DEBUG (in port_disconnect_release() line 2207): EPOINT(3) current multipoint cause 0 location 0, received cause 16 location 0.</div><div>000000 DEBUG (in port_disconnect_release() line 2209): EPOINT(3) new multipoint cause 16 location 0.</div>


<div>000000 DEBUG (in process_hangup() line 2420): EPOINT(3): terminal ''</div><div>000000 DEBUG (in process_hangup() line 2500): EPOINT(3): terminal : current action 'remote' has a hangup function, so we call it...</div>


<div>000000 TRACE 10.02.12 07:51:52.721 EP(3): ACTION hangup</div><div>000000 DEBUG (in free_portlist() line 185): EPOINT(3) removed port_list from endpoint</div><div>000000 DEBUG (in release() line 215): EPOINT(3): do pending release (joincause 16 location 0)</div>


<div>000000 DEBUG (in release() line 233): EPOINT(3) do pending release (portcause 16 portlocation)</div><div>000000 DEBUG (in release() line 310): EPOINT(3) do pending release of epoint itself.</div><div>000000 DEBUG (in ~Pgsm_bs() line 62): Destroyed GSM BS process(GSM-1-in).</div>


<div>000000 DEBUG (in ~Pgsm() line 159): Destroyed GSM process(GSM-1-in).</div><div>000000 DEBUG (in drop_bchannel() line 1074): PmISDN(GSM-1-in) dropping bchannel</div><div>000000 TRACE 10.02.12 07:51:52.721 CH(3): BCHANNEL deactivate  port 1  channel 1</div>


<div>000000 DEBUG (in ~PmISDN() line 224): destroyed mISDNPort(GSM-1-in). Currently 0 objects</div><div>000000 DEBUG (in ~Port() line 210): removing port of type 4625, name 'GSM-1-in'</div><div>000000 DEBUG (in ~Endpoint() line 134): removed endpoint 3.</div>


<div>000000 DEBUG (in b_sock_callback() line 2017): DL_RELEASE confirm: bchannel is now de-activated (socket 14).</div></div></div><div>000000 TRACE 10.02.12 07:51:52.721 CH: BCHANNEL remove socket  port 1  channel 1  socket 14</div>


<div>---</div><div><div></div><div class="h5"><div><div>Interface.conf for detail.</div><div><br></div><div>OpenBSC:/usr/local/lcr# cat interface.conf</div><div># interface.conf</div><div>################</div><div># Example of an ISDN interface on port 0 used for external calls.</div>


<div><br></div><div>#[Ext]</div><div>#extern</div><div>#portnum 0</div><div><br></div><div># Example of a multilink ISDN interface (Anlagenanschluss) on port 2</div><div># and 3</div><div><br></div><div>#[Ext]</div><div>

#extern</div>
<div>#portnum 2</div><div>#portnum 3</div><div><br></div><div><br></div><div># Example of an PTP ISDN interface on port 0</div><div># Layer-2-Hold is required to keep link alive.</div><div><br></div><div>#[Ext]</div><div>


#extern</div><div>#portnum 0</div><div>#ptp</div><div>#layer2hold yes</div><div><br></div><div><br></div><div># Example of an internal ISDN interface on port 1, which accepts all extensions</div><div><br></div><div>#[Int]</div>


<div>#extension</div><div>#portnum 1</div><div>#nt</div><div><br></div><div><br></div><div># Example of an ISDN interface on port 1, which accepts only extensions</div><div># 201, 202 and 203</div><div><br></div><div>#[Int]</div>


<div>#extension</div><div>#msn 201,202,203</div><div>#portnum 1</div><div>#nt</div><div><br></div><div><br></div><div># Example of three ISDN interfaces on port 1, 2 and 3, which accept</div><div># extension 201 on all interfaces, and extension 202 and 203 on the first port</div>


<div># only.</div><div># Hint: To make extension ring on all three interfaces parallel, use</div><div># "interface Int1,Int2,In3" in extension's settings file.</div><div><br></div><div>#[Int1]</div><div>#extension</div>


<div>#msn 201,202,203</div><div>#portnum 1</div><div>#nt</div><div><br></div><div>#[Int2]</div><div>#extension</div><div>#msn 201</div><div>#portnum 2</div><div>#nt</div><div><br></div><div>#[Int3]</div><div>#extension</div>


<div>#msn 201</div><div>#portnum 3</div><div>#nt</div><div><br></div><div><br></div><div># Example of an ISDN interface on port 0 that requires screening of caller IDs.</div><div># This is required if the connected line doesn't screen caller IDs.</div>


<div># Also this interface will connect bchannel during call setup, so tones are</div><div># required.</div><div><br></div><div>#[Ext]</div><div>#extern</div><div>#screen-out unknown 300  national 21250993300</div><div>#screen-out unknown 2%  national 212509932%</div>


<div>#tones yes</div><div>#portnum 0</div><div><br></div><div><br></div><div># Example of an ISDN PRI interface on port 0 that has directed channels.</div><div># 10 channels (channel 1-10) are incomming only.</div><div># 10 channels (channel 11-15,17-21) are outgoing only.</div>


<div># 10 channels (channel 22-31) are both way.</div><div># We prefer to use directed channels first, then we request any channel.</div><div># Outgoing calls on both-way-channels shall be indicated as "any channel".</div>


<div># (Siemens EWSD will select bot-way-channels when indicated that way.)</div><div><br></div><div>#[Ext]</div><div>#extern</div><div>#portnum 0</div><div>#layer2hold</div><div>#channel-in 1,2,3,4,5,6,7,8,9,10,22,23,24,25,26,27,28,29,30,31</div>


<div>#channel-out force,11,12,13,14,15,17,18,19,20,21,any</div><div><br></div><div><br></div><div># Example of an ISDN interface that runs in NT-mode, but provides tones during</div><div># setup. Also we provide tones during setup also.</div>


<div># This is usefull to interconnect to another PBX.</div><div># Additinally the timeout values for the different call states are adjusted to 60 seconds.</div><div># They are: setup, dialing, proceeding, alerting, disconnect</div>


<div><br></div><div>#[PBX]</div><div>#portnum 4</div><div>#nt</div><div>#layer2hold yes</div><div>#earlyb yes</div><div>#tones yes</div><div>#timeouts 60 60 60 60 60</div><div><br></div><div><br></div><div># Example of an interface on port 0 connected to another LCR</div>


<div># This can be done by direct cross cable (terminated of course) or via L1oIP.</div><div># Since the remote side (NT-mode) normally doesn't accept informations like</div><div># redirected number or display facility, use 'te-special' to even transmit that</div>


<div># against the ISDN specifications. A remote LCR can handle that.</div><div># Now all information elements can be transmitted in both directions.</div><div><br></div><div>#[Ext]</div><div>#extern</div><div>#portnum 0</div>


<div>#te-special</div><div><br></div><div><br></div><div># Alternatively give port name. You will find the name with 'isdninfo' tool.</div><div><br></div><div>#[Int2]</div><div>#portname hfc-s_usb.1</div><div>#nt</div>


<div><br></div><div><br></div><div># The remote switch may reject extreamly large numbers to be dialed during</div><div># setup message. Define a limit of maximum numbers to dial. The rest of</div><div># digits will be dialed after setup via overlap dialing.</div>


<div><br></div><div>#[Ext]</div><div>#extern</div><div>#portnum 0</div><div>#dialmax 20</div><div><br></div><div><br></div><div># Example of an ISDN interface on port 1, with alternate tones_dir to use.</div><div># In this case, the tones are "german" tones generated by mISDN_dsp.ko.</div>


<div># It is possible to give different sample sets, like "tones_german".</div><div><br></div><div>#[Int]</div><div>#extension</div><div>#msn 201,202,203</div><div>#tones_dir german</div><div>#portnum 1</div><div>


#nt</div><div><br></div><div><br></div><div># A special case for GSM Network interface.</div><div># You may add 'extension' and 'msn' keywords to turn all your subscribers</div><div># in you GSM network to internal 'extensions'.</div>


<div># The MSN numbers will equal the subscriber number.</div><div>[GSM]</div><div>gsm-bs</div><div>tones yes</div><div>earlyb no</div><div><br></div><div># A special case for GSM Mobile Station interface.</div><div># give "gsm-ms <name of mobile instance>".</div>


<div># You may add 'extern' to make this interface the external line by default.</div><div>#[GSM]</div><div>#gsm-ms 1</div><div>#tones no</div><div>#earlyb yes</div><div>##extern</div><div><br></div><div><br></div>


<div># Use chan_lcr (Asterisk PBX interface) as internal interface.</div><div># The interface requires mISDN_l1loop.ko to be loaded:</div><div>#  modprobe mISDN_l1loop nchannel=8 # use up to 8 b-channels</div><div># The caller ID is used as extension, if "extension" parameter is given.</div>


<div># Use "screen-in % xxx" to modify any caller id to xxx.</div><div># An internal extension does not receive tones ("earlyb"), but sends them.</div><div>[ast]</div><div>remote asterisk</div><div>extension</div>


<div>#screen-in % 209</div><div>earlyb no</div><div>tones yes</div><div><br></div><div><br></div><div># Use Sofia-SIP as SIP point-to-point interface</div><div>#[sip]</div><div>#sip <local ip> <remote ip></div>


<div>#sip 10.0.0.12 10.0.0.34</div><div>#earlyb no</div><div>#tones no</div><div><br></div><div><br></div><div># Hint: Enter "lcr interface" for quick help on interface options.</div><div><br></div><div><br></div>


<div># Add your interfaces here:</div><div><br></div><div><br></div><div>#[Ext]</div><div>#extern</div><div>#portnum 0</div><div><br></div><div><br></div><div>#[Int]</div><div>#extension</div><div>#msn 200,201,202,203</div>


<div>#portnum 1</div><div>#nt</div></div><div><br></div></div></div></div><br><br><div class="gmail_quote"><div class="im">On Fri, Feb 10, 2012 at 1:40 AM, Andreas Eversberg <span dir="ltr"><<a href="mailto:andreas@eversberg.eu" target="_blank">andreas@eversberg.eu</a>></span> wrote:<br>


</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Don Fanning wrote:<br>
> So my next question is how do I create an extension for the mobile and<br>
> link it to asterisk?  Is there a way for LCR to automatically generate<br>
> extensions?<br>
</div>hi don,<br>
<br>
remove "extension" keyword from your interface config. all calls are<br>
then treated as external calls.<br>
<br>
<br>
regards,<br>
<font color="#888888"><br>
andreas<br>
<br>
</font></blockquote></div></div></div><br></div>
</blockquote></div><br></div></div>