Page 1 of 1

[HELP]What agi-VDADcloser_inbound script to use for IAX trk?

PostPosted: Fri Jan 12, 2007 11:48 am
by AlexR
Hello!

I am currently using vicidial 2.0.3b right now, and i have the following setup:

E1--->[ASTERISK]<-----IAX/TRUNK----->[VICIDIAL]

I have calls forwarded from the PSTN (E1 trunk) to the VICIDIAL box. But as soon as calls go into agi-VDADcloser_inbound script the call ends. It seems i might not be using the correct script.

Matt, which one do you suggest for using in this scenario?


Thank you for your help!!



alejandro

Found solution!

PostPosted: Fri Jan 12, 2007 4:01 pm
by AlexR
Hello All, I just wanted to post that i have found the solution:

You can use the same agi-VDADcloser_inboundCID.agi that you use in "normal" setups.

What happened was this


My IAX2 trunk was named "iaxlocaltrunk" and inside agi-VDADcloser_inboundCID.agi the code reads:

Code: Select all
if ($channel =~ /Local/i)
{
if ($AGILOG) {$agi_string = "+++++ VDAD START LOCAL CHANNEL: EXITING- $priority";   &agi_output;}
exit;
}


So if the call comes from a trunk that has LOCAL on its name, it just wont work!

I just renamed the trunk... and we are good to go!


Thank you everyone!!



alejandro[/code]

PostPosted: Sat Jan 13, 2007 7:11 am
by mflorell
Is your trunk registered?

Are you using the same Dial string as you used to register the IAX trunk?