<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hello Jorge,<br>
<br>
You need to use the failure route -
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Routes-1-10#toc3">http://www.opensips.org/Documentation/Script-Routes-1-10#toc3</a> .<br>
<br>
Use the t_on_failure() function (from TM module) to arm a
failure route before sending the INVITE out (before the
t_relay()). The failure route will be triggered when receiving
the negative reply - use t_check_status()
[<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.10.x/tm.html#id294673">http://www.opensips.org/html/docs/modules/1.10.x/tm.html#id294673</a>]
to check the reply code and if 415, simply change the RURI and
send the INVITE out again.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 04.03.2014 13:13, Jorge Ortea wrote:<br>
</div>
<blockquote cite="mid:DUB128-W80602F7B045D9100399224DC8E0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi all,<br>
<br>
<span id="result_box" class="short_text" lang="en"><span
class="hps">Anyone know</span> <span class="hps">how to do
this</span><span>?<br>
<br>
Thanks.<br>
Regards.<br>
</span></span><br>
<br>
<div>
<hr id="stopSpelling">From: <a class="moz-txt-link-abbreviated" href="mailto:darham@hotmail.com">darham@hotmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:stefano.pisani@omnianet.it">stefano.pisani@omnianet.it</a>; <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Date: Fri, 28 Feb 2014 13:12:16 +0100<br>
Subject: Re: [OpenSIPS-Users] Renegotiation<br>
<br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi Stefano,<br>
<br>
How I can do that?<br>
<br>
Very thanks.<br>
Regards.<br>
<br>
<br>
<div>
<hr id="ecxstopSpelling">Date: Thu, 27 Feb 2014 17:04:29
+0100<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:stefano.pisani@omnianet.it">stefano.pisani@omnianet.it</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: Re: [OpenSIPS-Users] Renegotiation<br>
<br>
<div class="ecxmoz-cite-prefix">You can trap the 415
response from the called peer and send the call through
asterisk to get transcoding.<br>
<br>
Il 27/02/2014 16.51, Jorge Ortea ha scritto:<br>
</div>
<blockquote
cite="mid:DUB128-W1927AD7F69A10C4D7BC769DC830@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi all,<br>
<br>
I have a scenario with OpenSIPS 1.8 and Asterisks
1.4. Proxy SIP has two ways to manage a call, the
first is B2BUA and second is be relay between UAC and
Asterisk.<br>
<br>
I have a problem, when OpenSIPS works as B2BUA and
both UAC can't negotiate codec then this call failed.
I would like restart this same call at second way
(with Asterisk). Is that possible?<br>
<br>
Thanks.<br>
Regards.<br>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div>
</div>
<br>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>