[sr-dev] scope of AVPs (AVP defined when execution of script starts)

Juha Heinanen jh at tutpro.com
Sat Aug 29 11:19:30 CEST 2009


i send the message below to wrong mailing list.  i'm experiencing this
behavior with sip-router, not kamailio.  perhaps the behavior would be
as expected with kamailio.

-- juha

----------------------------------------------------------------------

i have always thought that AVPs exits per transaction.  that does not
seem to be the case, however, because when i put in the beginning of my
script

	xlog("L_INFO", "Caller lcr_id $avp(CALLER_LCR_ID_AVP)\n");
		
this gets printed to syslog:

Aug 29 11:34:34 localhost /usr/sbin/sip-router[10210]: INFO: Caller lcr_id 2

is this the indented behavior?  do i really need to delete all AVPs in
the beginning of the script in order to make sure that they don't have
any values left from processing of previous message?

-- juha



More information about the sr-dev mailing list