Any ideas on how to do this one? FWD requires an * on certain calls as a prefix character, but I cannot seem to be able to get Prefix(*) to add that to the front of the extension that is dialed... Setting up an extension that dials (SIP/*31...@fwd.pulver.com) works just fine, but in trying to add the prefix to a dialed number, it acts as if the Prefix command was not even there, ie: exten => 1,1,Prefix(*) exten => *1,2,Dial(SIP/${EXTEN}@fwd.pulver.com) would dial 1@fwd.pulver.com, and not *1@fwd.pulver.com Any ideas? Tnx Kris
On Sunday 07 December 2003 22:48, Kris Stark wrote:> Any ideas on how to do this one? > > FWD requires an * on certain calls as a prefix character, but I > cannot seem to be able to get Prefix(*) to add that to the front of > the extension that is dialed... Setting up an extension that dials > (SIP/*31...@fwd.pulver.com) works just fine, but in trying to add the > prefix to a dialed number, it acts as if the Prefix command was not > even there, ie: > > exten => 1,1,Prefix(*) > exten => *1,2,Dial(SIP/${EXTEN}@fwd.pulver.com) > > would dial 1@fwd.pulver.com, and not *1@fwd.pulver.com > > Any ideas?Prefix is an older application which was more useful prior to being able to manipulate variables (the days of BYEXTENSION instead of ${EXTEN}). Instead, do: Dial(SIP/*${EXTEN}@fwd.pulver.com) -Tilghman
exten => _7XXXXX,2,Dial(SIP/*${EXTEN:1}@fwd.pulver.com) On Sun, 7 Dec 2003, Kris Stark wrote:> Any ideas on how to do this one? > > FWD requires an * on certain calls as a prefix character, but I cannot > seem to be able to get Prefix(*) to add that to the front of the > extension that is dialed... Setting up an extension that dials > (SIP/*31...@fwd.pulver.com) works just fine, but in trying to add the > prefix to a dialed number, it acts as if the Prefix command was not even > there, ie: > > > would dial 1@fwd.pulver.com, and not *1@fwd.pulver.com > > Any ideas? > > Tnx > > Kris > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
On Sun, 2003-12-07 at 23:57, Tilghman Lesher wrote:> On Sunday 07 December 2003 22:48, Kris Stark wrote: > > Any ideas on how to do this one? > > > > FWD requires an * on certain calls as a prefix character, but I > > cannot seem to be able to get Prefix(*) to add that to the front of > > the extension that is dialed... Setting up an extension that dials > > (SIP/*31...@fwd.pulver.com) works just fine, but in trying to add the > > prefix to a dialed number, it acts as if the Prefix command was not > > even there, ie: > > > > exten => 1,1,Prefix(*) > > exten => *1,2,Dial(SIP/${EXTEN}@fwd.pulver.com) > > > > would dial 1@fwd.pulver.com, and not *1@fwd.pulver.com > > > > Any ideas? > > Prefix is an older application which was more useful prior to being > able to manipulate variables (the days of BYEXTENSION instead of > ${EXTEN}). Instead, do: > > Dial(SIP/*${EXTEN}@fwd.pulver.com) > > -TilghmanThanks! I actually had tried this to no avail, but then noticed after digging through that it was in fact using the wrong entry to begin with... An simpler match was being made, and so it never got to that part of the dialplan... Thanks again! Kris