[sr-dev] looks like usrloc flags don't work either

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 30 10:26:46 CET 2009


Hello,

On 30.10.2009 10:22 Uhr, Juha Heinanen wrote:
> i have twinkle registered from behind nat and when i check in location
> table my nat flag
>
> modparam("usrloc", "nat_bflag", 1)
>
> is set, i.e. flag column of twinkle contact in location table has value
> 2.
>
> but when i check after lookup():
>
> 	lookup("location");
> 	switch ($rc) {
> 	case 1:
> 		if (isbflagset(1)) {
>   
put the parameter between double quotes:

isbflagset("1")

- let me know if works now.

Cheers,
Daniel

> 	        xlog("L_INFO", "Branch Flag 1 is set\n");
> 		};
>
> nothing gets printed to syslog.  i have not changed any of this config
> code since k.
>
> is this a compatibility issue or a bug?
>
> -- juha
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>   

-- 
Daniel-Constantin Mierla
* Kamailio SIP Masterclass, Nov 9-13, 2009, Berlin
* http://www.asipto.com/index.php/sip-router-masterclass/




More information about the sr-dev mailing list