0% found this document useful (0 votes)
324 views4 pages

Asterisk Configuration To Work With Mobile Through OpenBTS

This document outlines the steps to configure Asterisk to connect a mobile station (MS) as a SIP client through OpenBTS: 1. Add the MS to Asterisk as a SIP client by editing the SIP.conf file with the IMSI and caller ID. 2. Create a dialplan in extensions.conf with macros to handle calls from the MS. 3. Define a new context mapping the caller ID to the IMSI. 4. Configure the Asterisk IP and port in the OpenBTS config file to connect the two systems. 5. Test calls can be made between the MS and Asterisk extensions.

Uploaded by

Tarik Kazaz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
324 views4 pages

Asterisk Configuration To Work With Mobile Through OpenBTS

This document outlines the steps to configure Asterisk to connect a mobile station (MS) as a SIP client through OpenBTS: 1. Add the MS to Asterisk as a SIP client by editing the SIP.conf file with the IMSI and caller ID. 2. Create a dialplan in extensions.conf with macros to handle calls from the MS. 3. Define a new context mapping the caller ID to the IMSI. 4. Configure the Asterisk IP and port in the OpenBTS config file to connect the two systems. 5. Test calls can be made between the MS and Asterisk extensions.

Uploaded by

Tarik Kazaz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Experiment ID

Asterisk Configuration to 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" Asterisk installe" &( with 'inux operating s%stem an" OpenBTS installe" (onne(te" to +S!&
(Can Use Same PC with Linux Operating System with Asterisk and OpenBTS installed) (Can Use M re Than One OpenBTS PC)

+S!& unit Mobile with SIM

Artifa(ts
#ow to (onne(t ,One or 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 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+ite)n type),riend ! ntext)sip-external all w)gsm h st)dynami!

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%06 t (s-341.ALSTATUS70*) exten )/ s-CA8C9L0*0:angup exten )/ s-8OA8S;950*0:angup exten )/ s-BUS<0*0Busy(&$) exten )/ s-CO869ST.O80*0C ngesti n(&$) exten )/ s-C:A8U8A=A.L0*0play>a!k(ss-n ser+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 extensi ns and .MS.s@ exten )/ $*$*#A$$$B0*0Ma!r (dialS.P0.MS.#$%$%%$&B&**ABC) exten )/ $*$%B#&AB%0*0Ma!r (dialS.P0.MS.#$%$%%$$'A%&%'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 067 8 8 0- an" the port use" for SI& (hannel in SI& (onf Example. E Asterisk PBF [email protected] *%D@$@$@* Asterisk@P rt A$#$ 3stati! [email protected] 3stati! Asterisk@P rt

In the SI& I& se(tion in OpenBTS.config) if Asterisk is 067 8 8 0) then the SI& I& is also 067 8 8 0 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@$@$@*
(., C nne!t M re Than One Open>ts P! 5epeat Step ' G r 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

You might also like