[SR-Users] Check if xavp is set

Alex Balashov abalashov at evaristesys.com
Mon Apr 18 01:12:49 CEST 2016


Try:

if(defined $xavp(tm_contacts))

or:

if($xavp(tm_contacts) != $null)

I do wish "truthiness" of various sorts were better defined in Kamailio.

-- Alex

-- 
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list