Doug,<div>I had an issue with a carrier playing music in 183s instead of ringback. This bit of code was useful for me:</div><div><a href="http://www.opensips.org/Resources/DocsTutPerl183to180">http://www.opensips.org/Resources/DocsTutPerl183to180</a></div>
<div><br></div><div>It's possible with some tweaking it might suit your needs. THe question I'd have is how do you know if the inband audio is valid or not (maybe it's ringing properly in 183).</div><div><br>
</div>
<div>-Brett</div><div><br><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 9:14 AM, Doug <span dir="ltr"><<a href="mailto:doug@wd.co.za">doug@wd.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All,<br>
<br>
I am hoping you can shed some light into a difficult spot I'm having.<br>
<br>
Currently, my one supplier is sending back Early Media (183 + SDP) when<br>
there is a problem (such as number not available), instead of a SIP<br>
response code. This in turn causes grief, as my system passes this<br>
session onto the client.<br>
<br>
I wanted to know if its possible in the event of receiving a 183 from<br>
this specific supplier, to reply with a CANCEL and then engage a new<br>
route, or to send a 50x back to the client.<br>
<br>
Based on the above, I am guessing I need to use the b2bua module,<br>
however, I don't see a way to identify a reply from the server id with a<br>
183:<br>
<br>
I had something like this in mind:<br>
<br>
<rules><br>
<reply><br>
<183><br>
<rule id="1"><br>
<condition><br>
<state>1</state><br>
<sender><br>
<type>server</type><br>
<id>server1</id><br>
</sender><br>
</condition><br>
<action><br>
<send_reply><br>
<code>CANCEL</code><br>
<reason></reason><br>
</send_reply><br>
...<br>
</action><br>
</rule><br>
</183><br>
</reply><br>
</rules><br>
<br>
<br>
Any suggestions if this is possible?<br>
<br>
Many thanks<br>
Doug<br>
<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>
</blockquote></div><br></div>