[Freeswitch-users] api_reporting_hook and session_in_hangup_hook issue

Florent Krieg flokrrr at gmail.com
Thu Sep 15 17:54:25 MSD 2016


Hello David,

Also, you may have a try setting the session_in_hangup_hook variable to
true (JS example here:
https://freeswitch.org/confluence/display/FREESWITCH/JavaScript+Example+-+Session+in+Hangup+Hook,
see the old wiki for more info
https://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook)

Florent

2016-09-15 15:48 GMT+02:00 Ken Rice <krice at freeswitch.org>:

> Why not just use mod_xml_cdr for this… it’ll post a full CDR that you can
> parse and will have all the information you are looking at and will not
> potentially leave a session open
>
>
>
> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *David
> Ponzone
> *Sent:* Thursday, September 15, 2016 8:37 AM
> *To:* FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> *Subject:* [Freeswitch-users] api_reporting_hook and
> session_in_hangup_hook issue
>
>
>
> I am trying to run mod_curl after hangup, in order to sens some channel
> variables to a HTTP server:
>
>
>
>     <extension name="from_SIP_account_to_US_TollFree">
>
>        <condition field="destination_number" expression="^00(1800\d+)$">
>
>          <action application="set" data="api_reporting_hook=curl
> http://server/script.php?orig=${sip_from_user}&dest=${
> destination_number}&callstart=${answered_time}&callend=${hangup_time}
> headers get"/>
>
>          <action application="set" data="session_in_hangup_hook=true"/>
>
>          <action application="bridge" data="{sip_cid_type=none}
> sofia/gateway/trunk.out/+$1"/>
>
>        </condition>
>
>      </extension>
>
>
>
> When I hangup, only sip_from_user and destination_number are correct.
>
> answered_time contains 0 and hangup_time is empty
>
>
>
> Am I missing something ?
>
>
>
> Thank you
>
>
>
> David Ponzone  Direction Technique
>
> email: david.ponzone at ipeva.fr
>
> tel:      01 74 03 18 97
>
> gsm:   06 66 98 76 34
>
>
>
> Service Client IPeva
>
> tel:      0811 46 26 26
>
> *www.ipeva.fr*  -   *www.ipeva-studio.com*
>
>
>
> *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. IPeva 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.*
>
>
>
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160915/a5e5d423/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list