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/[EMAIL PROTECTED],60,tr) That will send everything over 1 digit to ${SERADDRESS}
 
bp
 
On 11/6/06, Evert <[EMAIL PROTECTED]> 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/[EMAIL PROTECTED],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.

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to