<div>I've tried redirecting the request to the voicemail URI, when the tm timer expires.</div>
<div>---</div>
<div>if (t_check_status("480|408")) {<br> revert_uri();<br> sethostport("voicemail_ip:5060");<br> append_branch();<br> t_relay();<br> }<br>
---</div>
<div> </div>
<div>But that's not the way I want the voicemail working. What I'm looking for is a way to respond "408 Request Timeout" only in the LEG2 initiated by asterisk (and send just one CANCEL to User 2 (called)). That way asterisk will respond 200 OK to User 1 (LEG 1) and this user will be able to record a voicemail message.</div>
<div> </div>
<div> LEG1 B2BUA LEG2</div>
<div>User 1 ---------------->> OpenSIPS -------------->> Asterisk --------------------->> OpenSIPS ------------>> User 2</div>
<div> |-------------------------------------------------------------------------|</div>
<div> </div>
<div>I've found what the problem is. Using this Setup, the timer (most of the times) expires simultaneously in both legs and that's the reason of why the CANCEL and the 408 are sent to both legs as well.<br></div>
<div>I dont know if there is a way to change this behavior by configuration. I'm going through the code to better understand how the tm module works. Thanks for youtr help.</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Ricardo<br></div>
<div class="gmail_quote">On Mon, Dec 29, 2008 at 6:34 AM, Iņaki Baz Castillo <span dir="ltr"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">2008/12/29 Ricardo Lopez Camino <<a href="mailto:rlopezcamino@gmail.com">rlopezcamino@gmail.com</a>>:<br>
<div class="Ih2E3d"><br>> The following are the relevant fragments of the opensips.cfg file<br>> ------------------------<br></div>
<div class="Ih2E3d">> #-----Failure Route----<br>> failure_route[1] {<br>> if (t_was_cancelled()) {<br>> exit;<br>> }<br>> }<br><br></div>You need to inspect the selected response code in failure_route and if<br>
it's 408 then append_branch to the voicemail server URI. Are you doing<br>it?<br><font color="#888888"><br>--<br>Iņaki Baz Castillo<br><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><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>
</font></blockquote></div><br>