Sei sulla pagina 1di 33

Asterisk 1.6.1 on openSUSE Mohammad Edwin Zakaria medwin@opensuse.

org
Notes: This artic e is deri!ed "ree # "rom http:$$medwin%.& ogsome.com. ' use (ahasa 'ndonesia in e)p aining the dia p an so ' hope e!er#one wi understand it c ear #. This is not an academic paper* '+m not an e)pert* &ut on # a practitioner so it ma# not suit "or academic presentation. ,A-T 1 ' use Asterisk 1.6.1.. "rom openSUSE repositor#. Actua # ' &ui t a custom 6/ &it app iance using 01E /.2 "rom "actor# repositories through SUSE Studio and took Asterisk "rom openSUSE (ui d Ser!ice repositories. ' a so inc uded 1A31' 41igium Asterisk 3ardware 1e!ice 'nter"ace5* &ut during the imp ementation ' ha!e a pro& em with 'ndonesia ,STN te ephone signa ing so ' shou d down oad dahdi trunk !ersion "rom digium su&!ersion ser!er to make the digium card works. 3ere are the hardware ' use: 1. 6 3, tower &ased ser!er with 7 8( memor# 4it is o!erki actua #* &ut the owner insist it5 running in high a!ai a&i it#. See the pictures here and here. 6. 19 ,STN ines 2. 2 1igium T1M /19, cards 4with / :;< ports per card and hardware echo cance er5 per ser!er /. se!era -=16 coup er .. -= 16 ca& es 6. 6 Zed>2 8S7 8SM gatewa#* each with 6 8SM modu es ?. Se!era ,o #com ',>229 with ,oE 7. ,o #com 0'-0 @ire ess Ser!er 699A2 B. Se!era ,o #com 1ECT 29/9 @ire ess 3andset 1igium and ,o #com prices are e)pensi!e &ut the Dua it# o" the sound is !er# good. There are some a ternati!es "or the ', ,hone ike 8randstream and Aastra that a so can &e used. 'n this proEect* Asterisk wi &e use to setup the !oip communication &etween this site in 1enpasar$(a i with the headDuarter 43F5 in =akarta as we as with other regiona center in =a!a and Sumatera. A so Asterisk wi act as traditiona ,(; to connect this site to ,STN ines as we as to 8SM$C1MA ines. E!er# con!ersation through the ,A(; wi &e recorded &# monitor app ication in Asterisk. (e"ore we go an# "urther ets discuss a ogica design a&out our setup. There is one 3F and se!era remote sites inc uding (a i. These sites is specia &ecause itGs a so act as second node &eside 3F that can recei!e and transmit !oip tra""ic to other center. The setup o" e!er# site is simi ar ike the diagram &e ow.

A the digium card pro!ide 16 ines o" ,STN* in this case we on # use 19 ines. @e then use -= 16 coup er so that e!er# ine goes to 6 ,(; ser!er* ,A(;SA1 and ,A(;SA6. The ,A(;SA6 wi &ecome the &ackup asterisk in case the ,A(;SA1 is downed. @e use !rrpd to contro the ser!ice so that ,A(;SA6 can take o!er a the ser!ice "rom ,A(;SA1. ' use stock asterisk and dahdi "rom <(S. @hi e the asterisk is ok* dahdi in the <(S is not su""icient "or 'ndonesia te ephone ines 4at east at the time ' made the app iance5. The root cause o" the pro& em is that 'ndonesia ,STN ine pro!ided &# Te kom is a read# eDuipped with the C'1 4ca er identi"ier5 &ut the ser!ice is not open to the end customer unti the customer pa# the ser!ice charge. (ut actua # the C'1 is there and asterisk knows it &ut cannot open it. So it can answer the ring &ut i" another ca comes* sudden # it con"uses how to hand e it and hangup the ine. <"" course we shou d make a good con"iguration not Eust down oading the trunk !ersion. ,A-T 6 'n this second part ' wi e)p ain step>&#>step con"iguration to use our app iance to &ui d an Asterisk ,A(; ser!er. @ithout "urther ado* here is the ist: 1. 'nsta the 1igium card on the ,C' s ot 6. 'nsta our app iance. Hou can a so use an# inu) distri&ution* down oad asterisk "rom its we&site and insta it. 2. There are se!era so"twares ' "orget when ' made the app iance* it is not the mandator# 4dependencies5 &ut the# are use"u when we want to use asterisk optima #. The# are: mpg162* so)* i&mad* and "esti!a . The easiest wa# to insta it in openSUSE is using %#pper. Check it "irst where the# reside in repositories and add the repositories according #. mpg162 and so) are in the packman repositori#* i&mad in <(S 4p ease check with we&pin5 and "esti!a in oss. Then as root run: I%#pper insta mpg162 so) i&mad9 "esti!a I. /. 't is a wa#s use"u to update #our insta ation to update repositor#* to make sure that a the securit# update is up to date. .. 1own oad the atest dahdi "rom trunk and insta it. 1onGt "orget #ou shou d connected to internet to run this command as root Js!n co http:$$s!n.digium.com$s!n$dahdi$ inu)$trunk dahdi> inu)K

Jcd dahdi> inu)K JmakeK and "o ow the instructions on the screen. '" a the insta ation success"u * then #ou wi ha!e : $etc$dahdi$ $etc$asterisk$ $!ar$ i&$asterisk$ $!ar$spoo $asterisk$ $etc$init.d$dahdi $etc$init.d$asterisk161 $usr$s&in$asterisk $usr$s&in$dahdiLgencon" 4and se!era dahdi>too s "i es5 Connect the te ephone ine4s5 to #our digium. Make sure that a the te ephone ines are "unctioning &e"ore #ou connect it 4p ease pa# #our &i i" #ou donGt to that #et* otherwise the announcement in the te ephone ines wi screw up #our asterisk :>55. As root run J$usr$s&in$dahdiLgencon"K. This command wi generate the automatic con"iguration "or digium card in "i e $etc$dahdi$s#stem.con". 'n m# ser!er it contains: M Autogenerated &# $usr$s&in$dahdiLgencon" on Tue No! 1? 17:27:29 699B M '" #ou edit this "i e and e)ecute $usr$s&in$dahdiLgencon" again* M #our manua changes wi &e N<ST. M 1ahdi Con"iguration :i e M M This "i e is parsed &# the 1ahdi Con"igurator* dahdiLc"g M M Span 1: @CT1M$9 I@i dcard T1M/19, (oard 1I 4MASTE-5 ")sksO1 echocance erOmg6*1 ")sksO6 echocance erOmg6*6 ")sksO2 echocance erOmg6*2 ")sksO/ echocance erOmg6*/

