< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] DumFeature scoping question


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@xxxxxxxxxxxx SIP/2.0
Via: SIP/2.0/UDP 135.8.116.33:10007;branch=z9hG4bK-d87543-4b5f5c06ca0fa758-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:2220001@xxxxxxxxxxxx:10007>
To: "7771111"<sip:7771111@xxxxxxxxxxxx>;tag=as3838c4b0
From: "2220001"<sip:2220001@xxxxxxxxxxxx:10007>;tag=cf3d0a2f
Call-ID: 56f80dec619509773d1f250120462fcd@xxxxxxxxxxxx
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@xxxxxxxxxxxx>
Referred-By: <sip:2220001@xxxxxxxxxxxx: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@xxxxxxxxx