<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">Minor Correction<br />
<span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">Hi<br />
<br />
I've pretty much have it setup properly with the following:<br />
exten => _24XX,1,Dial(SIP/${EXTEN},30)<br />
exten => _24XX,n,GotoIf($${DIALSTATUS}"="CHANUNAVAIL?noconn:conn)<br />
exten => _24XX,n(noconn),GotoIf($["${EXTEN}"="2400"]?conn:force)<br />
exten => _24XX,n(force),Dial(SIP/2400)<br />
exten => _24XX,n(conn),hangup()<br />
<br />
The only problem is that if 2400 rejects the call asterisk tries to<br />
call extension 2400 again...<br />
What am I doing wrong and how do I fix it?<br />
<br />
<br />
<br />
TIA<br />
Paolo<br />
<br />
On Wed, Mar 21, 2012 at 1:44 PM, Phil Frost <phil@macprofessionals.com> wrote:<br />
> On Mar 21, 2012, at 08:36 , Andrew Latham wrote:<br />
>> On Wed, Mar 21, 2012 at 8:27 AM, Paolo Supino <paolo.supino@gmail.com> wrote:<br />
>>> Hi<br />
>>><br />
>>> I was asked by our development departement to setup asterisk in a<br />
>>> manner that if someone calls an extension in the department that was<br />
>>> was only configured, but a handset was never attached to it to fall<br />
>>> back to a default extension. For example: Someone calls extension<br />
>>> 2408, but there's no phone attached to 2408 it should fall back and<br />
>>> ring at 2400..<br />
>>><br />
>>> How do I setup asterisk to find out if there's a phone attached to an<br />
>>> internal number if not ring another extension?<br />
>>><br />
>><br />
>> Just add a dial(SIP/2400) at a later priority or any of the other many<br />
>> ways. Assuming 2400 is you operator then set the var and drop to the<br />
>> operator. Verify your options to you dial syntax and any std-exten<br />
>> setups.<br />
><br />
><br />
> You might want to additionally inspect ${DIALSTATUS} to know more about why the first Dial() (to 2408, in your example) failed, and then use the ExecIf or GotoIf applications to take different actions.<br />
><br />
> You might also try the function SIPPEER, again coupled with ExecIF or GotoIf.<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 />
--<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 />
</span><br /></span>