M Span 6: @CT1M$1 I@i dcard T1M/19, (oard 6I ")sksO. echocance erOmg6*. ")sksO6 echocance erOmg6*6 ")sksO? echocance erOmg6*? ")sksO7 echocance erOmg6*7 M Span 2: @CT1M$6 I@i dcard T1M/19, (oard 2I ")sksOB echocance erOmg6*B ")sksO19 echocance erOmg6*19 ")sksO11 echocance erOmg6*11 ")sksO16 echocance erOmg6*16 M 8 o&a data oad%one On de"au t%one O n Actua # de"au t oad%one and de"au t%one is JusK &ut ' change it to Jn K which is according to 'TU is c ose to 'ndonesia signa ing s#stem. , ease check 'TU <perationa (u etin No. ?71 P 1.''.6992. At east &us# tone* congestion tone* and dia tone are running in the same "reDuenc# and cadence. '" #ou want #ou can a so re&ui d asterisk so that it a read# contain the "reDuenc# and cadence "or #our countr#. (esides $etc$dahdi$s#stem.con"* dahdiLgencon" wi a so automatica # con"igure the "i e $etc$asterisk$dahdi>channe s.con". 'n m# insta ation the content o" the "i e is: Q Autogenerated &# $usr$s&in$dahdiLgencon" on Tue No! 1? 17:27:29 699B Q '" #ou edit this "i e and e)ecute $usr$s&in$dahdiLgencon" again* Q #our manua changes wi &e N<ST. Q 1ahdi Channe s Con"igurations 4chanLdahdi.con"5 Q Q This is not intended to &e a comp ete chanLdahdi.con". -ather* it is intended Q to &e Minc ude>d &# $etc$chanLdahdi.con" that wi inc ude the g o&a settings Q Q Span 1: @CT1M$9 I@i dcard T1M/19, (oard 1I 4MASTE-5 QQQ ineOI1 @CT1M$9$9I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR 1 ca eridO

groupO conte)tOde"au t QQQ ineOI6 @CT1M$9$1I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR 6 ca eridO groupO conte)tOde"au t QQQ ineOI2 @CT1M$9$6I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR 2 ca eridO groupO conte)tOde"au t QQQ ineOI/ @CT1M$9$2I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR / ca eridO groupO conte)tOde"au t Q Span 6: @CT1M$1 I@i dcard T1M/19, (oard 6I QQQ ineOI. @CT1M$1$9I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR . ca eridO groupO conte)tOde"au t QQQ ineOI6 @CT1M$1$1I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn

channe OR 6 ca eridO groupO conte)tOde"au t QQQ ineOI? @CT1M$1$6I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR ? ca eridO groupO conte)tOde"au t QQQ ineOI7 @CT1M$1$2I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR 7 ca eridO groupO conte)tOde"au t Q Span 2: @CT1M$6 I@i dcard T1M/19, (oard 2I QQQ ineOIB @CT1M$6$9I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR B ca eridO groupO conte)tOde"au t QQQ ineOI19 @CT1M$6$1I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR 19 ca eridO groupO conte)tOde"au t QQQ ineOI11 @CT1M$6$6I signa ingO")sLks ca eridOasrecei!ed

groupO9 conte)tO"rom>pstn channe OR 11 ca eridO groupO conte)tOde"au t QQQ ineOI16 @CT1M$6$2I signa ingO")sLks ca eridOasrecei!ed groupO9 conte)tO"rom>pstn channe OR 16 ca eridO groupO conte)tOde"au t The core o" the asterisk con"iguration is dia p an. 1ia p an manage how asterisk hand e a the incoming and outgoing ca . 't can consist o" 2 ines &ut a so can reach tenth or hundreds ines* depends on how the comp e)it# o" our con"iguration. @e can a so use macro "eature on asterisk. 1ia p an is p aced on $etc$asterisk$e)tensions.con". M# e)tensions.con" manage how the incoming ca shou d &e hand ed* how to make outgoing ca to ,STN* 8SM ine and sip e)tensions* how to make con"erence ca * how to connect to other asterisk ser!er using 'A;6 protoco * use the monitor app ication to record the con!ersation and how to make greeting. ' wi e)p ain our e)tensions.con" in more detai in the ne)t post together with sip.con"* ia).con"* meetme.con" and !oicemai .con". ,A-T 2 To ena& e asterisk to communicate with ,STN ines we shou d ha!e either a A<',>,STN gatewa# or :;< card. ' wi not e)p ain a&out A<',>,STN gatewa#* there are some ser!ice pro!iders out there who pro!ides this ser!ice "or their customers. 'n m# work ' use 1igium T1M /19, with / :;< port per card. There are some a ternati!es in the market ike Sangoma* -hino* etc* the important is we shou d make sure that it works with Asterisk either with dahdi dri!er or %apte $%apata dri!er. A so i" possi& e se ect the card that a read# has hardware echo>cance er. Echo is a pro& em in !oip communication* and i" #ou ha!e card with no echo>cance er than #our ser!er C,U wi &us# do the Eo&. =ust remem&er that 1igium cards are no onger use %apata dri!er* and some changes has &een made to the con"iguration "i e name and ocation* $etc$%apte .con" &ecome $etc$dahdi$s#stem.con" and $etc$asterisk$%apata.con" &ecome $etc$asterisk$chanLdahdi.con" 'n the c ient site #ou can use an# S', c ient hardwares or so"twares. Ekiga and Emphat# are the good choice "or #ou who pre"er 8T0 i&raries and 0Ca and 0,hone are "or #ou who pre"er Ft i&raries. ', phone hardware now wide # a!ai a& e in the market "rom cheap to high price* #ou can se ect an# &rand as ong as it compati& es with Asterisk. 'n this proEect ' choose ,o #com ',>229* ' a so used 8randstream and Aastra in other imp ementation. 'n this imp ementation the owner a so ask me to use ,o #com 0'-0 @ire ess Ser!er 699A2 with ,o #com 1ECT 3andset 29/9. Now the time "or the dia p an* e)tensions.con"* which is the core o" asterisk imp ementation* as an e)amp e et me introduce #ou with m# con"iguration. 't is a good ha&it to a wa#s &ackup de"au t asterisk con"iguration* and start the new con"iguration "rom the scratch.

