<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, &quot;David Ponzone&quot; &lt;<a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a>&gt; 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>    &lt;extension name=&quot;from_SIP_account_to_US_<wbr>TollFree&quot;&gt;</div><div>       &lt;condition field=&quot;destination_number&quot; expression=&quot;^00(1800\d+)$&quot;&gt;</div><div>         &lt;action application=&quot;set&quot; data=&quot;api_reporting_hook=curl <a href="http://server/script.php?orig=$%7Bsip_from_user%7D&amp;dest=$%7Bdestination_number%7D&amp;callstart=$%7Banswered_time%7D&amp;callend=$%7Bhangup_time%7D" target="_blank">http://server/script.php?orig=<wbr>${sip_from_user}&amp;dest=${<wbr>destination_number}&amp;callstart=<wbr>${answered_time}&amp;callend=${<wbr>hangup_time}</a> headers get&quot;/&gt;</div><div>         &lt;action application=&quot;set&quot; data=&quot;session_in_hangup_hook=<wbr>true&quot;/&gt;</div><div>         &lt;action application=&quot;bridge&quot; data=&quot;{sip_cid_type=none}<wbr>sofia/gateway/trunk.out/+$1&quot;/&gt;</div><div>       &lt;/condition&gt;</div><div>     &lt;/extension&gt;</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:&#39;Helvetica Neue&#39;"><font color="#1C00FF">David Ponzone<font face="Arial" size="2"><span> </span> </font></font></span><span style="color:rgb(0,34,243);font-family:&#39;Helvetica Neue&#39;"><font color="#000000">Direction Technique</font></span></div><div><div style="font-family:Arial;font-size:10px"><font face="&#39;Helvetica Neue&#39;"><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="&#39;Helvetica Neue&#39;"><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="&#39;Helvetica Neue&#39;"><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="&#39;Helvetica Neue&#39;"><br></font></div><div style="color:rgb(0,34,243)"><font color="#1C00FF" face="&#39;Helvetica Neue&#39;">Service Client </font><font face="&#39;Helvetica Neue&#39;"><font color="#FF0000">IP</font></font><font color="#1C00FF" face="&#39;Helvetica Neue&#39;">eva</font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px"><font color="#1C00FF" face="&#39;Helvetica Neue&#39;"><span style="color:rgb(0,0,0);font-family:Helvetica"><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">tel:      0811 46 26 26</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;" 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&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;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>