[OpenSIPS-Devel] [ opensips-Patches-3279581 ] $hdrcnt pvar and {param.exist} transform

SourceForge.net noreply at sourceforge.net
Thu Apr 7 18:40:29 CEST 2011


Patches item #3279581, was opened at 2011-04-07 09:40
Message generated for change (Tracker Item Submitted) made by kennardwhite
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3279581&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kennard White (kennardwhite)
Assigned to: Nobody/Anonymous (nobody)
Summary: $hdrcnt pvar and {param.exist} transform

Initial Comment:
Enhancement to core
1. Add new pvar $hdrcnt(name). Same semantics as $hdr, but returns the number of headers of the given name/type.
2. Add new transform {param.exist,name} which returns 1 if parameter of given name exists, else 0. This is useful for testing params that don't have values (e.g., lr,ob).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3279581&group_id=232389



More information about the Devel mailing list