M# e)tensions.con" is: Q e)tensions.con" > the Asterisk dia p an Q Created &# M. Edwin Z "or )))))))))))))))) Q medwin%@gmai .com Q Q Static e)tension con"iguration "i e* used &# Q the p&)Lcon"ig modu e. This is where #ou con"igure a #our Q in&ound and out&ound ca s in Asterisk. Q Q This con"iguration "i e is re oaded Q > @ith the Idia p an re oadI command in the CN' Q > @ith the Ire oadI command 4that re oads e!er#thing5 in the CN' Q Sgenera T staticO#es writeprotectO#es Sg o&a sT -'N81ENAH OR 69 1HNAM'CL:EATU-ES OR automon SincomingT e)ten OR s*1*Answer e)ten OR s*6*(ackground4en$greeting>indonesia5 e)ten OR s*2*3angup45 e)ten OR h*1*3angup45 e)ten OR BBBB*1*AoiceMai Main45 e)ten OR asterisk*1*Aoicemai Main45 e)ten OR .999*1*Set4C3ANNEN4 anguage5Oen5 Q con"erence 1 e)ten OR .999*6*Meetme4.9995 e)ten OR .999*2*3angup e)ten OR 6999*1*Set4C3ANNEN4 anguage5Oen5 Q con"erence 6 e)ten OR 6999*6*Meetme469995 e)ten OR 6999*2*3angup e)ten OR ?999*1*Set4C3ANNEN4 anguage5Oen5 Q con"erence 2 e)ten OR ?999*6*Meetme4?9995 e)ten OR ?999*2*3angup e)ten OR L;;;;*1*Answer e)ten OR L;;;;*6*1ia 4S',$UVE;TENW*UV-'N81ENAHW*t5 e)ten OR L;;;;*2*Aoicemai 4UVE;TENW@de"au t*u5 e)ten OR L;;;;*/*3angup45

e)ten OR L;;;;*192*Aoicemai 4UVE;TENW@de"au t*&5 e)ten OR L;;;;*19/*3angup Sinterna >")oT e)ten OR s*1*Answer e)ten OR s*6*@ait415 e)ten OR s*2*(ackground4en$autoattendant5 e)ten OR s*/*@aitE)ten465 e)ten OR .999*1*MeetMe4.9995 e)ten OR 6999*1*MeetMe469995 e)ten OR ?999*1*MeetMe4?9995 e)ten OR L;;;;*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TENW>UVST-:T'ME4U VE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L;;;;*6*1ia 4S',$UVE;TENW*U V-'N81ENAHW*t5 e)ten OR L;;;;*2*Aoicemai 4suUVE;TENW5 e)ten OR L;;;;*/*3angup45 e)ten OR L;;;;*192*Aoicemai 4s&UVE;TENW5 e)ten OR L;;;;*19/*3angup45 e)ten OR h*1*3angup45 e)ten OR t*1*Monitor4wa!*Ca >UVCANNE-'14num5W>B91B>UVST-:T'ME4UVE,<C3W** XHXmXd>X3XMXS5W*m5 e)ten OR t*6*1ia 4S',$B91BYS',$B996YS',$B99?YS',$B991YS',$B996YS',$B91.*U V-'N81ENAHW*t5 e)ten OR t*2*3angup e)ten OR t*29.*1ia 4S',$B991YS',$B996YS',$B992YS',$B99/YS',$B99.YS',$B996YS',$B99?YS' ,$B997YS',$B99BYS',$B919YS',$B911YS',$B916YS',$B91?YS',$B917YS',$B91B5 e)ten OR t*296*3angup inc ude OR incoming Sinterna >")sT inc ude OR incoming Sinterna >sipT e)ten OR L1.*1*1ia 4'A;6$#gpa&)s!:9999@19.1.1.169$UVE;TEN:1W@ oca 5 e)ten OR L1.*6*3angup45 e)ten OR L6.*1*1ia 4'A;6$#gpa&)s!:9999@19.?.1.169$UVE;TEN:1W@ oca 5 e)ten OR L6.*6*3angup45 QQ8SM ca to Te komse $3AN< e)ten OR L999711.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5

e)ten OR L999711.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L999711.*2*3angup QQ8SM ca to Te komse $Simpati e)ten OR L999716.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L999716.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L999716.*2*3angup QQ8SM ca to Te komse $Simpati e)ten OR L999712.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L999712.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L999712.*2*3angup Q8SM ca to Te komse $As e)ten OR L9997.6.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997.6.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L9997.6.*2*3angup QQ8SM ca to Te komse $As e)ten OR L9997.2.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997.2.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L9997.2.*2*3angup QQ8SM ca to 'ndosat e)ten OR L99971/.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L99971/.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L99971/.*2*3angup QQ8SM ca to 'ndosat e)ten OR L99971..*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L99971..*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L99971..*2*3angup QQ8SM ca to 'ndosat e)ten OR L999716.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L999716.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L999716.*2*3angup QQ8SM ca to 'ndosat e)ten OR L9997...*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U

VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997...*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L9997...*2*3angup QQ8SM ca to 'ndosat e)ten OR L9997.6.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997.6.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L9997.6.*2*3angup QQ8SM ca to 'ndosat e)ten OR L9997.?.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997.?.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L9997.?.*2*3angup QQ8SM ca to 'ndosat e)ten OR L9997.7.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997.7.*6*1ia 4S',$B921$UVE;TEN:1W5 e)ten OR L9997.7.*2*3angup QQ8SM ca to ;N e)ten OR L99971?.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L99971?.*6*1ia 4S',$B926$UVE;TEN:1W5 e)ten OR L99971?.*2*3angup QQ8SM ca to ;N e)ten OR L999717.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L999717.*6*1ia 4S',$B926$UVE;TEN:1W5 e)ten OR L999717.*2*3angup QQ8SM ca to ;N e)ten OR L99971B.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L99971B.*6*1ia 4S',$B926$UVE;TEN:1W5 e)ten OR L99971B.*2*3angup QQ8SM ca to ;N e)ten OR L9997.B.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997.B.*6*1ia 4S',$B926$UVE;TEN:1W5 e)ten OR L9997.B.*2*3angup Q8SM ca to ;N e)ten OR L9997?7.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U

VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997?7.*6*1ia 4S',$B926$UVE;TEN:1W5 e)ten OR L9997?7.*2*3angup Q8SM ca to 2 e)ten OR L9997B7.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997B7.*6*1ia 4S',$B926$UVE;TEN:1W5 e)ten OR L9997B7.*2*3angup Q8SM ca to 2 e)ten OR L9997BB.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9997BB.*6*1ia 4S',$B926$UVE;TEN:1W5 e)ten OR L9997BB.*2*3angup QQ8SM ca to A)is Q e)ten OR L999721.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 Q e)ten OR L999721.*6*1ia 4S',$B926$UVE;TEN:1W5 Q e)ten OR L999721.*2*3angup QQ8SM ca to A)is Q e)ten OR L999727.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:6W>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS5W*m5 Qe)ten OR L999727.*6*1ia 4S',$B926$UVE;TEN:1W5 Qe)ten OR L999727.*2*3angup inc ude OR g o&a inc ude OR incoming Sg o&a T e)ten OR L9.*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TEN:1W>UVST-:T'ME4U VE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L9.*6*1ia 41A31'$g1$UVE;TEN:1W5 e)ten OR L9.*2*3angup e)ten OR L9.*192*, a#&ack4en$tt>a &us#5 e)ten OR L9.*19/*3angup SrecordingsT e)ten OR .99*1*Answer e)ten OR .99*6*, a#&ack4en$si akanrekamgreeting5 e)ten OR .99*2*-ecord4en$m#message:gsm5 e)ten OR .99*/*, a#&ack4en$pesananda5 e)ten OR .99*.*, a#&ack4en$m#message5 e)ten OR .99*6*, a#&ack4en$tekan15 e)ten OR .99*?*@aitE)ten425

