[OpenSER-Devel] [ openser-Bugs-1857644 ] [CPL] could "contains" be allowed with no "subfield"?

SourceForge.net noreply at sourceforge.net
Mon Dec 24 17:44:19 UTC 2007


Bugs item #1857644, was opened at 2007-12-24 17:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1857644&group_id=139143

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: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Iñaki Baz (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: [CPL] could "contains" be allowed with no "subfield"?

Initial Comment:
If I set a CPL like this:

   <address-switch field="origin">
      <address contains="user at domain">

I get this error:

-------------------------
WARNING:cpl-c:run_address_switch: operator CONTAINS applies only to DISPLAY -> ignored
-------------------------


But I'm not sure about it, RFC says:

-----------------------------------
4.1.1.  Usage of "address-switch" with SIP

[...]

If no subfield is specified for addresses in SIP messages, the string matched is the URI part of the address.  For "is" matches, standard SIP URI matching rules are used; **for "contains" matches, the URI is used verbatim**.
-----------------------------------

I read nothing about if "contains" is not allowed when not "subfield" exists...

Anyway I read too:

-----------------------------------
contains: This match operator applies only for the subfield "display".
-----------------------------------

So sincerely I'm not sure about it.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1857644&group_id=139143



More information about the Devel mailing list