Hi. The following script doesn't proxy to "sip:voicemail@domain" 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:voicemail@domain" />
<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:voicemail@domain" />
<proxy />
</location>
</not-present>
<otherwise>
<location url="sip:voicemail@domain" />
<proxy />
</location>
</otherwise>
</string-switch>
</incoming>
</cpl>
Is there any way to group <not-present> and <otherwise>?
--
Iñaki Baz Castillo
<ibc(a)aliax.net>