e)ten OR t*1*, a#&ack4en$maa"mohonu angi5 e)ten OR t*6*8oto4.99*.5 e)ten OR i*1*, a#&ack4en$pesanandasa ah5 e)ten OR i*6*8oto4.99*.5 e)ten OR 1*1*S#stem4$&in$m! $!ar$ i&$asterisk$sounds$en$m#message.gsm $!ar$ i&$asterisk$sounds$en$autoattendant.gsm5 e)ten OR 1*6*, a#&ack4en$terimakasih5 e)ten OR 1*2*, a#&ack4en$tekan25 e)ten OR 6*1*8oto4.99*15 e)ten OR 2*1*8oto4.99*15 e)ten OR /*1*3angup inc ude OR interna >sip S oca T Q Q Master conte)t "or oca * to >"ree* and ia)te ca s on # Q ignorepat OR B inc ude OR de"au t inc ude OR parkedca s inc ude OR interna >sip Sde"au tT inc ude OR interna >sip

,A-T / ,ada part 2 sa#a te ah mem&erikan contoh e)tensions.con"* sa#a per u men#ertakan &e&erapa contoh "i e kon"igurasi ain #ang di&utuhkan agar penEe asan e)tension.con" &isa dimengerti. :i e>"i e terse&ut ada ah: 1. 6. 2. /. .. $etc$asterisk$chanLdahdi.con" $etc$asterisk$sip.con" $etc$asterisk$ia).con" $etc$asterisk$meetme.con" $etc$asterisk$!oicemai .con"

Contoh chanLdahdi.con": Q Q dahdiLchanne s.con" con"iguration o" digium card Q Q Con"iguration "i e Schanne sT

anguageOen conte)tOinterna >")o signa ingO")sLks r)winkO299 cidstartOpo arit# Q Eangan ada ine #ang ngutang akan mengacaukan 1TM: dan cid signa ing answeronpo arit#switchOno hanguponpo arit#switchOno QcidstartOring Q ini test saEa pu sedia Ono Quseincomingca eridondahditrans"erO#es cidsigna ingOdtm" &us#detectO#es &us#countO6 useca eridO#es ca eridOasrecei!ed hideca eridOno ca waitingO#es useca ingpresO#es ca waitingca eridO#es threewa#ca ingO#es trans"erO#es canca "orwardO#es ca returnO#es echocance O#es echocance when&ridgedOno echotrainingO799 r)gainO2.9 t)gainO9.9 groupO9 ca groupO1 pickupgroupO1 immediateOno "a)detectOno groupO1 disa owOa a owOa echocance erOmg6*1>16 channe OR 1>16 Contoh sip.con": Sgenera T port O .969 &indaddr O 19.7.1.169 disa owOa

a owOa a owOu aw a owOgsm conte)tOinterna >sip SB991T t#peO"riend hostOd#namic dtm"modeOr"c6722 anguage O en conte)tOrecordings natOno usernameOH8TENE,391 useridOB991 ca eridOH8TENE,391 ZB991R mai &o)OB991 a owOa Dua i"#O#es SB996T t#peO"riend hostOd#namic dtm"modeOr"c6722 anguage O en conte)tOinterna >sip natOno usernameOH8TENE,396 useridOB996 ca eridOH8TENE,396 ZB996R mai &o)OB996 a owOa Dua i"#O#es Qtam&ahkan sesuai e)tension #ang anda mi iki SB921T t#peOpeer insecureO!er# disa owOa a owOu aw a owOa aw a owOgsm conte)tOinterna >sip hostO19.7.1.21 usernameO8S7 permitO19.7.1.21$6...6...6...6.. Dua i"#O#es canrein!iteOno ca > imitO/

dtm"modeOr"c6722 natOno SB926T t#peOpeer insecureO!er# disa owOa a owOu aw a owOa aw a owOgsm conte)tOinterna >sip hostO19.7.1.26 usernameO8S7 permitO19.7.1.26$...6...6...6.. Dua i"#O#es canrein!iteOno ca > imitO/ dtm"modeOr"c6722 natOno Contoh ia).con": Q 'nter>Asterisk e;change dri!er de"inition Q Q This con"iguration is re>read at re oad Q or with the CN' command Q re oad chanLia)6.so Q Q 8enera settings* ike port num&er to &ind to* and Q an option address 4the de"au t is to &ind to a Q oca addresses5. Q Sgenera T &indportO/.6B &indaddrO19.7.1.169 de a#reEectO#es anguageOen &andwidthOhigh disa owOa a owOu aw a owOa aw a owOgsm Eittertargete)traO/9 Eitter&u""erO#es dropcountO2 ma)Eitter&u""erO299 minEitter&u""erO299 mine)cess&u""erO699 mai &o)detai O#es

autoki O#es register OR ncpa&)s!:9999@19.1.1.169:/.6B register OR dppa&)s!:9999@19.?.1.169:/.6B register OR E&pa&)s!:9999@19.B.1.169:/.6B tosO9)19 SguestT t#peOuser conte)tOde"au t ca eridOI8uest 'A; UserI Q Q Trust Ca er['1 Coming "rom ia)te .com Q Sia)te T t#peOuser conte)tOde"au t authOrsa inke#sOia)te Q Q Trust Ca er['1 Coming "rom ia)."wdnet.net Q Sia)"wdT t#peOuser conte)tOde"au t authOrsa inke#sO"reewor ddia up Sncpa&)s!T t#peO"riend authOmd. secretO9999 conte)tO oca hostOd#namic de"au tipO19.1.1.169 Dua i"#O#es reDuireca tokenOno Sdppa&)s!T t#peO"riend authOmd. secretO9999 conte)tO oca hostOd#namic de"au tipO19.?.1.169

