View Single Post
Unread 09-11-2008, 05:45 PM   #1
gsar
Junior Member
 
Join Date: Sep 2008
Posts: 8
Thanks: 2
Thanked 1 Times in 1 Posts
gsar is on a distinguished road
Exclamation dial plan oddity

I'm trying to setup a dial plan that allows me to select a particular provider by dialing a prefix, like so:

Code:
Pattern     Replacement    Provider
_#1.        ${EXTEN:2}     Provider1
_#2.        ${EXTEN:2}     Provider2
_#3.        ${EXTEN:2}     Provider3
Pretty standard stuff, right? Except it doesn't work!

When I dial #3NNNN on the phone, the SIP logs of my SPA-2102 show that it is sending it to %233NNNN@us.voxalot.com (note the "#" has been escaped as %23) and Voxalot comes back with "the number you've called cannot be connected, please try again". I also tried ${EXTEN:4} to cope with the escaping, but that didn't change the outcome.

If I change the above dial plan to:

Code:
Pattern     Replacement    Provider
_1*.        ${EXTEN:2}     Provider1
_2*.        ${EXTEN:2}     Provider2
_3*.        ${EXTEN:2}     Provider3
and dial 3*NNNN instead, then I can see in the logs that the request goes out to the unescaped address 3*NNNN@us.voxalot.com and the call actually completes with Provider3 as expected.

Now the question: Is this a bug? Or have I misunderstood how Voxalot dialplans are supposed to work?

Any clues appreciated.

P.S: My SPA dialplan is very simple:
Code:
([x#*][x*].)
gsar is offline   Reply With Quote