[Asterisk-Users] Prefix the * character

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sun Dec 7 21:57:33 MST 2003


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... at 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 at fwd.pulver.com, and not *1 at 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




More information about the asterisk-users mailing list