Dua i"#O#es reDuireca tokenOno S#gpa&)s!T t#peO"riend authOmd. secretO9999 conte)tO oca hostOd#namic de"au tipO19.7.1.169 Dua i"#O#es reDuireca tokenOno SE&pa&)s!T t#peO"riend authOmd. secretO9999 conte)tO oca hostOd#namic de"au tipO19.B.1.169 Dua i"#O#es reDuireca tokenOno Contoh meetme.con": SroomsT QMinc ude meetmeLadditiona .con" con" OR .999 con" OR 6999 con" OR ?999 Contoh !oicemai .con": Q Q Aoicemai Con"iguration Q Q Q N<TE: Asterisk has to edit this "i e to change a userGs password. This does Q not current # work with the IMinc ude Z"i eRI directi!e "or Asterisk Q con"iguration "i es* nor when using rea time static con"iguration. Q 1o not use them with this con"iguration "i e. Q Sgenera T "ormatOwa! ser!eremai Oasterisk "romstringOAsterisk ,A(; send!oicemai O#es

anguageOen operatorOno en!e opeO#es attachO#es ma)msgO69 ma)secsO179 minsecsO6 ma)greetO69 skipmsO2999 ma)si enceO. si encethresho dO167 ma) oginsO2 emai &od#OAnda mempun#ai pesan &aru emai date"ormatOXA* Xd X( XH at X3:XM:XS mai cmdO$usr$s&in$sendmai >t send!oicemai O#es Q A ow the user to compose and send a !oicemai whi e inside Q AoiceMai Main45 Soption . "rom mai &o)Gs ad!anced menuT. Q '" set to \noG* option . wi not &e isted. Sde"au tT Q isikan se&an#ak e)tension #ang anda mi iki B991 OR B991*medwin%***attachOno B996 OR B996*medwin%***attachOno S%onemessagesT #og#akartaOAsia$=akarta]G!m>recei!edG F \digits$atG 1esain #ang sa#a &uat ini secara sederhana digam&arkan da am diagram di&awah

'p phones mempun#ai e)tension B991 sampai dengan B96?. 8SM gatewa# diper akukan se&agai sip e)tension dengan nomer e)tension B921 dan B926. Nihat "i e sip.con". (agaimana mem&uat agar se&uah ip phone mempun#ai nomor e)tensi^ 'ni tergantung dari ip phone #ang anda gunakan* untuk angkah awa anda dapat menset se&uah dhcp untuk kemudian setiap ip>phone akan mengam&i se&uah ip. (iasan#a dida am se&uah ip>phone sudah ditanam se&uah we&ser!er #ang dapat diakses dari &rowser untuk se anEutn#a kita &eri nomor e)tensi. ,roses ini sering dinamakan pro!ision. :a!orit sa#a untuk mem>pro!isi ip>phone ada ah dengan menset se&uah "tp ser!er #ang kemudian setiap ip>phone akan mendown oad kon"igurasi dari "tp ser!er terse&ut. Ne&ih engkapn#a si akan &aca manua ip> phone anda. Sekarang mari kita mu ai mem&ahas "i e e)tensions.con". Hang penting diketahui &ahwa dia p an itu terdiri dari &e&erapa conte)t. Conte)t ditandai dengan S_T* misa n#a SincomingT* Sinterna >")oT* Sinterna >sipT ds&. Conte)t ini sa ing &erhu&ungan antara e)tensions.con" dengan "i e>"i e #ang ain. Conte)t akan mengatur per akuan terhadap suatu incoming atau outgoing ca o eh asterisk. Asterisk mengena &e&erapa standard e)tensi #aitu: i : in!a id s : start h : hangup t : timeout T : a&so ute timeout a : asterisk e)tension o : operator

Hang &iasan#a sering digunakan ada ah: s : start : apa #ang harus di akukan o eh asterisk ka au ada incoming ca i : in!a id entr# : apa #ang di akukan ka au entr# #ang dimasukkan sa ah

t : time out : apa #ang di akukan ka au timeout sudah ewat Sekarang co&a kita perhatikan s#nta) e)tensions.con" &erikut: Sinterna >")oT e)ten OR s*1*Answer e)ten OR s*6*@ait415 e)ten OR s*2*(ackground4en$autoattendant5 e)ten OR s*/*@aitE)ten465 Maka artin#a kurang e&ih ada ah untuk conte)t interna >")o ka au ada te epon #ang masuk maka #ang harus di akukan o eh asterisk ada ah: 1. diEawa& 4diangkat5 PR s*1*Answer 6. tunggu se ama 1 detik PR s*6*@ait415 2. Ea ankan di atar &e akang "i e $!ar$ i&$asterisk$sound$en$autoattendant.gsm PR s*2*(ackground4en$autoattendant5 /. tunggu input ke#pad se ama 6 detik PR s*/*@aitE)ten465 Mudahkan^ Asterisk mempun#ai &e&erapa ap ikasi #ang &isa dipanggi me a ui e)tensions.con" #ang sa#a gunakan di sini ada ah AoiceMai #aitu ap ikasi untuk meningga kan pesan Eika te epon tidak diangkat atau si&uk* meetme untuk me akukan conference call 4percakapan dengan peserta e&ih dari 6 orang5* dan Monitor untuk merekam suatu percakapan ke da am "i e. Mari kita ihat contoh e)tensions.con": Sinterna >")oT ____ e)ten OR .999*1*MeetMe4.9995 e)ten OR 6999*1*MeetMe469995 e)ten OR ?999*1*MeetMe4?9995 ,erhatikan Euga contoh meetme.con": SroomsT QMinc ude meetmeLadditiona .con" con" OR .999 con" OR 6999 con" OR ?999 0ita te ah mende"inisikan 2 ruangan untuk me akukan kon"erensi #aitu e)tensi .999* 6999* dan ?999. 0emudian pada conte)t Sinterna >")oT di e)tensions.con" kita de"inisikan &ahwa user #ang mengakses e)tensi .999* 6999 dan ?999 akan masuk ke ruangan kon"erensi. Mudahkan. ,er u diketahui &ahwa ruangan kon"erensi ini tidak han#a &isa diakses o eh e)tensi oka tetapi Euga dari te epon di tempat ain* &aik !oip* 8SM* atau ,STN. Misa n#a kita ingin mengaEak rekan kita #ang ke&etu an sedang di uar kantor untuk ikut meeting* maka kita dapat menghu&ungi handphonen#a dan se anEutn#a kita trans"er ke .999* 6999 atau ?999. AoiceMai cukup mudah untuk dikon"igurasi Eika kita menginginkann#a. Ada &e&erapa " ag #ang digunakan untuk mengatur AoiceMai #aitu:

