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

Frederic Jean fjean at sunnetgroup.net
Mon Feb 20 14:08:53 MST 2006


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");






More information about the asterisk-users mailing list