Hi everyone,
I am trying to make an api request inside a hangup callback in PERL AGI when the caller hangs up during early media. I have logging in the callback function so I can see that it is being called but when I call the http request method the script just exits returning 4.
Is there a limit to how much processing I can do in a hangup callback or something? I have tried several different ways of making the request using the various perl http functions but all fail and I am out of ideas
$AGI = new Asterisk::AGI;
$AGI->setcallback(\&hangup_callback);
sub hangup_callback {
$ua = LWP::UserAgent->new;
logInfo("here 1 $ua");
$ua->get('http://www.google.com');
logInfo("here 2");
}
thanks in advance