; Handle calls coming in from MyFone SIP proxy ; [myfone-inbound] ; Incoming calls from MyFone to Asterisk are directed to the extension ; 2222 on Asterisk ; This is a SIP phone in this sample config. ; exten => ,1,Dial(SIP/2222,30) exten => ,2,Congestion exten => ,102,Busy ; Note: In this sample config, in the settings for extension 2222 its ; context is set as "default". ; So any outgoing calls made from extension 2222 are processed in this ; section. ; [default] ; Send all outbound calls with prefix 3 via MyFone. Strip the prefix 3 ; before sending call to MyFone SIP proxy ; Ex: if 30291234567 is dialled then the 3 is removed and 0291234567 is ; sent to the MyFone SIP proxy. ; ; Note :{EXTEN:1} => strip the first digit of number contained in ; variable EXTEN ; myfone-sip is defined in sip.conf, 30 it the timeout ; exten => _3.,1,Dial(SIP/${EXTEN:1}@myfone-sip,30) exten => _3.,2,Congestion exten => _3.,102,Busy