Hi. The following script doesn't proxy to "sip:[EMAIL PROTECTED]" if no
"Subject" header exits:

<cpl>
  <incoming>
    <string-switch field="subject">
      <string contains="hello">
        <reject status="reject" reason="Subjet = hello" />
      </string>
      <otherwise>
        <location url="sip:[EMAIL PROTECTED]" />
          <proxy />
        </location>
      </otherwise>
    </string-switch>
  </incoming>
</cpl>


For that I need to add <not-present> and clone <otherwise> content:

<cpl>
  <incoming>
    <string-switch field="subject">
      <string contains="hello">
        <reject status="reject" reason="Subjet = hello" />
      </string>
      <not-present>
        <location url="sip:[EMAIL PROTECTED]" />
          <proxy />
        </location>
      </not-present>
      <otherwise>
        <location url="sip:[EMAIL PROTECTED]" />
          <proxy />
        </location>
      </otherwise>
    </string-switch>
  </incoming>
</cpl>



Is there any way to group <not-present> and <otherwise>?

-- 
Iñaki Baz Castillo
<[EMAIL PROTECTED]>
_______________________________________________
Users mailing list
[email protected]
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Reply via email to