[asterisk-users] Some errors
Fellipe Paes
fellipe_ps at hotmail.com
Tue Mar 15 15:18:56 CDT 2011
Hello guys!
I've solved this question just adding X in dialplan and killing that h option, and of course with your help:
root@*:/etc/asterisk# vim extensions.conf
[example]
exten => _X.,1,Dial(SIP/xxx/${EXTEN},60)
exten => _X.,n,Hangup()
exten => _1620,1,Dial(SIP/${EXTEN},60)
exten => _1620,n,Hangup()
exten => _1622,1,Dial(SIP/${EXTEN},60)
exten => _1622,n,Hangup()
exten => _9XXX,1,Dial(SIP/${EXTEN},60)
exten => _9XXX,n,Hangup()
exten => _1610,1,Dial(SIP/${EXTEN})
exten => _1610,n,Hangup()
Thanks for all.
Best regards,
Fellipe
From: fellipe_ps at hotmail.com
To: asterisk-users at lists.digium.com
Date: Tue, 15 Mar 2011 18:49:32 +0000
Subject: Re: [asterisk-users] Some errors
Hello guys,
one more question, if I have the following dialplan and can't use _. how can I send everything that isn't 1620,1622,1610,9XXX to SIP/xxx?
Sorry I'm new with this * world.
root@*:/etc/asterisk# vim extensions.conf
[example]
exten => _.,1,Dial(SIP/xxx/${EXTEN},60)
exten => _.,n,Hangup()
exten => _1620,1,Dial(SIP/${EXTEN},60)
exten => _1620,n,Hangup()
exten => _1622,1,Dial(SIP/${EXTEN},60)
exten => _1622,n,Hangup()
exten => _9XXX,1,Dial(SIP/${EXTEN},60)
exten => _9XXX,n,Hangup()
exten => h,1,Hangup()
exten => _1610,1,Dial(SIP/${EXTEN})
exten => _1610,n,Hangup()
Thanks for all.
Best regards,
Fellipe
From: fellipe_ps at hotmail.com
To: asterisk-users at lists.digium.com
Date: Tue, 15 Mar 2011 18:14:45 +0000
Subject: Re: [asterisk-users] Some errors
Hi Jason,
well, I was thinking something like this, but don't hurt to ask :D
Thank you for all guys.
Best regards,
Fellipe
> Date: Tue, 15 Mar 2011 12:37:05 -0500
> From: jparker at digium.com
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] Some errors
>
> On 03/15/2011 12:34 PM, Fellipe Paes wrote:
> > why I can't use _. in my dialplan?
> >
>
> Because it matches everything. In this case, it's matching the 'h' exten. So
> when the call gets hung up, it goes to _. and does what you're seeing.
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110315/2a499ed9/attachment.htm>
More information about the asterisk-users
mailing list