search for: ast_agi

Displaying 1 result from an estimated 1 matches for "ast_agi".

Did you mean: app_agi
2012 Feb 11
1
Asterisk perl AGI confusing variables
Hello all, I'm struck with a very strange problem today. I've an AGI with some code subroutine snippet as follows: sub enable_sbc($) { my $carrier = shift; my $tmp = substr($carrier,1); my $jkh = $tmp; $server_port = $ast_agi->get_variable("SIPPEER($jkh,port)"); $ser_ip = $ast_agi->get_variable("SIPPEER($tmp,ip)"); $ast_agi->exec("SIPAddHeader","P-PORT: $server_port"); $ast_agi->exec("SIPAddHeader","P-IPADDRESS: $ser_ip");...