Hi,
I am using Vicidial VERSION: 2.9-441a and Asterisk 1.8.23.0.
I would like to pass PARAMETER from dialplan(extensions.conf) to vicidial agi like as below :
extensions.conf :
[trunkinbound]
; DID call routing process
; exten => _XXXXXXXXXX,1,AGI(agi-DID_route.agi) ; use this one instead of the one below if you are having delay issues, and match to number of received digits
exten => _X.,1,AGI(registed_number.php,${EXTEN})
same => n,NoOp(${rmcount})
exten => _X.,n,AGI(agi-DID_route.agi,${rmcount})
rmcount value coming from registed_number.php and also showing in NoOP , but unable to get in agi file.
-- <SIP/1.1.1.1-0000002a>AGI Script registed_number.php completed, returning 0
-- Executing [4758101@trunkinbound:2] NoOp("SIP/192.168.6.92-0000002a", "NRMN") in new stack
-- Executing [4758101@trunkinbound:3] AGI("SIP/192.168.6.92-0000002a", "agi-DID_route.agi,NRMN") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
-- <SIP/1.1.1.1-0000002a>AGI Script agi-DID_route.agi completed, returning 0
I want to receive argument value in agi :
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
$CLI_stat = $ARGV_vars[0];
print "SET CALLERID $CLI_stat\n";