Getting the ampersand, i mean at sign (@) into the dial plan

I’d like to allow SIP/IAX2 dialing from softphone extensions but am having problems with the @ sign. The idea is that somebody using a Xlite extension could dial a SIP or IAX URI by typing in the whole URI. So the dial plan looks like this:

exten => _SIP/.,1,Dial(SIP/${EXTEN:4})
exten => _IA[X]/.1,Dial(IAX2/${EXTEN:4}) ; X in brackets

And when someone dials “SIP/” Asterisk would dial out but it doesn’t work. Asterisk does:


The ampersand and everything after is dropped.

Any ideas?

Asterisk 1.2.1

it’s not an ampersand … that a ‘&’. you’re referring to a ‘commercial at’ or ‘at’ :smiley:

you don’t include any trunk information in your dial. if you’ve got a SIP trunk setup, try using that as part of the dial string, e.g. exten => _SIP/.,1,Dial(SIP/sipprovider/${EXTEN:4})

Man, that’s a little embarassing :blush:

Anyway, the point is to make a call without trunk information in the Dial app. Asterisk is capable of dialing a SIP URI as follows:

exten => 555,1,Dial(SIP/ :wink:

But I’d like to make it more dynamic so that a user can dial ANY SIP URI, not one that has been pre-programmed into the dial plan. But as my first post mentions, the ampersand…doh!..commercial at (@) screws things up.