[from-comsat]
exten => s,1,AGI(extension_by_mobile.php|${CALLERID(num)})
exten => s,n(go_disa),Set(CALLERID(num)=${EXTENSION})
exten => s,n,Goto(disa,s,1)
exten => s,n,Hangup()
exten => s,n(go_pbx),Macro(dial-sip,,${EXTENSION},VOXTREAM,${CALLERID(num)})
exten => s,n,Hangup()
include => voxtream
[from-telegate-br]
exten => _XX,1,Macro(dial-sip,,${EXTEN},VOXTREAM,${CALLERID(num)})
[voxtream]
exten => _1Z,1,Macro(dial-sip,,${EXTEN},VOXTREAM,${CALLERID(num)}) #calls intern new
exten => _2X,1,Macro(dial-sip,,${EXTEN},VOXTREAM,${CALLERID(num)}) #calls intern new
exten => _3[0-24-7],1,Macro(dial-sip,,${EXTEN},VOXTREAM,${CALLERID(num)}) #calls intern new
exten => _0.,1,Macro(dial-sip,,0${EXTEN},VOXTREAM,${CALLERID(num)}) #calls to pstn new
exten => _01[5-7],1,Macro(dial-gsm,,${EXTEN},VODAFONE) #calls to GSM-Network
[from-telegate-de]
exten => 38,1,Goto(disa,s,1)
exten => 39,1,Macro(dial-gsm,,0170xxxxxxx,VODAFONE)
exten => 21,1,Macro(dial-gsm,,0175xxxxxxx,VODAFONE)
Include => voxtream
[disa]
exten => s,1,Wait(1)
exten => s,n,BackGround(DIALTONE)
exten => s,n,WaitExten(10)
include => voxtream
[macro-dial-sip]
exten => s,1,Set(CALLERID(num)=${ARG4})
exten => s,n,Dial(SIP/${ARG3}/${ARG2},60,t)
exten => s,n,Hangup()
[macro-dial-gsm]
exten => s,1,Dial(COMSAT/${ARG3}/${ARG2},60,Tt)
exten => s,n,Hangup()