<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;">
<br><br>Asterisk Expert wrote:<br>> So you mean it is not possible to access values set from one<br>> 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'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>> Is there any alternative? I must have to use custom CDR not db or radius.<br>><br>> On 3/26/07, Klaus Darilion <<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at
</a>> wrote:<br>>><br>>><br>>><br>>> Asterisk Expert wrote:<br>>> > I thought one call is one transaction isn't it?<br>>><br>>> No.<br>>><br>>> A transaction is a request till the final response,
e.g. INVITE-200 OK.<br>>> or OPTIONS-200 Ok.<br>>><br>>> In SIP terminology a call is named "dialog". A dilaog consists of<br>>> multiple transaction. The first transaction is the "dialog creating
<br>>> transaction" (e.g. INVITE) and the last transaction in this dialog is<br>>> the "dialog terminating transcation" e.g. BYE.<br>>><br>>> Thus, INVITE and BYE are seperate transactions which belong to the same
<br>>> dialog.<br>>><br>>> Openser is transaction statefull, but not dialog statefull.<br>>><br>>> regards<br>>> klaus<br>>><br>>> ><br>>> > On 3/26/07, Klaus Darilion <
<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>> wrote:<br>>> >><br>>> >> 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
<br>>> 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,<br>>> >> insert a<br>>> >> > record in cdr table on invite request. I get the id of the inserted
<br>>> row<br>>> >> > using LAST_INSERT_ID() function of mysql in avp_db_query and<br>>> store in<br>>> >> avp<br>>> >> > variable rowid. I set connect time in reply route when I receive 200
<br>>> OK<br>>> >> for<br>>> >> > Invite request. When I get 200 OK for BYE request, I update the cdr<br>>> >> 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.<br>>> >> According to<br>>> >> tm<br>>> >> > module's onreply_avp_mode parameter, I should be able to see the
<br>>> values<br>>> >> set<br>>> >> > from request route in reply route if I set that parameter to 1<br>>> 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>>> >> ><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>>> >><br>>> ><br>>> ><br>>> ><br>>><br>><br>><br>><br></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Ruchir Brahmbhatt<br>