Calls with OpenBSC+LCR+Asterisk

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Arturo Rivas pfc.rivas at gmail.com
Mon Jun 25 17:11:08 UTC 2012


Hi list!

I'm trying make calls between sip phones and mobiles throw OpenBSC but
doesn't works. I've registered extensions in Asterisk and mobile phones in
OpenBSC. When I try call inter mobile phones and LCR shows (error in red):

*000000 DEBUG (in Port() line 149): new port of type 4625, name 'GSM-1-in'*
*000000 DEBUG (in PmISDN() line 182): Created new mISDNPort(GSM-1-in).
Currently 1 objects use, port #1*
*000000 DEBUG (in Pgsm() line 151): Created new GSMPort(GSM-1-in).*
*000000 DEBUG (in Pgsm_bs() line 54): Created new GSMBSPort(GSM-1-in).*
*000000 TRACE 25.06.12 18:48:30.344 CH(18): MT_NEW_L3ID INDICATION  port 1
 callref new=0x8000000c*
*000000 TRACE 25.06.12 18:48:30.344 CH(18): CHANNEL SELECTION (setup)  port
1  channel reserved=0  conclusion 'channel available'  connect channel=1*
*000000 DEBUG (in seize_bchannel() line 1028): PmISDN(GSM-1-in) seizing
bchannel 1 (index 0)*
*000000 ERROR (in _bchannel_create() line 415): Error: Failed to bind
bchannel-socket for index 0 with mISDN-DSP layer (errno=92). Did you load
mISDN_dsp.ko?*
*000000 DEBUG (in bchannel_open() line 228): Activating GSM side channel
index 0.*
*000000 TRACE 25.06.12 18:48:30.345 CH(18): MNCC_SETUP_IND LCR<->BSC  port
1  calling number=29848 imsi=460003113237934  dialing number=02000*
*000000 DEBUG (in Endpoint() line 48): EPOINT(18): Allocating enpoint 18
and connecting it with: ioport*
*000000 DEBUG (in portlist_new() line 146): EPOINT(18) allocating port_list.
*
*000000 DEBUG (in epointlist_new() line 125): PORT(18) allocating
epoint_list.*
*000000 TRACE 25.06.12 18:48:30.345 CH(18): unknown LCR<->BSC  port 1  mode
0x01*
*000000 TRACE 25.06.12 18:48:30.345 CH(18): MNCC_CALL_PROC_REQ LCR<->BSC
 port 1  progress coding=3 location=1 descr=8*
*000000 DEBUG (in new_state() line 252): PORT(GSM-1-in) new state
PORT_STATE_IDLE --> PORT_STATE_IN_PROCEEDING*
*000000 TRACE 25.06.12 18:48:30.345 CH(18): unknown LCR<->BSC  port 1*
*000000 DEBUG (in message_put() line 61): message MESSAGE_SETUP written
from 18 to 18 (memory 8ccc588)*
*000000 DEBUG (in message_get() line 107): message MESSAGE_SETUP reading
from 18 to 18 (memory 8ccc588)*
*000000 DEBUG (in ea_message_port() line 2649): EPOINT(18) incoming call
from callerid=29848, dialing=02000*
*000000 TRACE 25.06.12 18:48:30.345 EP(18): SETUP  from CH(18)  caller id
number=29848 present=allowed  dialing 02000  complete true*
*000000 DEBUG (in port_setup() line 1535): EPOINT(18) incoming call is
external or voip*
*000000 DEBUG (in port_setup() line 1616): EPOINT(18) call from external
port*
*000000 DEBUG (in message_put() line 61): message MESSAGE_TONE written from
18 to 18 (memory 8ccfe40)*
*000000 TRACE 25.06.12 18:48:30.345 EP(18): TONE  to CH(18)  directory
default  name dialing*
*000000 DEBUG (in process_dialing() line 2300): EPOINT(18): terminal ''
dialing: '02000', checking matching rule of ruleset 'main'*
*000000 DEBUG (in route() line 1914): parsing ruleset 'main'*
*000000 DEBUG (in route() line 1916): checking rule in line 8*
*000000 TRACE 25.06.12 18:48:30.345 EP(18): ACTION (match)  action remote
 line 8*
*000000 DEBUG (in process_dialing() line 2324): EPOINT(18): a rule with
action 'remote' matches.*
*000000 DEBUG (in process_dialing() line 2361): EPOINT(18): terminal :
current action 'remote' has a init function, so we call it...*
*000000 DEBUG (in process_dialing() line 2372): EPOINT(18): terminal ''
action: remote (dialing '02000')*
*000000 DEBUG (in process_dialing() line 2375): EPOINT(18): terminal :
current action 'remote' has a dialing function, so we call it...*
*000000 DEBUG (in _action_init_call() line 34): EPOINT(18): Creating new
join instance.*
*000000 TRACE 25.06.12 18:48:30.346 EP(18): ACTION remote (not available)
 applicatio astersik*
