<div dir="ltr">well i did make some headway on this, unfortunately i had to get tricky with it.<br><br>Even with the get redirects, it was still not placing the correct redirect in there. As a matter of fact, it seems like the function was not working at all in the failure_route. My solution involved setting an avp in the reply route becuase both the source and destination of the paceket were the same when it was in the failure route. So in on reply i set an avp that then if was true in the branch route just rewrote the host port. So great I was able to make the call path divert but when the 2 pstn endpoints actually link, there is no sound. There seems to be rtp when i look in asterisk's cli, but neither side is giving me audio :(<br>
<br>In the branch route, i tried with and without forecrtp proxy, but no dice....<br><br>anyone have an idea as to what might be going on?<br><br>as always any input is greatly appreciated :)<br><br><br><div class="gmail_quote">
On Sun, Aug 17, 2008 at 2:16 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alex,<br>
<br>
Actually, after the get_redirects(), you should not do a rewiteXXXX() - just to t_relay(); the get_redirects() already populates the new branch with all the information.<br>
<br>
Regards,<br><font color="#888888">
Bogdan</font><div><div></div><div class="Wj3C7c"><br>
<br>
Ovidiu Sas wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you want to rewrite the port, you need to use the following syntax:<br>
rewritehostport("XXX.XXX.XXX.XXX:ZZZZZ");<br>
where ZZZZZ is the new port.<br>
<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<br>
On Wed, Aug 13, 2008 at 4:54 PM, Alex G <<a href="mailto:greekman0000@gmail.com" target="_blank">greekman0000@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
unfortunately the solution is a bit vague for what I'm trying to do...<br>
<br>
<br>
in the 302 packet the contact for redirect is sip xyz@abc.abc.abc.abc<br>
<br>
failure_route[1] {<br>
if (t_check_status("302")) {<br>
xlog("in redirect failure $fu");<br>
get_redirects("*:1","redirect");<br>
rewritehostport("XXX.XXX.XXX.XXX");<br>
t_relay();<br>
}<br>
<br>
this should take the contact address and rewrite the host port for it<br>
relaying it to the new location right? should be an immediate invite to<br>
abc@XXX.XXX.XXX.XXX<br>
<br>
unfortunately it doesn't rewrite the host port. It merely relays directly to<br>
the contact in the 302 packet xyz@abc.abc.abc.abc<br>
<br>
any ideas would be welcome :)<br>
<br>
thanks<br>
<br>
alex<br>
<br>
On Wed, Aug 13, 2008 at 2:38 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It is all here:<br>
<a href="http://www.opensips.org/html/uac_redirect.html#id2519995" target="_blank">http://www.opensips.org/html/uac_redirect.html#id2519995</a><br>
<br>
Regards,<br>
Ovidiu Sas<br>
<br>
On Wed, Aug 13, 2008 at 2:03 PM, Alex G <<a href="mailto:greekman0000@gmail.com" target="_blank">greekman0000@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I know there was some stuff about how to handle 302s and send forward a<br>
new<br>
invite to the diversion contact on the old mailing list archives, but<br>
they<br>
are all gone now :(<br>
<br>
wondering if anyone can help me with this.....<br>
<br>
opensips -> ua -> moved -> opensips invite contact from diversion<br>
<br>
<br>
<br>
basically opensips makes an invite to locally registered uac, the uac<br>
redirects to an external pstn number XXX-XXX-XXXX, opensips then needs<br>
to<br>
handle the 302 and generate an invite to XXX-XXX-XXXX<br>
<br>
<br>
any help would be most appreciated<br>
<br>
thanks Alex<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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>
<br>
<br>
</blockquote></blockquote>
<br>
</blockquote>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>