Hi;
I have some issue with calling out using trunk sequence;
Hi;
I have some issue with trunk failure functions.
I have configured 3 trunks in the system
- voip - to voip provider
- gsm via gsm gateway
- Isdn via the BRA and isdn Carrier
The outbound route is set for two different patterns 1 for gsm and the second for any other outgoing call
In “other” configuration I have set trunk sequence:
- VoIP
- GSM
- ISDN
I want to use trunk different than VoIP only in case of VoIP trunk failures.
But now when some outbound call is placeded via voip trunk and the called party does not pick up the phone, the system use different trunks to call the number again.
Is it possible to configure the outbound route to use other trunk only in case of the primary trunk is down or thera are some errors on it and not to forward call to another trunk when the called party does not respond.
I have looked in the [macro-dialout-trunk]
and the call process should be cleared when we have busy or “no answer” response
but the macro goes to the CHANUNAVAIL section and try to use other trunk to cal the party again.
exten => s,n(skipoutnum),Dial(${pre_num:4}${the_num}${post_num},300,${DIAL_TRUNK_OPTIONS})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s,n(chanfull),Noop(max channels used up)
exten => s-BUSY,1,Noop(Dial failed due to trunk reporting BUSY - giving up)
exten => s-BUSY,n,Playtones(busy)
exten => s-BUSY,n,Busy(20)
exten => s-NOANSWER,1,Noop(Dial failed due to trunk reporting NOANSWER - giving up)
exten => s-NOANSWER,n,Playtones(congestion)
exten => s-NOANSWER,n,Congestion(20)
exten => s-CANCEL,1,Noop(Dial failed due to trunk reporting CANCEL - giving up)
exten => s-CANCEL,n,Playtones(congestion)
exten => s-CANCEL,n,Congestion(20)
exten => s-CHANUNAVAIL,1,GotoIf($[“x${OUTFAIL_${ARG1}}” = “x”]?noreport)
exten => s-CHANUNAVAIL,n,AGI(${OUTFAIL_${ARG1}})
exten => s-CHANUNAVAIL,n(noreport),Noop(TRUNK Dial failed due to ${DIALSTATUS} (hangupcause: ${HANGUPCAUSE}) - failing through to other trunks)
exten => s-.,1,GotoIf($["x${OUTFAIL${ARG1}}" = “x”]?noreport)
exten => s-.,n,AGI(${OUTFAIL${ARG1}})
exten => s-.,n(noreport),Noop(TRUNK Dial failed due to ${DIALSTATUS} - failing through to other trunks)
exten => disabletrunk,1,Noop(TRUNK: ${OUT${DIAL_TRUNK}} DISABLED - falling through to next trunk)
exten => bypass,1,Noop(TRUNK: ${OUT_${DIAL_TRUNK}} BYPASSING because dialout-trunk-predial-hook)