[asterisk-users] Auto retry on Busy
Kevin Savoy
ksavoy at novo1.com
Fri Aug 11 12:33:11 MST 2006
You need to change:
exten => 777,4,goto(trunkretry,1,1)
to
exten => 777,4,goto(trunkretry,777,1)
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Noah Silverman
Sent: Friday, August 11, 2006 1:54 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion; Kevin Smith
Subject: Re: [asterisk-users] Auto retry on Busy
Kevin,
Thanks for the suggestion. I can't seem to get it to work.
This is what I put in my extensions.conf
We only have one number that we want to keep trying right now, so I
tried to set it so by calling extension 777, it would start the
system retrying. (The actual number isn't 9999999 :)
[trunkretry]
exten => 777,1,Dial(${TRUNK}/www13239999999},10,)
exten => 777,2,gotoif[${DIALSTATUS}="BUSY"]?(LINEBUSY):(OTHER)
exten => 777,3,(LINEBUSY), Wait(15)
exten => 777,4,goto(trunkretry,1,1)
Thanks,
-N
On Aug 11, 2006, at 11:29 AM, Kevin Smith wrote:
> Why don't you just test for the dial status after the dial command
> completes? I don't really see why you want something to keep
> dialing until it gets through, but this would work.
>
> [something]
> 1,1,Dial(zap/,sip/, etc/whatever, 10)
> 1,n,gotoif[${DIALSTATUS}="BUSY"]?(LINEBUSY):(OTHER)
> 1,n(LINEBUSY), Wait(30)
> 1,n,goto(something,1,1)
> 1,n(OTHER), do something else
>
> Sure it is pretty rough, but the basics are there. Also you might
> want to read this: http://www.voip-info.org/wiki-Asterisk+variable
> +DIALSTATUS
>
> Kevin
>
>
>
> Noah Silverman wrote:
>> Hi,
>>
>> Does anybody have an easy solution for this.
>>
>> I want something that will keep trying a busy number every 30
>> seconds until it gets through.
>>
>> I've tried retrydial, but can't get it to work.
>>
>> Any suggestions?
>>
>> Thanks,
>>
>> -N
>> _______________________________________________
>> --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
> _______________________________________________
> --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
>
_______________________________________________
--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
More information about the asterisk-users
mailing list