s : Eika di&erikan akan mem&uat pesan I, ease ea!e #our message a"ter the tone. @hen done* hang up* or press the pound ke#I tidak dimainkan u: Eika di&erikan akan memutar pesan IThe person at e)tension _ 162/ _ is una!ai a& eI &: Eika di&erikan akan memutar pesan IThe person at e)tension _ 162/ _ is &us#I 0ita dapat mengkom&inasikan " ag terse&ut misa n#a: su : pesan una!ai a& e akan diputar tetapi pesan instruksi tidak s& : pesan &us# akan diputar tetapi pesan instruksi tidak u : pesan una!ai a& e akan diputar di anEutkan dengan pesan instruksi & : pesan &us# akan diputar di anEutkan dengan pesan instruksi e)ten OR L;;;;*1*Answer e)ten OR L;;;;*6*1ia 4S',$UVE;TENW*UV-'N81ENAHW*t5 e)ten OR L;;;;*2*Aoicemai 4UVE;TENW@de"au t*u5 e)ten OR L;;;;*/*3angup45 e)ten OR L;;;;*192*Aoicemai 4UVE;TENW@de"au t*&5 e)ten OR L;;;;*19/*3angup Maksudn#a kurang e&ih ada ahka au ada #ang men>dia e)tensi ;;;; 4sesuai dengan #g te ah dide"inisikan di sip.con"5 misa #a B991 maka: 1. Eawa& 6. dia e)tension se ama 69 detik 4ini ditentukan pada conte)t Sg o&a sT -'N81ENAH OR 695* ka au sudah ewat 69 detik maka 2. putar pesan una!ai a& e di anEutkan dengan instruksi untuk men#impan pesan. /. hangup .. Eika nada si&uk* putar pesan si&uk di anEutkan dengan instruksi untuk men#impan pesan 6. hangup ,esan #ang masuk akan disimpan pada $!ar$spoo $asterisk$!oicemai $context$boxnumber$'N(<;. Misa n#a da am kasus di atas maka : conte)t O de"au t* sesuai e)ten OR L;;;;*2*Aoicemai 4UVE;TENW@de"au t*u5 &o)num&er ada ah mai &o) untuk nomer e)tensi tertentu* misa n#a untuk e)tensi B991 ke&etu an sa#a set mai &o)OB991 sama dengan nomor e)tensin#a. Nihat "i e sip.con" di atas. maka Eika pene pon mene pon B991 dan meningga kan !oicemai maka okasi pen#impanann#a pada $!ar$spoo $asterisk$!oicemai $default$9001$'N(<; 0ita &isa men#impan semua percakapan #ang terEadi me a ui asterisk dengan meman"aatkan ap ikasi Monitor. Tentu saEa untuk mengkon"igurasin#a anda harus menan#akan po ic# mengenai ha ini kepada pemi ik Earingan$asterisk di mana anda memasangn#a. 0arena ha ini &erhu&ungan dengan pri!ac#. Ada &e&erapa ha #ang se&aikn#a diperhatikan da am mensetup Monitor* standar st#nta) ada ah se&agai &erikut: Monitor4e)t*&asename*" ags5. ,enEe asan sederhanan#a ada ah se&agai &erikut: e)t : "ormat sound "i e* de"au tn#a ada ah .wa! &asename : da am contoh sa#a menggunakan Ca >UVCANNE-'14num5W>UVE;TENW>U VST-:T'ME4UVE,<C3W**XHXmXd>X3XMXS* ini akan mengaki&atkan "i e disimpan dengan nama misa n#a Ca >7991>9616...7?7.>699B1666>161921.wa! dimana 7991 ada ah nomer e)tensi* 9616...7?7. ada ah nomer #ang dituEu* 699B1666 ada ah tangga >&u an>tahun* 161921 ada ah Eam>menit>detik. 1emikian Euga ka au incoming ca * ka au anda &er angganan

,ada conte)t SincomingT di e)tensions.con" sa#a mende"inisikan:

C'1 maka asterisk &isa mem&aca asterisk #ang masuk* tetapi sekiran#a anda tidak &er angganan C'1 maka incoming ca akan disimpan dengan nama misa n#a Ca > >791B>699B1666> 166./..wa! m : ada ah " ag #ang &i a digunakan maka asterisk akan memanggi program di uar asterisk untuk mengkom&inasikan dua &uah sound "i e* in dan out* ke da am se&uah "i e. ,rogram #ang dipanggi ada ah so). 0adang>kadang so) tidak &isa mengena i dan mengga&ungkan "ormat sound 4a aw5 aki&atn#a seringka i kita menemukan untuk se&uah percakapan masih terdapat dua &uah "i e* in dan out. Misa n#a : Ca >791B>?62B6/>699B1666>1.176?>in.wa! dan Ca >791B> ?62B6/>699B1666>1.176?>out.wa! Untuk mengakti"kan Monitor tidak ah su it* se&agai contoh perhatikan agi "i e e)tensions.con": Sinterna >")oT __. e)ten OR L;;;;*1*Monitor4wa!*Ca >UVCANNE-'14num5W>UVE;TENW>UVST-:T'ME4U VE,<C3W**XHXmXd>X3XMXS5W*m5 e)ten OR L;;;;*6*1ia 4S',$UVE;TENW*U V-'N81ENAHW*t5 e)ten OR L;;;;*2*Aoicemai 4suUVE;TENW5 e)ten OR L;;;;*/*3angup45 e)ten OR L;;;;*192*Aoicemai 4s&UVE;TENW5 e)ten OR L;;;;*19/*3angup45 Maksud dari &aris ini: 1. 6. 2. /. .. untuk e)tensi ))))* rekam percakapan dengan "ormat Ca >no.e)tensi>tangga >Eam dia e)tensi )))) dan dering se ama 69 detik 4masih ingat #a* #ang diatas5 ka au ewat 69 detik maka akti"kan !oicemai ka a nada si&uk akti"kan !oicemai hangup

3mm_ &an#ak Euga #a. Mudah>mudahan tidak memusingkan. Masih ada &e&erapa ha di da am e)tensions.con" #ang akan sa#a Ee askan misa n#a &agaimana mengkoneksi asterisk ser!er di okasi ain* &agaimana merekam pesan 4recording untuk greeting5* dan terutama pengaturan conte)t #ang &erkaitan dengan channe dahdi dan sip.con". ,A-T . ' wi e)p ain a &it more deeper a&out Asterisk con"iguration in this post* some trick and use"u con"iguration that ' "ound rea # he p"u in con"iguring asterisk insta ation. Asterisk de!e oper rea # did a good Eo& to make a comp ete ,(;* the# gi!e the &est too s to us and now it is our Eo& to con"igure it. <ne thing ' "ound rea # anno#ing is the echo i" we connect asterisk to ,STN ine. ' use digium T1M /19, and ea!e the card without tune it wi gi!e anno#ing echo. 'n m# ear ier post ' e)p ain that &# running $usr$s&in$dahdiLgencon" dahdi wi automatica # create $etc$dahdi$s#stem.con" "i e that a read# contain in"ormation a&out hardware echo cance er. :irst thing #ou shou d remem&er i" #ou ha!e the &udget is &u# a card with hardware echo cance er. 't wi et the card to manage the echo without gi!e the processor too much task to reduce it. A"ter that #ou shou d tune the card. Nucki # 1igium gi!e the

