Add SIP channel when Zap channels full

Hello,

I have 4 zapata channels from my provider, but i would like to add a SIP backup to fall back on when all 4 channels are full. This would be for outgoing calls only.

Is it possible?

Thanks

Well yes… pesudocode will be like:

exten => _XXXXXXXXX,1,Dial(DAHDI/r1/${EXTEN})
same => n,Dial(SIP/YournewTrunk/${EXTEN})
same => n,Hangup() || otherhanguphandler

If you have answer supervision, this will also try to use SIP if the called party doesn’t answer, or is busy. For finer control, check ${HANGUPCAUSE}.

[quote=“navaismo”]Well yes… pesudocode will be like:

[code]
exten => _XXXXXXXXX,1,Dial(DAHDI/r1/${EXTEN})
same => n,Dial(SIP/YournewTrunk/${EXTEN})
same => n,Hangup() || otherhanguphandler

[/code][/quote]

Added the voip trunk and your modified lines and it worked.
Now i will modify it so that everyone dialing out uses voip, it will free up the 4 hardlines for incomming.

Thanks