[asterisk-users] some simple newbie help with dialplan needed...
Evert
evert at poboxes.info
Mon Nov 6 01:15:31 MST 2006
Hi! :)
Thanks for the tip. I'm almost there now, the only problem that I have
left is that I do NOT want Asterisk to check whether the extension
entered is valid. In the current setup Asterisk will refuse to forward
the call since it thinks the extension is invalid... :-/
Regards,
Evert
Bruce Reeves wrote:
>
> Try changing the last line to
>
> exten => _XXXX,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr)
>
> Which will pattern match any 4 digits and then the ${EXTEN} variable
> will be those 4 digits. One side note is that if the extensions are on
> the same server then you could do either a Goto(<context>,${EXTEN},1)
> or just include their context in the context of your menu.
>
>
> On 11/3/06, *Evert* <evert at poboxes.info <mailto:evert at poboxes.info>>
> wrote:
>
> Hi all!
>
> I need a simple plan for the following:
>
>
> *answer call
> *wait for 4 digit extension
> *send call to 4-digit extension entered.
>
> I tried the following, but that doesn't work...
>
> exten => 998,1,Answer()
> exten => 998,2,Background(agent-newlocation)
> exten => 998,n,WaitExten(20)
> exten => 998,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr)
>
>
> WaitExten obviously does not fill EXTEN with its value...
>
>
>
> Anyone any suggestions?
>
>
> Regards,
> Evert
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com
> <http://Easynews.com> --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
>
> --
> Bruce
> Nortex Networks
More information about the asterisk-users
mailing list