What you're looking for is a mechanism to create values that persist throughout the life of a dialog, not a transaction. There are two ways to accomplish that:
1. Traditional way, somewhat kludgy: stuff the value into the Record-Route header, taking advantage of its persistence across sequential messages:
http://www.kamailio.org/docs/modules/3.3.x/modules_k/rr.html#add-rr-param-id
Then, fish it back out with check_route_param().
2. Dialog variables: a new concept, relatively recently introduced:
http://www.kamailio.org/docs/modules/3.3.x/modules_k/dialog.html#id2556135
-- Alex
On 08/20/2012 12:23 AM, Uri Shacked wrote:
OK, I understan the AVP's are per transaction. How can I save info from the invite and use it on the bye? $sht(...)? $dlg(flag), $dlg(set) ? Thanks, Uri
juha writes it is not strange reason, since avps are transaction specific and bye does not belong to the same transaction as invite.
juha
Uri Shacked writes:
/>I am trying to use an AVP the I set on the INVITE when I recieve the
BYE./ /> />/for some strange reason, the AVP is NULL when I test it. /
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users