I just figured out, we can use $hdr(name[N]).
On Wed, Jun 18, 2008 at 6:48 PM, Ruchir ruchir.lists@gmail.com wrote:
How to retrieve value from header?
On Wed, Jun 18, 2008 at 6:31 PM, Iñaki Baz Castillo ibc@in.ilimit.es wrote:
El Wednesday 18 June 2008 14:52:47 Ruchir escribió:
I tested and found that avp variables are lost after relaying the
request.
My call scenario is like following
- Call is made
- Callee has call forwarding so appropriate avp values are loaded.
- avp for source and destination number are stored for multi-leg
accounting 4. request is relayed 5. request comes again to openser 6. avp variable is lost this time
Of course. AVP's live for a transaction (and for responses to this transaction is "avp_on_reply" is set to "yes" in "tm" module).
If OpenSer sends a request (client transaction) and this request comes back (maybe a spiral) the new arriving request is a server transaction independent of the first client transaction and of course they don't sahre AVP's.
For this you need adding headers or parameters in the message.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users