[Asterisk-Users] Dial from AGI = no ring back ??

Eric "ManxPower" Wieling eric at fnords.org
Mon Feb 20 16:45:15 MST 2006


If the line is answered, you frequently need a 
/etc/asterisk/indications.conf in order to get ringback.

Frederic Jean wrote:
> Hi everybody,
> I sent an e-mail this morning regarding SIP / IAX2
> with no ring-back, I now succeeded to pin-point the
> problem, here it is, if I dial a provider directly from
> extensions.conf I get ring-back, if I dial from an AGI
> script I don't get the ring-back but it calls anyway.
> 
> I use 1.0.9.
> 
> Any hint would be appreciated ! Thanks,
> Frederic
> 
> ;Calling this one does not give me ring back from the script:
> exten => _0XX32316200,1,DeadAGI(fred.agi)
> exten => _0XX32316200,2,Hangup
> 
> ;Dialing this one directly gives me the ring back
> exten => _10XX32316200,1,Dial(IAX2/provider/559132316200,60);
> exten => _10XX32316200,2,Hangup
> 
> The "fred.agi" script:
> 
> #!/usr/bin/perl
> 
> use DBI;
> use Asterisk::AGI;
> $AGI = new Asterisk::AGI;
> 
> $AGI->answer();
> $dialstr = "IAX2/provider/559132316200|60";
> $res = $AGI->exec("DIAL $dialstr");
> 
> 
> 
> _______________________________________________
> --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