Experiment ID Asterisk Configuration to Work Work with Mobile through OpenBTS
!esponsible Engineer Mohame" #ega$%
&urpose 'earn how to (onfigure asterisk to (onne(t MS station as SI& (lient through OpenBTS) an" (onfigure OpenBTS to (onne(t to asterisk
!esour(es !e*uire" &( with 'inux operating s%stem an" an " Asterisk installe" &( with 'inux operating s%stem an" an " OpenBTS installe" (onne(te" to +S!& (Can Use Same PC with Linux Operating System with Asterisk and OpenBTS installed) (Can Use Mre Than One OpenBTS PC)
+S!& unit Mobile with SIM
Artifa(ts #ow to (onne(t ,One or o r More- OpenBTS to Asterisk #ow to (onne(t MS as (lient to asterisk through OpenBTS
Experiment Des(ription Step1.
To a"" a /SM han"set ,MS- to asterisk as SI& (lient through SIP.conf file file The name is the IMSI whi(h is a 012"igit (o"e in the SIM 3ou (an see it in the Control log ,In OpenBTS- whene4er a phone tries to register ,to
OpenBTS- !allerid is the mobile number whi(h will be assigne" to that user ,IMSIExample.
"#$%$%%$&'%###&& !allerid%*$% !anrein+iten type,riend !ntextsip-external allwgsm hstdynami!
Step2 .
Create a "ialplan for (lients ,MS- in extensions.conf +se ma(ros to a4oi" repeating the same "ialplan for e4er% (lient Example.
"ma!r-dialS.P exten / s0*01ial(S.P234A56*7) exten / s0%06t(s-341.ALSTATUS70*) exten / s-CA8C9L0*0:angup exten / s-8OA8S;950*0:angup exten / s-BUS<0*0Busy(&$) exten / s-CO869ST.O80*0Cngestin(&$) exten / s-C:A8U8A=A.L0*0play>a!k(ss-nser+i!e) exten / s-CA8C9L0*0:angup
Step3.
Define a new (ontext whi(h maps between Caller I" an" his IMSI ,Be(ause when %ou make a (all) %ou "on5t "ial a "estination IMSI but %ou (all its (aller IDExample.
"sip-l!al ? This is a simple mapping >etween extensins and .MS.s@ exten / $*$*#$$$0*0Ma!r(dialS.P0.MS.#$%$%%$&&**) exten / $*$%#&%0*0Ma!r(dialS.P0.MS.#$%$%%$$'%&%'D)
Step4.
In OpenBTS.config file un"er OpenBTS apps "ire(tor%) (hange the Asterisk I& un"er Asterisk se(tion to %our asterisk ser4er I& ,If using same ma(hine keep it 067880- an" the port use" for SI& (hannel in SI&(onf Example.
E Asterisk PBF
[email protected] *%D@$@$@* Asterisk@Prt $#$ 3stati!
[email protected] 3stati! Asterisk@Prt
In the SI& I& se(tion in OpenBTS.config) if Asterisk is 067880) then the SI& I& is also 067880 Otherwise) SI& I& shoul" be the lo(al I& a""ress of the interfa(e use" to (onta(t asterisk In other wor"s) this is the I& a""ress at whi(h Asterisk will see OpenBTS Example.
[email protected] *%D@$@$@* (., Cnne!t Mre Than One Open>ts P! 5epeat Step ' Gr 9+ery P!)
Step 4: UsingMS At this point, you should be able to use Mobile and dial any extension defined in asterisk SIP Account & Dialplan (SIP.conf & extensions.conf). As you make a few test calls, be sure to watch the Asterisk command-line interface (and ensure that your verbosity is set to a value three or higher) so that you can see the messages coming from Asterisk to Set Verbosity when run the asterisk add at least three v's to activate the debug mode as follow Asterisk-vvvvvvvr