Hi all,<br><br>I have the following in the failure_route, for invalid destinations:<br><br>                if(t_check_status(&quot;404&quot;)) {<br>                        # Dialed phone number does not exist<br><br>                        # Cancel call billing<br>
                        resetflag(1);<br><br>                        # Start announcement<br>                        seturi(&quot;sip:AN_invalidnumber@[ip of mediaserver]:5060&quot;);<br>                        t_relay();<br>
<br>                        #t_reply(&quot;404&quot;, &quot;Not found&quot;);<br>                        exit;<br>                }<br><br>When a 404 reply is received from upstream carrier(s) I would like to play an announcement to let the user know they made a mistake in the phone number.<br>
On the other hand, I would like those calls to show up as &#39;404&#39; in my statistics. Ideally the announcement should be played in the early media (don&#39;t know if that&#39;s possible with Asterisk as a media server?).<br>
The announcement works, however returns 200-OK. If I uncomment the &#39;t_reply&#39;, the call is ended to soon without allowing the announcement to be played.<br><br>Does anyone how to solve this? I tried branching but I cannot get it to work.<br>
<br>Thanks,<br>Remco.<br>