[Serusers] setflag

Andres andres at telesip.net
Tue Feb 3 15:27:12 CET 2004


Dinesh wrote:

>Is there any way using serctl or querying the ser database on mysql to
>determine what flags were or were not for a Registered UA
>
>I am using nat_uac_test("2") to only select UAs that have not already
>been set up for DMZ or Port forwarding.
>
>I want to verify that only the UAs without Port Forwarding or DMZ are
>having Flag(6) set.  
>
>
>if (nat_uac_test("2")) {
>  
>
Why don't you stick a debug message here like this(that way you can also 
check this log):
exec_msg("echo `date` - UAC Positive for Test2 - From: $SIP_HF_FROM  >> 
/var/log/ser/rtp.log");

>	if (method == "REGISTER" || ! search("^Record-Route:")) {
>	    fix_nated_contact(); # Rewrite contact with source IP of
>signalling
>	    if (method == "INVITE") {
>	        fix_nated_sdp("1"); # Add direction=active to SDP
>	    };
>	    force_rport(); # Add rport parameter to topmost Via
>	    setflag(6);    # Mark as NATed
>	};
>};
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>  
>


-- 
Andres
Network Admin
http://www.telesip.net





More information about the sr-users mailing list