Just remember that once the call ends, the "session" object you have is read-only. You can still do interesting things, but you cannot alter CDRs after the call ends, at least not in a session hangup hook. You are better off with XML CDRs and post-call logic. With all of the screwy transfer scenarios you have to account for you will absolutely need to do some post-processing logic. Sounds like lots of "fun". :P<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Wed, Aug 3, 2011 at 12:14 PM, Isaac Jurado <span dir="ltr"><<a href="mailto:ijurado@econcept.es">ijurado@econcept.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Wed, Aug 3, 2011 at 7:56 PM, Avi Marcus <<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>> wrote:<br>
><br>
> If the channel is hung up, then it's hung up.. that's what the hangup<br>
> hook is, afaik. If you look at the wiki page for this:<br>
> <a href="http://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook" target="_blank">http://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook</a><br>
> it only says that you can "access" the variable, not that the channel<br>
> still exists or that you can set them.<br>
<br>
It looks that the session object is only available through bindings like<br>
mod_lua. I'll have to check<br>
<br>
> Why do you need to use a hangup hook to set a variable? can't you set<br>
> it at the start? Or import B leg into A leg's CDRs?<br>
<br>
It's a bit tricker than that. We are trying to implement a stateless<br>
CDR processing and billing mechanism that works also across call<br>
transfers.<br>
<br>
As I said, we will probably end up defining a Lua hook.<br>
<br>
Thanks again for your quick response.<br>
<br>
Cheers.<br>
<br>
--<br>
Isaac Jurado<br>
Internet Busines Solutions eConcept<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>