[Asterisk-Users] NuFone + VoIPJet = busy busy busy

Eric Wieling eric at fnords.org
Wed Mar 16 09:36:15 MST 2005


Once you run Dial from an AGI script, you lose control of the call via 
the AGI script.

Jean-Michel Hiver wrote:

> 
>> (obviously if you do other magic in your dialplan this needs to be 
>> adjusted.  The important part is the 'g' flag to Dial (go on after 
>> hangup), and the NoOp which echos the dialstatus and hangupcause 
>> variables to the console.
>>  
>>
> How would you do this in an AGI script? Basically what I have at the 
> moment is:
> 
> (minimize connection time, tries to open both nufone and voipjet and 
> route through
> which one is fastest)
> 
> my $dialstr = 
> "IAX2/mylogin\@NuFone/$number&IAX2/mylogin\@voipjet/$number|120";
> my $res = $::YKOZ_AGI->exec ("DIAL $dialstr");
> 
> 
> Here is what I see on the CLI:
> 
> AGI Rx << EXEC DIAL 
> IAX2/jhiver at NuFone/01133692660587&IAX2/543 at voipjet/01133692660587|120 ""
>    -- AGI Script Executing Application: (DIAL) Options: 
> (IAX2/jhiver at NuFone/01133692660587&IAX2/543 at voipjet/01133692660587|120)
>    -- Called jhiver at NuFone/01133692660587
>    -- Called 543 at voipjet/01133692660587
>    -- Call accepted by 216.118.117.46 (format ulaw)
>    -- Format for call is ulaw
>    -- Call accepted by 66.225.202.72 (format ulaw)
>    -- Format for call is ulaw
>    -- IAX2/voipjet/7 is making progress passing it to IAX2/admin at admin/1
>    -- IAX2/NuFone/6 is circuit-busy
>    -- Hungup 'IAX2/NuFone/6'
>    -- IAX2/voipjet/7 is busy
>    -- Hungup 'IAX2/voipjet/7'
>  == Everyone is busy/congested at this time
> 
> 
>> Nufone is rock-solid stable.  I have been using them for about 
>> 5kmin/month over the past year with *no* issues, which is why I'd like 
>> to see what you're getting back for a dialstatus and hangupcause.
>>  
>>
> Well maybe it depends on the route you're using... you know, like 
> 'connect me to a mobile phone on some lost island in the indian ocean' 
> might not be as reliable as 'pass me onto the library of new york' :)
> 
> Cheers,
> Jean-Michel.
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
Always do right. This will gratify some people and astonish the rest.
Mark Twain



More information about the asterisk-users mailing list