Thanks Max. That does the trick for the Asterisk part. However, calls are now returned with 603-declined. Anyone on how to make opensips wait for the message to complete, and then return 404?<br><br><div class="gmail_quote">
On Sat, Oct 13, 2012 at 11:06 PM, Max Mühlbronner <span dir="ltr">&lt;<a href="mailto:mm@42com.com" target="_blank">mm@42com.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div link="blue" vlink="purple" lang="DE"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">regarding asterisk as media-server, you could use the “noanswer” option for playback(). Then it will signal audio via progress messages but will not answer (200 OK) the call.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Best Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Max M.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>Im Auftrag von </b>Remco .<br>
<b>Gesendet:</b> Samstag, 13. Oktober 2012 22:52<br><b>An:</b> OpenSIPS users mailling list<br><b>Betreff:</b> [OpenSIPS-Users] Route to media-server, but reply negative<u></u><u></u></span></p></div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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;<a>sip:AN_invalidnumber@[ip of mediaserver]:5060</a>&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.<u></u><u></u></p></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>