[Asterisk-biz] alternatives providers routes using asterisk or
DIALSTATUS bug
Peter Bowyer
peeebeee at gmail.com
Thu Jun 16 08:28:40 MST 2005
On 16/06/05, Marco Bulgarini <mbulgarini at virtualandes.cl> wrote:
> Hi,
> Please I request any support with this topic. Each time that we
> execute this little program, Asterisk first send the call using the
> primary provider (...$proveedor.$target...). If the call is answered all
> go good but after Asterisk does an attempt for execute the sentence "if
> ($dialstatus == "CONGESTION") in order to use the backup provider and
> must not to do it because $dialstatus already had a different value
> (ANSWER). Do you known if is a own bug or asterisk bug the present
> problem? Why DIALSTATUS charge the CONGESTION value? The following text
> is a piece of the my program:
>
> my $dialstr = $proveedor.$target."|60|HS(".$timeout.")";
> $AGI->exec("Dial $dialstr");
> $dialstatus = $AGI->get_variable("DIALSTATUS");
> $AGI->exec("verbose $dialstatus");
> if ($dialstatus == "CONGESTION") {
> my $dialstr2 = $contingencia.$target."|60|HS(".$timeout.")";
> $AGI->exec("Dial $dialstr2");
> }
> $answeredtime = $AGI->get_variable("ANSWEREDTIME");
Wrong list - but since we're here - to test strings for equality in
Perl you use eq not ==.
Peter
--
Peter Bowyer
Email: peter at bowyer.org
Tel: +44 1296 768003
VoIP: sip:peter at bowyer.org
More information about the asterisk-biz
mailing list