[asterisk-users] some simple newbie help with dialplan needed...

William Piper william.piper at gmail.com
Mon Nov 6 21:22:51 MST 2006


That won't check to see if it is a valid extension... it will only make sure
that it is 4 digits.

If you want to send everything just do:
exten => _X.,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr) That will send
everything over 1 digit to ${SERADDRESS}

bp

On 11/6/06, Evert <evert at poboxes.info> wrote:
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061106/32ef5879/attachment.htm


More information about the asterisk-users mailing list