Hello everybody,<br><br>I'd like to handle my calls like this:<br>If callee sends a "486 User Busy" AND a certain header is present in the response, Freeswitch would send a "404 Not Found" to the caller.<br>
The following code would solve my problem:<br><br><extension name="header_test_extension"><br><br><condition field="network_addr" expression="10.1.1.1"><br> <action application="set" data="continue_on_fail=USER_BUSY"/> <br>
<action application="bridge" data="sofia/gateway/profile/${sip_to_user}"/><br> <condition field="${sip_h_X-Header-Name}" expression="Header Value"><br> <action application="respond" data="404"/><br>
<action application="hangup"/><br> </condition><br></condition><br><br></extension><br><br>But the thing is that Freeswitch doesn't allow nested conditions.<br><br>Any ideas on how I can handle this?<br>
<br clear="all">Santiago Soares<br>Fone: (41) 8488-0537<br>