[OpenSER-Users] [CPL] Is possible to group <not-present> and <otherwise>?
Iñaki Baz Castillo
ibc at aliax.net
Mon Dec 24 15:56:38 CET 2007
Hi. The following script doesn't proxy to "sip:voicemail at 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 at 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 at domain" />
<proxy />
</location>
</not-present>
<otherwise>
<location url="sip:voicemail at domain" />
<proxy />
</location>
</otherwise>
</string-switch>
</incoming>
</cpl>
Is there any way to group <not-present> and <otherwise>?
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the Users
mailing list