<p dir="ltr">Have you tried execute_on_hangup or api_hangup_hook?</p>
<p dir="ltr">Generally though, the variables tend to be gone after the call hangs up, neither solution worked for me so I just get the info I need from the http post mod_xml_curl sends.</p>
<p dir="ltr">Sincerely,<br>
Don Hawkins</p>
<p dir="ltr">Sent from my NationPCS® Nexus 6.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Sep 15, 2016 8:38 AM, "David Ponzone" <<a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I am trying to run mod_curl after hangup, in order to sens some channel variables to a HTTP server:<div><br></div><div><div> <extension name="from_SIP_account_to_US_<wbr>TollFree"></div><div> <condition field="destination_number" expression="^00(1800\d+)$"></div><div> <action application="set" data="api_reporting_hook=curl <a href="http://server/script.php?orig=$%7Bsip_from_user%7D&dest=$%7Bdestination_number%7D&callstart=$%7Banswered_time%7D&callend=$%7Bhangup_time%7D" target="_blank">http://server/script.php?orig=<wbr>${sip_from_user}&dest=${<wbr>destination_number}&callstart=<wbr>${answered_time}&callend=${<wbr>hangup_time}</a> headers get"/></div><div> <action application="set" data="session_in_hangup_hook=<wbr>true"/></div><div> <action application="bridge" data="{sip_cid_type=none}<wbr>sofia/gateway/trunk.out/+$1"/></div><div> </condition></div><div> </extension></div><div><br></div><div>When I hangup, only sip_from_user and destination_number are correct.</div><div>answered_time contains 0 and hangup_time is empty</div><div><br></div><div>Am I missing something ?</div><div><br></div><div>Thank you</div><div><br></div><div>
<span style="border-collapse:separate;font-family:Helvetica;line-height:normal;border-spacing:0px"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div style="color:rgb(0,0,0)"><span style="color:rgb(0,34,243);font-family:'Helvetica Neue'"><font color="#1C00FF">David Ponzone<font face="Arial" size="2"><span> </span> </font></font></span><span style="color:rgb(0,34,243);font-family:'Helvetica Neue'"><font color="#000000">Direction Technique</font></span></div><div><div style="font-family:Arial;font-size:10px"><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div><div style="font-family:Arial;font-size:10px"><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 01 74 03 18 97</span></font></font></div><div style="font-family:Arial;font-size:10px"><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">gsm: 06 66 98 76 34</span></font></font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px"><font face="'Helvetica Neue'"><br></font></div><div style="color:rgb(0,34,243)"><font color="#1C00FF" face="'Helvetica Neue'">Service Client </font><font face="'Helvetica Neue'"><font color="#FF0000">IP</font></font><font color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px"><font color="#1C00FF" face="'Helvetica Neue'"><span style="color:rgb(0,0,0);font-family:Helvetica"><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 0811 46 26 26</span></font></font></div><div><font face="'Helvetica Neue'" size="3"><span style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span style="text-decoration:underline"><a>www.ipeva.fr</a></span><span style="color:rgb(101,104,149)"> - <span style="color:rgb(0,34,243);text-decoration:underline"><a>www.ipeva-studio.com</a></span></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;font:normal normal normal 10px/normal Arial;color:rgb(192,192,192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div><i><br></i></div></span></div></span></font></div></span></font></div></div></div></span><br></span><br>
</div>
<br></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div>