That does it also. Thanks!

 

From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov
Sent: Friday, August 9, 2013 4:02 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

 

Try: setflag(22);

Grant Bagdasarian <GB@cm.nl> wrote:

I just tried it and it did the trick. Thanks!

 

I was also looking at the documentation of the siptrace module and found this:

by setting the flag equal with the value of 'trace_flag' (e.g., setflag(__trace_flag__)) parameter of the module. In this case, the message sent forward is processed. The logging mechanism is based on TM/SL callbacks, so only messages processed with TM/SL are logged

I configured it like this:

modparam("siptrace", "trace_flag", 22)

 

Then in the route block I did this: setflag(“22”), but that gave me an error.

0(3447) : <core> [cfg.y:3570]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 395, column 14: flag not declared

 

From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov
Sent: Friday, August 9, 2013 3:52 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Duplicate relayed INVITE message using siptrace not working

 

Grant,

Have you tried msg_apply_changes() after the header append to see if that helps?

Grant Bagdasarian <GB@cm.nl> wrote:

Hello,

 

I’m adding some additional SIP headers to the INVITE received, but when I use the siptrace module to duplicate the messages to a capture server, the INVITE does not contain the additional headers.

I’m using a softphone to test my configuration, and it looks like Kamailio only sends the INVITE which is coming from the softphone to the capture server. When Kamailio relays the INVITE to its destination the headers are present.

 

Is there a way to duplicate the invite leaving kamailio to the capture server instead of the INVITE which is coming into kamailio? I already tried to put the sip_trace() function after the message is sent to its destination, but the extra headers didn’t show up in the database.

Note, that I’m using the “X-“ as a prefix.

 

Regards,

 

Grant



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


--
Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard.

Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com



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


--
Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard.

Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com