&est too s to tune the card named ")otune. To tune #our card "irst shutdown the asterisk ser!ice and then run: M $usr$s&in$")otune >i 9 ' put 9 4%ero5 &ecause to dia an outside ine ' set the asterisk con"iguration to use 9. Hou shou d change it to whate!er num&er #ou use. ")otune wi create $etc$")otune.con" "i e to put a the con"iguration it creates to reduce the echo. , eas read Iman ")otuneI "or more e)p anation a&out the too s. To ena& e Asterisk to use the card con"iguration e!er# time we &oot the ser!er we need a s ight modi"ication o" init script. @e shou d ca the ")otune &e"ore we ca Asterisk* #ou can either modi"# the init script o" Asterisk to ca ")otune &e"ore it ca the Asterisk or #ou can modi"# $etc$init.d$a"ter. oca 4#es* ' use openSUSE5. ' pre"er to use a"ter. oca . Create $etc$init.d$a"ter. oca and "i the ines &e ow: M ` $&in$sh $usr$s&in$")otune >s s eep 1 $etc$init.d$asterisk161 start A so #ou need to remo!e asterisk ser!ice "rom init script M insser! >r $etc$init.d$asterisk161 Hou can &oot the ser!er and hear the di""erence. '" e!er#thing goes we #ou can hear no echo Now etGs take a ook &ack to our e)tension.con" that ' a read# gi!e in the part 2. SrecordingsT e)ten OR .99*1*Answer e)ten OR .99*6*, a#&ack4en$si akanrekamgreeting5 e)ten OR .99*2*-ecord4en$m#message:gsm5 e)ten OR .99*/*, a#&ack4en$pesananda5 e)ten OR .99*.*, a#&ack4en$m#message5 e)ten OR .99*6*, a#&ack4en$tekan15 e)ten OR .99*?*@aitE)ten425 e)ten OR t*1*, a#&ack4en$maa"mohonu angi5 e)ten OR t*6*8oto4.99*.5 e)ten OR i*1*, a#&ack4en$pesanandasa ah5

e)ten OR i*6*8oto4.99*.5 e)ten OR 1*1*S#stem4$&in$m! $!ar$ i&$asterisk$sounds$en$m#message.gsm $!ar$ i&$asterisk$sounds$en$autoattendant.gsm5 e)ten OR 1*6*, a#&ack4en$terimakasih5 e)ten OR 1*2*, a#&ack4en$tekan25 e)ten OR 6*1*8oto4.99*15 e)ten OR 2*1*8oto4.99*15 e)ten OR /*1*3angup inc ude OR interna >sip This is the conte)t a&out recording that we put it in e)tensions.con" and a so in sip.con"* thatGs wh# ' put Iinc ude OR interna >sipI in the &ottom o" the conte)t. @e create the specia e)tension .99 to record the greeting "or our s#stem. @e wi put the record as greeting* when someone "rom outside ca our ines* then Asterisk wi p a# this greeting. ' wi e)p ain it to #ou donGt worr# . Those ines means: 1. '" dia .99 then answer. 6. , a# the sound "i e $!ar$ i&$asterisk$sounds$en$si akanrekamgreeting.gsm. Hou can record a custom sound "i e which contain something ike I, ease record #our greeting a"ter the &eepI* sa!e it as gsm "ormat and ca it "rom here. 2. -ecord #our message 4sa# the greeting #ou want to record5 and put it as $!ar$ i&$asterisk$sounds$en$m#message.gsm /. , a# the "i e $!ar$ i&$asterisk$sounds$en$pesananda.gsm. Hou can record a custom sound "i e which contain something ike IHour greeting isI* sa!e it as gsm "ormat and ca it "rom here. .. , a# #our record greeting that Eust #ou record in step 2. 6. , a# the sound "i e $!ar$ i&$asterisk$sounds$en$tekan1.gsm. Hou can record a custom sound "i e which contain something ike I, ease press 1 to sa!e #our messageI* sa!e it as gsm "ormat and ca it "rom here. ?. @ait 2 second "or pressing 1 7. t*1 means that i" 2 seconds a read# time>out then p a# the sound "i e $!ar$ i&$asterisk$sounds$en$maa"mohou angi.gsm. Hou can record a custom sound "i e which contain something ike I, ease re>record #our messageI* sa!e it as gsm "ormat and ca it "rom here. B. t*6 go to point 6 a&o!e and repeat the steps. 19.i*1 means i" #ou press another num&er in step ? 4#ou donGt record the message5 then p a# the sound "i e $!ar$ i&$asterisk$sounds$en$pesanandasa ah.gsm. Hou can record a custom sound "i e which contain something ike ISorr# ' didnGt get thatI* sa!e it as gsm "ormat and ca it "rom here. 11.i*6 go to point 6 a&o!e and repeat the steps. 16.1*1 i" #ou press 1 in step ? then asterisk wi mo!e $&in$m! $!ar$ i&$asterisk$sounds$en$m#message.gsm to $!ar$ i&$asterisk$sounds$en$autoattendant.gsm 12.1*6 means p a# the sound "i e $!ar$ i&$asterisk$sounds$en$terimakasih.gsm. Hou can record a custom sound "i e which contain something ike Ithank#ouI* sa!e it as gsm "ormat and ca it

"rom here. 1/.1*2 means p a# the sound "i e $!ar$ i&$asterisk$sounds$en$tekan2.gsm. Hou can record a custom sound "i e which contain something ike Ipress 2 to record another messageI* sa!e it as gsm "ormat and ca it "rom here. 1..inc ude OR interna >sip* means that asterisk wi see a so SrecordingT conte)t in Sinterna >sipT conte)t* usua # we manage Sinterna >sipT in sip.con". Now tiGs time to con"igure $etc$asterisk$sip.con". This "i e manage the sip "or ip phone and other periphera in our setup. ' use se!era desk ip>phone* wire ess ip>phone 4,o #com 0irk 1ECT5 and a so 8SM gatewa# 4Zed* Musite etc5* a o" it running we . M# sip.con" ooks something ike: Sgenera T port O .969 &indaddr O 19.?.1.169 disa owOa a owOa a owOu aw a owOgsm conte)tOinterna >sip QaaaaaaP))))) site aaaaaaaaa Q,o #com ',229 S7991T t#peO"riend hostOd#namic dtm"modeOr"c6722 anguageOen conte)tOinterna >sip natOno canrein!iteOno usernameOTENE,391

