<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;">
<br><br>Asterisk Expert wrote:<br>&gt; So you mean it is not possible to access values set from one<br>&gt; dialog(INVITE-200 OK) in (BYE-200OK) ?<br><br>You can use avp_db_query to store a certain value into a table during
<br>INVITE and fetch it back during BYE. Of course you need a key which is<br>identical during the dialog - e.g. callid+fromtag+totag.</blockquote><div><br>But totag will be null before relaying invite request, isn&#39;t it?
<br>Currently I did it with just call id. Let me know if it will create any problem.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
regards<br>klaus<br><br>&gt; Is there any alternative? I must have to use custom CDR not db or radius.<br>&gt;<br>&gt; On 3/26/07, Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at
</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Asterisk Expert wrote:<br>&gt;&gt; &gt; I thought one call is one transaction isn&#39;t it?<br>&gt;&gt;<br>&gt;&gt; No.<br>&gt;&gt;<br>&gt;&gt; A transaction is a request till the final response, 
e.g. INVITE-200 OK.<br>&gt;&gt; or OPTIONS-200 Ok.<br>&gt;&gt;<br>&gt;&gt; In SIP terminology a call is named &quot;dialog&quot;. A dilaog consists of<br>&gt;&gt; multiple transaction. The first transaction is the &quot;dialog creating
<br>&gt;&gt; transaction&quot; (e.g. INVITE) and the last transaction in this dialog is<br>&gt;&gt; the &quot;dialog terminating transcation&quot; e.g. BYE.<br>&gt;&gt;<br>&gt;&gt; Thus, INVITE and BYE are seperate transactions which belong to the same
<br>&gt;&gt; dialog.<br>&gt;&gt;<br>&gt;&gt; Openser is transaction statefull, but not dialog statefull.<br>&gt;&gt;<br>&gt;&gt; regards<br>&gt;&gt; klaus<br>&gt;&gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; On 3/26/07, Klaus Darilion &lt;
<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt; wrote:<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; I guess you are trying to use an AVP created during INVITE in the BYE<br>&gt;&gt; &gt;&gt; transaction. This is not possible as the BYE is a different
<br>&gt;&gt; transaction<br>&gt;&gt; &gt;&gt; and AVP lifetime is limited to a single transaction.<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; regards<br>&gt;&gt; &gt;&gt; klaus<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; Asterisk Expert wrote:
<br>&gt;&gt; &gt;&gt; &gt; Hello,<br>&gt;&gt; &gt;&gt; &gt; I&#39;m trying to implement custom CDR using OpenSER. What I do is,<br>&gt;&gt; &gt;&gt; insert a<br>&gt;&gt; &gt;&gt; &gt; record in cdr table on invite request. I get the id of the inserted
<br>&gt;&gt; row<br>&gt;&gt; &gt;&gt; &gt; using LAST_INSERT_ID() function of mysql in avp_db_query and<br>&gt;&gt; store in<br>&gt;&gt; &gt;&gt; avp<br>&gt;&gt; &gt;&gt; &gt; variable rowid. I set connect time in reply route when I receive 200
<br>&gt;&gt; OK<br>&gt;&gt; &gt;&gt; for<br>&gt;&gt; &gt;&gt; &gt; Invite request. When I get 200 OK for BYE request, I update the cdr<br>&gt;&gt; &gt;&gt; record<br>&gt;&gt; &gt;&gt; &gt; and store connect time, disconnect time, duration, etc. But at this
<br>&gt;&gt; &gt;&gt; &gt; place(reply route) I get the null rowid so as connect time.<br>&gt;&gt; &gt;&gt; According to<br>&gt;&gt; &gt;&gt; tm<br>&gt;&gt; &gt;&gt; &gt; module&#39;s onreply_avp_mode parameter, I should be able to see the
<br>&gt;&gt; values<br>&gt;&gt; &gt;&gt; set<br>&gt;&gt; &gt;&gt; &gt; from request route in reply route if I set that parameter to 1<br>&gt;&gt; but it<br>&gt;&gt; &gt;&gt; &gt; has no<br>&gt;&gt; &gt;&gt; &gt; effect. I can not use either avp variables or script variables as
<br>&gt;&gt; &gt;&gt; &gt; transaction variables to record custom cdr. Can anyone guide me<br>&gt;&gt; &gt;&gt; &gt; implementing<br>&gt;&gt; &gt;&gt; &gt; this scenario or tell me what I&#39;ve done wrong?<br>&gt;&gt; &gt;&gt; &gt;
<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt; _______________________________________________
<br>&gt;&gt; &gt;&gt; &gt; Users mailing list<br>&gt;&gt; &gt;&gt; &gt; <a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt;&gt; &gt;&gt; &gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users
</a><br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Ruchir Brahmbhatt<br>