[Users] Not able to access avp variables in reply route

Asterisk Expert asterisk.expert at gmail.com
Mon Mar 26 14:31:19 CEST 2007


I thought one call is one transaction isn't it?

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



-- 
Regards
Asterisk Expert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20070326/245ef60e/attachment.htm>


More information about the sr-users mailing list