search for: ser_ip

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

Did you mean: ser_ib
2012 Feb 11
1
Asterisk perl AGI confusing variables
...ith 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"); return 0; } Where $carrier resolves to "@my-carrier&q...