Hello,

Is it possible to only duplicate certain messages to the capture server? Like 
only the INVITE, CANCEL, BYE, 100, 200 and some 4/5/6 reply messages?
Whenever I set the setflag(22) it pretty much duplicates every message to the 
capture server, but I want to regulate which messages are duplicated.
I'm adding additional headers to specific SIP messages, but not all.
msg_apply_changes only works for request messages, so I'm pretty much forced to 
use the setflag command.

The reason I'm doing all this is because I'm building custom logging based on 
SIP messages. That way we can have real-time status of calls with additional 
information. Pretty much every SIP dialog is a conversation in our database. 
Its state gets updated for each new SIP message. This does require the proxy to 
set certain custom headers.  

Also, how are relpy messages processed? I know they go through the 
onreply_route route, but there is no command which relays this to its 
destination, or is this done by the core behind the scenes?

Regards,

Grant

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

Good to know. I'll keep that in mind. Thanks.

Grant

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

On 08/09/2013 10:11 AM, Grant Bagdasarian wrote:

> That does it also. Thanks!

Sure thing.  Bear in mind that Kamailio is wildly inconsistent about when it 
requires a numerical parameter (e.g. a flag) as a string literal (in double 
quotes) vs. a numerical literal.

Generally speaking, module functions want numerical values in quotes:

    ds_select_domain("1", "4");
    t_relay("0x01");

while core functions expect numerical values straight up:

    strip(4);
    setflag(22);

This has to do with the way arguments are passed and validated by modules.

However, it's not a hard and fast rule, and there may be exceptions.

-- Alex

--
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

_______________________________________________
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

_______________________________________________
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

Reply via email to