luanho
April 15, 2013, 4:03pm
1
Dear all.
i have SIP trunking service. i can call from PSTN to asterisk server. Now i get problem with call out. Can you help me,please?
My config is.
Extention.conf
[out-national]
exten => _90[2-7]XZXXXXXXXX,1,Macro(Pstn,${EXTEN:1})
[out-mobile]
exten => _90[8]XXXXXXXXXX,1,Macro(Mobile,${EXTEN:1})
[internal]
include => internal-extensions
include => AJEGROUP
[local]
include => out-urban ;Fijos Locales
include => internal ;Anexos internos y Corporacion
[national]
include => local
include => out-national
[international]
include => national
include => out-international
include => out-mobile
[mobile]
include => out-mobile
include => local
[PSTN-OUT]
include => internal
;exten => _NXXXXXX/998713080,1,Dial(DAHDI/g0/${EXTEN})
;exten => _9XXXXXXXXX,1,Dial(DAHDI/g0/${EXTEN},60)
exten => _9XXXXXXXXX,1,Dial(SIP/FPT-TRUNK/${EXTEN},60)
[internal-extensions]
include => AJEGROUP
include => PSTN-OUT
[macro-Pstn]
;------------------------SIP TRUNKING-------------------------
exten => s,1,DiaL(SIP/FPT-TRUNK/${ARG1},60,TtrT)
[macro-Mobile]
exten => s,1,Dial(SIP/FPT-TRUNK/${AGR1},60,TtrR) ;—SIP TRUNKING----
Debuging
out-urban and internal are missing.
ARG is mis-spelled.
The dialed number begins with 0. All your patterns begin with 9,
luanho
April 17, 2013, 2:32am
3
thank you for your support.
i fixed already. Now it can call from asterisk to PSTN. But i create file welcome when PSTN call to asterisk and the context like that.
When PSTN call to asterisk it will appear hello echo and then press extention local or press “0” call to 7406. But i got problem with press 0, i have to wait hello echo finished and then i can press 0. if i don;t want to wait how can i config?
[PSTN-IN]
include => internal-extensions
; Demas Numeros PRI
;By SIP TRUNKING
exten => _0650730XXXX,1,Answer()
exten => _0650730XXXX,n,Background(welcome)
exten => _0650730XXXX,n,WaitExten()
exten => 0,n,Dial(SIP/7406)
debug
change [quote]exten => 0,n,Dial(SIP/7406)[/quote] for
exten => 0,1,Dial(SIP/7406)