So I did it in a custom context, and I set up the line in the custom choice
on the inbound route.
Is there any way that didn’t require a custom context? I’d like to be able
to create an outbound route (for example) and send from inbound to outbound.
In the IAX Trunk definition, under Incoming Settings, set:-
context=custom-iaxin-fred
In extensions_custom.conf, add:-
[custom-iaxin-fred]
exten => _X.,1,Dial(zap/g1/1840${EXTEN})
ISTR Rob Thomas has said that a trunk destination is on the wishlist - YES PLEASE
Also for the wishlist, could Inbound Routes have a field for the source trunk? They already have zaptel channel, IMO it would be better to define the trunk here
I have a similar question, maybe if we both ask someone will answer
I want to force all calls coming in on a specific IAX2 trunk to be sent on to an outbound zaptel (pstn) interface, forcing a carrier prefix (i.e. a simple IAX-PSTN gateway)
Under * I just had a unique incoming context for each trunk, e.g.
[iax-in-fred]
exten => _X.,1,Dial(zap/g1/1840${EXTEN})
How best to do this in freepbx?
Is it time for me to learn about custom config files?