[reSIProcate] DumFeature scoping question

Kovar, William (Bill) bkovar at avaya.com
Mon Jun 26 14:54:31 CDT 2006


I'm trying using the DumFeature to add a Call-Info header to REFER
messages. 
 
I used the example code as a basis and I have a question as to when
calling the DumFeature registered method "AddCallInfo(Data& XYZ)" should
be done. XYZ is different for each call within the same UA.
 
QUESTION: Do I only call it only once??
I ask this because I'm seeing the following in the modified REFER msg
(after several REFER msgs have been sent by my UA):
##################################################
REFER sip:7771111 at 135.8.52.125 SIP/2.0
Via: SIP/2.0/UDP
135.8.116.33:10007;branch=z9hG4bK-d87543-4b5f5c06ca0fa758-1--d87543-;rpo
rt
Max-Forwards: 70
Contact: <sip:2220001 at 135.8.116.33:10007>
To: "7771111"<sip:7771111 at 135.8.52.125>;tag=as3838c4b0
From: "2220001"<sip:2220001 at 135.8.116.33:10007>;tag=cf3d0a2f
Call-ID: 56f80dec619509773d1f250120462fcd at 135.8.52.125
CSeq: 2 REFER
Call-Info: <44a035a50000000087083436233e0002>;purpose=isdnuui
Call-Info: <44a035a50000000087083436233e0002>;purpose=isdnuui
Call-Info: <44a035a40001000087083436233e0002>;purpose=isdnuui
Call-Info: <44a035a40001000087083436233e0002>;purpose=isdnuui
Call-Info: <44a035a30003000087083436233e0002>;purpose=isdnuui
Call-Info: <44a035a30003000087083436233e0002>;purpose=isdnuui
Call-Info: <44a035a10000000087083436233e0002>;purpose=isdnuui
Call-Info: <44a035a10000000087083436233e0002>;purpose=isdnuui
User-Agent: AVSipSwitch 1.0
Refer-To: <sip:v2221001 at 135.8.52.125>
Referred-By: <sip:2220001 at 135.8.116.33:10007>
Content-Length: 0
##################################################
As you can see, the each 2 headers have the same value, and may be
because I call AddCallInfo(XYZ) twice for the same call. But... it also
seems like EVERY call to AddCallInfo(XYZ) is added in a 'nested' way.
Hence the question as to scope. Do I call the Feature once, and only
once? And if so, how do I associate session specific data within the
Feature code. 
 
TIA...
 
Bill Kovar
bkovar at avaya.com
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20060626/7a8c22d3/attachment.htm>


More information about the resiprocate-devel mailing list