*000000 DEBUG (in message_put() line 61): message MESSAGE_DISCONNECT
written from 18 to 18 (memory 8cd36f8)*
*000000 TRACE 25.06.12 18:48:30.346 EP(18): DISCONNECT  to CH(18)  cause
value=27 location=1-Local-PBX*
*000000 DEBUG (in message_put() line 61): message MESSAGE_TONE written from
18 to 18 (memory 8cd6fb0)*
*000000 TRACE 25.06.12 18:48:30.346 EP(18): TONE  to CH(18)  directory
default  name cause_1b*
*000000 DEBUG (in message_get() line 107): message MESSAGE_TONE reading
from 18 to 18 (memory 8ccfe40)*
*000000 DEBUG (in message_epoint() line 602): PORT(GSM-1-in) isdn port with
(caller id 29848) setting tone 'dialing' dir ''*
*000000 DEBUG (in set_tone() line 1532): isdn port now plays tone:'dialing'.
*
*000000 DEBUG (in message_get() line 107): message MESSAGE_DISCONNECT
reading from 18 to 18 (memory 8cd36f8)*
*000000 TRACE 25.06.12 18:48:30.346 CH(18): MNCC_DISC_REQ LCR<->BSC  port 1
 progress coding=3 location=1 descr=8  cause coding=3 location=1 value=27*
*000000 DEBUG (in new_state() line 252): PORT(GSM-1-in) new state
PORT_STATE_IN_PROCEEDING --> PORT_STATE_OUT_DISCONNECT*
*000000 DEBUG (in message_epoint() line 778): Pgsm_bs(GSM-1-in) gsm port
with (caller id 29848) received unhandled nessage: 11*
*000000 DEBUG (in message_get() line 107): message MESSAGE_TONE reading
from 18 to 18 (memory 8cd6fb0)*
*000000 DEBUG (in message_epoint() line 602): PORT(GSM-1-in) isdn port with
(caller id 29848) setting tone 'cause_1b' dir ''*
*000000 DEBUG (in set_tone() line 1532): isdn port now plays
tone:'cause_1b'.*
*000000 TRACE 25.06.12 18:48:40.552 CH(18): MNCC_REL_IND LCR<->BSC  port 1
 cause coding=3 location=0 value=16*
*000000 DEBUG (in message_put() line 61): message MESSAGE_RELEASE written
from 18 to 18 (memory 8ccaf90)*
*000000 DEBUG (in free_epointlist() line 81): PORT(18) removed epoint from
port*
*000000 DEBUG (in new_state() line 252): PORT(GSM-1-in) new state
PORT_STATE_OUT_DISCONNECT --> PORT_STATE_RELEASE*
*000000 DEBUG (in message_get() line 107): message MESSAGE_RELEASE reading
from 18 to 18 (memory 8ccaf90)*
*000000 DEBUG (in ea_message_port() line 2735): EPOINT(18) release with
cause=16 location=0 (terminal '', caller id '29848')*
*000000 TRACE 25.06.12 18:48:40.552 EP(18): RELEASE  from CH(18)  cause
value=16 location=0-User*
*000000 DEBUG (in port_disconnect_release() line 2207): EPOINT(18) current
multipoint cause 0 location 0, received cause 16 location 0.*
*000000 DEBUG (in port_disconnect_release() line 2209): EPOINT(18) new
multipoint cause 16 location 0.*
*000000 DEBUG (in process_hangup() line 2420): EPOINT(18): terminal ''*
*000000 DEBUG (in process_hangup() line 2500): EPOINT(18): terminal :
current action 'remote' has a hangup function, so we call it...*
*000000 TRACE 25.06.12 18:48:40.553 EP(18): ACTION hangup*
*000000 DEBUG (in free_portlist() line 185): EPOINT(18) removed port_list
from endpoint*
*000000 DEBUG (in release() line 215): EPOINT(18): do pending release
(joincause 16 location 0)*
*000000 DEBUG (in release() line 233): EPOINT(18) do pending release
(portcause 16 portlocation)*
*000000 DEBUG (in release() line 310): EPOINT(18) do pending release of
epoint itself.*
*000000 DEBUG (in ~Pgsm_bs() line 62): Destroyed GSM BS process(GSM-1-in).*
*000000 DEBUG (in ~Pgsm() line 159): Destroyed GSM process(GSM-1-in).*
*000000 DEBUG (in drop_bchannel() line 1063): PmISDN(GSM-1-in) dropping
bchannel*
*000000 DEBUG (in ~PmISDN() line 213): destroyed mISDNPort(GSM-1-in).
Currently 0 objects*
*000000 DEBUG (in ~Port() line 210): removing port of type 4625, name
'GSM-1-in'*
*000000 DEBUG (in ~Endpoint() line 134): removed endpoint 18.*
*
*
I've tried:

*rivas at pfc:/etc/asterisk$ sudo modprobe mISDN_dsp*
*FATAL: Error inserting mISDN_dsp
(/lib/modules/3.2.0-24-generic-pae/extra/mISDN_dsp.ko): Unknown symbol in
module, or unknown parameter (see dmesg) *

Osmo-NITB shows:

*<000b> bsc_api.c:349 Sending ChanModify for speech 1 1*
*<0001> gsm_04_08.c:1575 Error: RTP proxy is disabled*
*<000b> osmo_msc.c:73 Assignment complete should not have been reached.*
*
*
In Asterisk I've configure extensions like the howto:

*exten => _02X.,1,GotoIf($[${CALLERID(name)} != ""]?4)*
*exten => _02X.,2,Set(CALLIDORIG=${CALLERID(num)})*
*exten => _02X.,3,Set(CALLERID(num)=02${CALLIDORIG})*
*exten => _02X.,4,Dial(LCR/GSM/${EXTEN:2},120)*
*
*
Extensions number are 02000 and 02001 respectively.

Please help me. I believe that the problem is not in asterisk because its
CLI doesn't shows anything.

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20120625/81d83aaa/attachment.htm>


More information about the OpenBSC mailing list