>>>>> "EW" == Eric \"ManxPower\" Wieling <Eric> writes:
EW> exten => _+NXXNXXXXXX,1,Goto(${EXTEN:1},1)
You are assuming a fixed-length number here...
The basic problem is to ensure that the extension gets run first,
since asterisk has its very own ideas about what goes first. So put
the incoming calls in context removeplus instead of incoming, and do:
[removeplus]
_+!,1,Goto(incoming,${EXTEN:1},1)
_X!,1,Goto(incoming,${EXTEN},1)
This assumes that ${EXTEN} starts with either a number or a plus. If
it can start with other things, you can do
_!,1,Goto(incoming,${EXTEN},1)
for the second line, but then you are relying on asterisks extension
ordering again.
/Benny
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users