Unable to make calls or SMS from one number to another.
r00tb3 opened this issue · 1 comments
Hey all, I successfully setup the OpenBTS on Ubuntu 16.04 for USRP B200 I'm able to send sms using the sendsms
and sendsimple
commands on openbts-cli but unable to do so from one number to another.
Also, I'm unable to make calls receive the following error:
-- Executing [h-20@to-pstn:3] Hangup("SIP/00101100010-0000000d", "20") in new stack
== Spawn extension (to-pstn, h-20, 3) exited non-zero on 'SIP/00101100010-0000000d'
-- Executing [h@to-pstn:1] Log("SIP/00101100010-0000000d", "NOTICE,A-Number=IMSI404277304945317 A-Name= A-IMSI=IMSI404277304945317 B-Number=+919168145356 B-Name= B-IMSI= hangupcause=20 dialstatus=CHANUNAVAIL hangupdirection=SYSTEM duration=5 billsec=0") in new stack
[2019-08-19 17:24:09.763] NOTICE[7281][C-0000000a]: Ext. h:1 @ to-pstn: A-Number=IMSI404277304945317 A-Name= A-IMSI=IMSI404277304945317 B-Number=+919168145356 B-Name= B-IMSI= hangupcause=20 dialstatus=CHANUNAVAIL hangupdirection=SYSTEM duration=5 billsec=0
-- Executing [h@to-pstn:2] Hangup("SIP/00101100010-0000000d", "") in new stack
== Spawn extension (to-pstn, h, 2) exited non-zero on 'SIP/00101100010-0000000d'
Have added entry to the Sqlite DB using the
./dev/NodeManager/nmcli.py sipauthserve subscribers create "abcd" 40427730494XXXX 1000
Added the following in the sip.conf
:
[IMSI40427730494XXXX]
callerid=1000
canreinvite=no
type=friend
context=sip-local
allow=gsm
host=dynamic
dtmfmode=info
and the following in extensions.conf
:
; Macro
[macro-dialGSM]
exten => s,1,Dial(SIP/${ARG1})
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-CANCEL,1,Hangup
exten => s-NOANSWER,1,Hangup
exten => s-BUSY,1,Busy(30)
exten => s-CONGESTION,1,Congestion(30)
exten => s-CHANUNAVAIL,1,playback(ss-noservice)
exten => s-CANCEL,1,Hangup
[sip-external]
exten => 1000,1,Macro(dialGSM,IMSI40427730499XXXX)
exten => 2000,1,Macro(dialGSM,IMSI40490930400XXXX)
exten => 3000,1,Macro(dialGSM,IMSI40490906672XXXX)
I don't understand whats going wrong?
Am I missing something?
Pls help!!
Regards.
Figured out what the problem was...
Instead of
./dev/NodeManager/nmcli.py sipauthserve subscribers create "abcd" 40427730494XXXX 1000
Use
./dev/NodeManager/nmcli.py sipauthserve subscribers create "abcd" IMSI40427730494XXXX 1000
Works like charm.