Link to home
Start Free TrialLog in
Avatar of jetli87
jetli87

asked on

Asterisk Dial Plan Syntax - Removing + and digits

Hi gurus,

I have a simple question and I can't figure out for the life of me.

one of my PBX is passing the below digits to my asterisk which i want to forward to my PRI line...What's the best approach to handle this?

I figured using syntax to remove the "+" sign along with the "6" would resolve my issue, but I can't set IGNOREPAT properly to remove the "+" sign.

PBX ==> +613101234567 ==> Asterisk ==> PRI

exten => _+61NXXNXXXXXX,1,Answer()
exten => _+61NXXNXXXXXX,n,Dial(${TRUNK}/${EXTEN:1})
exten => _+61NXXNXXXXXX,n,hangup()
exten => _+61NXXNXXXXXX,n,Congestion

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of grblades
grblades
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello

_+61NXXNXXXXXX,n,Dial(${TRUNK}/${EXTEN:1})  like you have it should work.

Please post the verbose output when you dialout.