<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello guys!<br><br>I've solved this question just adding X in dialplan and killing that h option, and of course with your help:<br><br>root@*:/etc/asterisk# vim extensions.conf<br>
<br>
[example]<br>
<br>
exten => _X.,1,Dial(SIP/xxx/${EXTEN},60)<br>
exten => _X.,n,Hangup()<br>
exten => _1620,1,Dial(SIP/${EXTEN},60)<br>
exten => _1620,n,Hangup()<br>
exten => _1622,1,Dial(SIP/${EXTEN},60)<br>
exten => _1622,n,Hangup()<br>
exten => _9XXX,1,Dial(SIP/${EXTEN},60)<br>
exten => _9XXX,n,Hangup()<br>
exten => _1610,1,Dial(SIP/${EXTEN})<br>
exten => _1610,n,Hangup()         <br><br>Thanks for all.<br>Best regards,<br><br>Fellipe <br><br><hr id="stopSpelling">From: fellipe_ps@hotmail.com<br>To: asterisk-users@lists.digium.com<br>Date: Tue, 15 Mar 2011 18:49:32 +0000<br>Subject: Re: [asterisk-users] Some errors<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
Hello guys,<br><br>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?<br>Sorry I'm new with this * world.<br><br>root@*:/etc/asterisk# vim extensions.conf<br>
<br>
[example]<br>
<br>
exten => _.,1,Dial(SIP/xxx/${EXTEN},60)<br>
exten => _.,n,Hangup()<br>
exten => _1620,1,Dial(SIP/${EXTEN},60)<br>
exten => _1620,n,Hangup()<br>
exten => _1622,1,Dial(SIP/${EXTEN},60)<br>
exten => _1622,n,Hangup()<br>
exten => _9XXX,1,Dial(SIP/${EXTEN},60)<br>
exten => _9XXX,n,Hangup()<br>
exten => h,1,Hangup()<br>
exten => _1610,1,Dial(SIP/${EXTEN})<br>
exten => _1610,n,Hangup()        <br><br>Thanks for all.<br>Best regards,<br><br>Fellipe<br><br><hr id="ecxstopSpelling">From: fellipe_ps@hotmail.com<br>To: asterisk-users@lists.digium.com<br>Date: Tue, 15 Mar 2011 18:14:45 +0000<br>Subject: Re: [asterisk-users] Some errors<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
Hi Jason,<br><br>well, I was thinking something like this, but don't hurt to ask :D<br>Thank you for all guys.<br>Best regards,<br><br>Fellipe<br><br>> Date: Tue, 15 Mar 2011 12:37:05 -0500<br>> From: jparker@digium.com<br>> To: asterisk-users@lists.digium.com<br>> Subject: Re: [asterisk-users] Some errors<br>> <br>> On 03/15/2011 12:34 PM, Fellipe Paes wrote:<br>> > why I can't use _. in my dialplan?<br>> ><br>> <br>> Because it matches everything. In this case, it's matching the 'h' exten. So <br>> when the call gets hung up, it goes to _. and does what you're seeing.<br>> <br>> --<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>> http://www.asterisk.org/hello<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br>                                           
<br>--
_____________________________________________________________________
-- 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                                           
<br>--
_____________________________________________________________________
-- 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                                            </body>
</html>