useridO7991 ca eridOTENE,391 Z7991R mai &o)O7991 a owOa Dua i"#O#es S7996T t#peO"riend hostOd#namic dtm"modeOr"c6722 anguageOen conte)tOinterna >sip natOno usernameOTENE,396 useridO7996 ca eridOTENE,396 Z7996R mai &o)O7996 a owOa Dua i"#O#es S7996T t#peO"riend hostOd#namic dtm"modeOr"c6722 anguageOen Qconte)tOinterna >sip

conte)tOrecordings natOno canrein!iteOno usernameOTENE,396 useridO7996 ca eridO1,TENE,396 Z7996R mai &o)O7996 a owOa Dua i"#O#es Q 0'-0 1ECT 29/9 at site S7969T t#peO"riend hostOd#namic dtm"modeOr"c6722 anguageOen conte)tOinterna >sip natOno usernameOTENE,369 useridO7969 ca eridOTENE,369 Z7969R mai &o)O7969 a owOa Dua i"#O#es QZed 8SM 8ATE@AH

S7921T t#peOpeer insecureO!er# disa owOa a owOu aw a owOa aw a owOgsm conte)tOinterna >sip hostO19.?.1.21 usernameO8S7 permitO19.?.1.21$6...6...6...6.. Dua i"#O#es canrein!iteOno ca > imitO/ dtm"modeOr"c6722 natOno S7926T t#peOpeer insecureO!er# disa owOa a owOu aw a owOa aw a owOgsm conte)tOinterna >sip

hostO19.?.1.26 usernameO8S7 permitO19.?.1.26$6...6...6...6.. Dua i"#O#es canrein!iteOno ca > imitO/ dtm"modeOr"c6722 natOno S7991T and S7996T are the desk ip>phone* S7969T is wire ess ip>phone* and S7921T and S7926T are Zed gsm gatewa#. , ease pa# attention to S7991T and S7996T a most a the con"iguration are same* e)cept one ine.conte)t. :or 7991 conte)tOinterna >sip &ut 7996 conte)tOrecording. This ine te us that "or recording $ greeting purpose we wi use the phone with e)tension 7996. So we can on # dia .99 and do the recording in that phone as we set it in $etc$asterisk$e)tension.con". Hou cannot dia .99 and do recording in the phone with the sip con"iguration doesnGt inc ude the ine conte)tOrecording. ' hope #ou get it. :or gsm gatewa#* ' set it up Eust ike the other as interna >sip. (ut there are a ot o" gsm gatewa#s out there and e!er# &rand has their own con"iguration so p ease read the manua o" #our gsm gatewa# and set it up proper #. Hou can use it in "ront o" digium as ")o$")s or #ou can a so set it up as sip e)tension depend on #ou gsm gatewa# t#pe. NetGs mo!e to chanLdahdi.con" that ' a read# attached se!era post ear ier. Net me remind part o" the "i e: Schanne sT anguageOen conte)tOinterna >")o signa ingO")sLks r)winkO299 cidstartOpo arit# answeronpo arit#switchOno hanguponpo arit#switchOno pu sedia Ono

cidsigna ingOdtm" &us#detectO#es &us#countO6 __ echocance erOmg6*1>16 channe OR 1>16 there is ine with Iconte)tOinterna >")oI. (asica # it means that a the channe s 1 through 16 are in the conte)t o" interna >")o. (# doing this a the ines wi "o ow the setup we a read# done in e)tensions.con" under conte)t Sinterna >")oT* p ease take a ook e)tensions.con" in ear ier part. Hou got it* donGt #ou ^ Net me "inish this asterisk session* . part seem not enough &ut 'Gm a"raid this wi make m# & og so &ore. So "ina notes is a&out ia).con". '" #ou ha!e se!era ocations with asterisk ser!er in e!er# ocation #ou can connect the ser!er and make con!ersation ike #ou dia an e)tension. :irst o" a #ou shou d setup a A,N &etween the site. ' presume #ou a read# now how to set it up* there are a ot o" howto in internet. Then #ou shou d con"igure the ia).con". ' a read# gi!e the e)amp e in pre!ious post* et me e)p ain. Take attention in this part: Sgenera T &indportO/.6B &indaddrO19.7.1.169 _______..

register OR ncpa&)s!:9999@19.1.1.169:/.6B register OR dppa&)s!:9999@19.?.1.169:/.6B register OR #gpa&)s!:9999@19.7.1.169:/.6B

This ser!er address is 19.7.1.169 and the port /.6B use "or the ia). @e shou d register a the ser!er inc uding this ser!er in the 2 ines at the &ottom. A so we shou d make the setup "or e!er# ser!er ike &e ow: Sncpa&)s!T

t#peO"riend authOmd. secretO9999 conte)tO oca hostOd#namic de"au tipO19.1.1.169 Dua i"#O#es reDuireca tokenOno

Sdppa&)s!T t#peO"riend authOmd. secretO9999 conte)tO oca hostOd#namic de"au tipO19.?.1.169 Dua i"#O#es reDuireca tokenOno

S#gpa&)s!T t#peO"riend authOmd. secretO9999 conte)tO oca

hostOd#namic de"au tipO19.7.1.169 Dua i"#O#es reDuireca tokenOno

'n a site with the asterisk ser!er we shou d con"igure ia).con" so e!er# ser!er can &e registered with each other. (# doing this #ou can ca other site with e)tension. Now take a ook again our e)tensions.con" in this section: Sinterna >sipT e)ten OR L1.*1*1ia 4'A;6$#gpa&)s!:9999@19.1.1.169$UVE;TEN:1W@ oca 5 e)ten OR L1.*6*3angup45

e)ten OR L6.*1*1ia 4'A;6$#gpa&)s!:9999@19.?.1.169$UVE;TEN:1W@ oca 5 e)ten OR L6.*6*3angup45

A&o!e ines means: 1. L1. PR i" #ou start a ca with Ipressing 1 then "o ow &# e)tension then #ou connect to asterisk ser!er in ip address 19.1.1.169I. 19.1.1.169$UVE;TEN:1W means the asterisk ser!er in ip 19.1.1.169 wi stripe the "irst digit. 6. L6. PR i" #ou start a ca with Ipressing 6 then "o ow &# e)tension then #ou connect to asterisk ser!er in ip address 19.?.1.169I. 19.?.1.169$UVE;TEN:1W means the asterisk ser!er in ip 19.?.1.169 wi stripe the "irst digit. ' think ' a read# e)p ain e!er#thing that #ou shou d know a&out how to setup and con"igure an asterisk ser!er* make a con"erence room* setting up e)tension* and e!en connecting &etween two or more asterisk ser!er using ia). Now it is #our turn. Hou can e)periment with m# setting unti #ou get used to it and tr# another con"iguration that match with what #ou want. 1onGt "orget to ha!e a ot o" "un.

Potrebbero piacerti anche