<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
I am having trouble with voicemail using asterisk and openSer.<br>
<br>
In openser I use a failure route to send the call to asterisk for
voicemail like this:<br>
<br>
if (is_method("INVITE"))<br>
{<br>
xlog("L_INFO", "Set failure route for vm\n");<br>
t_on_failure("2");<br>
}<br>
<br>
failure_route[2]<br>
{<br>
xlog("L_INFO", "Running failure route for vm\n");<br>
rewritehostport("vm.dom.tld:5060");<br>
append_branch();<br>
t_relay();<br>
}<br>
<br>
It works in the sense that the call goes to asterisk but then the
following happens:<br>
<br>
asterisk replies "407 Proxy Auth Required"<br>
openSer forwards 407 reply to UA<br>
UA resends INVITE with credentials but with the *original* URI
(<a class="moz-txt-link-abbreviated" href="mailto:user@dom.tld">user@dom.tld</a> not <a class="moz-txt-link-abbreviated" href="mailto:user@vm.dom.tld">user@vm.dom.tld</a>)<br>
openSer forwards the INVITE to the original destination instead of
asterisk<br>
<br>
and round and round we go...<br>
<br>
<br>
is there a better way to send the call to asterisk after failure or am
I missing something?<br>
<br>
<br>
Thank you<br>
<br>
<br>
Marnus van Niekerk<br>
</font>
<pre class="moz-signature" cols="72">--
"Opportunity is missed by most people because it is
dressed in overalls and looks like work."
Thomas Alva Edison - Inventor of 1093 patents,
including the light bulb, phonogram and motion pictures.
</pre>
</body>
</html>