I thought one call is one transaction isn&#39;t it?<br><br><div><span class="gmail_quote">On 3/26/07, <b class="gmail_sendername">Klaus Darilion</b> &lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at
</a>&gt; 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>&gt; Hello,<br>&gt; I&#39;m trying to implement custom CDR using OpenSER. What I do is, insert a
<br>&gt; record in cdr table on invite request. I get the id of the inserted row<br>&gt; using LAST_INSERT_ID() function of mysql in avp_db_query and store in avp<br>&gt; variable rowid. I set connect time in reply route when I receive 200 OK for
<br>&gt; Invite request. When I get 200 OK for BYE request, I update the cdr record<br>&gt; and store connect time, disconnect time, duration, etc. But at this<br>&gt; place(reply route) I get the null rowid so as connect time. According to tm
<br>&gt; module&#39;s onreply_avp_mode parameter, I should be able to see the values set<br>&gt; from request route in reply route if I set that parameter to 1 but it<br>&gt; has no<br>&gt; effect. I can not use either avp variables or script variables as
<br>&gt; transaction variables to record custom cdr. Can anyone guide me<br>&gt; implementing<br>&gt; this scenario or tell me what I&#39;ve done wrong?<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt; <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