I thought one call is one transaction isn't it?<br><br><div><span class="gmail_quote">On 3/26/07, <b class="gmail_sendername">Klaus Darilion</b> <<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I guess you are trying to use an AVP created during INVITE in the BYE<br>
transaction. This is not possible as the BYE is a different transaction<br>and AVP lifetime is limited to a single transaction.<br><br>regards<br>klaus<br><br>Asterisk Expert wrote:<br>> Hello,<br>> I'm trying to implement custom CDR using OpenSER. What I do is, insert a
<br>> record in cdr table on invite request. I get the id of the inserted row<br>> using LAST_INSERT_ID() function of mysql in avp_db_query and store in avp<br>> variable rowid. I set connect time in reply route when I receive 200 OK for
<br>> Invite request. When I get 200 OK for BYE request, I update the cdr record<br>> and store connect time, disconnect time, duration, etc. But at this<br>> place(reply route) I get the null rowid so as connect time. According to tm
<br>> module's onreply_avp_mode parameter, I should be able to see the values set<br>> from request route in reply route if I set that parameter to 1 but it<br>> has no<br>> effect. I can not use either avp variables or script variables as
<br>> transaction variables to record custom cdr. Can anyone guide me<br>> implementing<br>> this scenario or tell me what I've done wrong?<br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@openser.org">Users@openser.org</a><br>> <a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Asterisk Expert