When I had chan_sip trunks, I used this code in /etc/asterisk/extensions_custom.conf:
[from-flowroute-com]
exten => _X!,1,Set(CALLERID(num)=${CALLERID(num):2:12})
exten => _X!,n,Goto(from-trunk,${EXTEN},1)
and then stuck 'from-flowroute-com' in my trunk context instead of 'from-pstn'
This doesn't work with PJSIP trunks as far as I can tell. Is there an equivalent for PJSIP?
If possible, I'd also like calls routed to avantax to only be 10 digits - I can't figure out that either (nor could I with a chan_sip trunk).
I have tried modifying the trunk to 'from-pstn-e164-us' and that didn't seem to do anything - still 11 digits.
Thanks so much.
Andrew
[from-flowroute-com]
exten => _X!,1,Set(CALLERID(num)=${CALLERID(num):2:12})
exten => _X!,n,Goto(from-trunk,${EXTEN},1)
and then stuck 'from-flowroute-com' in my trunk context instead of 'from-pstn'
This doesn't work with PJSIP trunks as far as I can tell. Is there an equivalent for PJSIP?
If possible, I'd also like calls routed to avantax to only be 10 digits - I can't figure out that either (nor could I with a chan_sip trunk).
I have tried modifying the trunk to 'from-pstn-e164-us' and that didn't seem to do anything - still 11 digits.
Thanks so much.
Andrew
Last edited: