When incoming calls come in on my voice line (lingo VOIP service) and asterisk “rings” my X-Lite SIP client, the CID always contains the area code then the number.
I am trying to get my extensions.conf file setup so that when I click on a missed called in X-Lite, that it dials properly. Currently, when I try to dial a missed call, it sends the area code + number, but missing a 1 in front of the number.
In my extensions.conf file, I have some canned dialplans that allow me to route local calls differently than LD calls differently than 800 calls, etc…
What I am trying to do is write an extenion that will match a 10 digit number and then prefix a ‘1’ in front, then let the other dialplans match the dialed number.
According to the docs ( digium.com/en/docs/asterisk_ … refix.html ), I should be able to use the following:
exten => _NXXNXXXXXX,1,Prefix,1
But when asterisk matches this exten, I get the following error:
pbx_extension_helper: No application ‘Prefix’ for extension
I can’t seem to find any more information on using prefix.
Granted, I can just add the approiate extens to match the dialed 10 digit number and process accordingly, but am more concerned as to why the Prefix does not work.
I am using 1.2.13 on FreeBSD 5.4