<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jeremy,<br>
<br>
What I see is that you have two contacts in the 302 reply - maybe
the GW does not like this (especially that one has the port 9 in it,
which a kind of /dev/null port). <br>
<br>
First of all you need to check with the GW if they support and obey
3xx replies. Secondly, you should try sending a 3xx with a single
contact URI. When generating a 3xx reply, first contact is taken
from RURI of the INVITE and additional contacts from the branches .<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/27/2012 04:22 AM, Jeremy Malcolm wrote:
<blockquote
cite="mid:A0C538E2-78C6-4666-A970-9B3D43A74F6D@Malcolm.id.au"
type="cite">
<div>
<div>On 26/03/2012, at 9:21 PM, Jeremy Malcolm wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word;">
<div>
<div>Thanks for the tip, it looks like UDP packets to the
server I'm forwarding to are being blocked somewhere.
:-( Will take this up with my ISP, or something.</div>
</div>
</div>
</blockquote>
</div>
<div><br>
</div>
<div>No, sorry but I can rule that out now: I did some test calls
from my static-IP opensips box to my dynamic-IP Asterisk box and
they worked. I can also confirm I am receiving calls from my
DID provider to my static-IP machine and that opensips is trying
to redirect them, but the DID provider is not following the
redirection.</div>
<div><br>
</div>
<div>This is what ngrep sees on my static-IP box when a call is
made by the DID provider (11.22.33.44 or dynamic.ip.box is my
dynamic-IP box, 55.66.77.88 or static.ip.box is my static IP
box, 99.00.11.22 is the DID provider, 33.44.55.66 is the
caller); it sees the redirect going out to the DID provider, and
the acknowledgement of that:</div>
<div><br>
</div>
<div>
<div>#</div>
<div>U 55.66.77.88:5060 -> 99.00.11.22:5060</div>
<div>SIP/2.0 302 Redirect.</div>
<div>Via: SIP/2.0/UDP 99.00.11.22;branch=z9hG4bK4d2d.45a98547.0.</div>
<div>Via: SIP/2.0/UDP
33.44.55.66:16000;received=33.44.55.66;branch=z9hG4bK-d8754z-2d409d3e55d94f1e-1---d8754z-;rport=16000.</div>
<div>To: <<a moz-do-not-send="true"
href="sip:user@99.00.11.22:5060">sip:user@99.00.11.22:5060</a>>;tag=61ae7837698e5c9f3ea027df6cb50162.f190.</div>
<div>From: "caller"<<a moz-do-not-send="true"
href="sip:caller@33.44.55.66">sip:caller@33.44.55.66</a>>;tag=7b050e32.</div>
<div>Call-ID: NDcxNDQyYjAwNWI5MTEzMjgwNDBkMWU1NDY0OTY4NTk..</div>
<div>CSeq: 1 INVITE.</div>
<div>Contact: <a moz-do-not-send="true"
href="sip:user@dynamic.ip.box">sip:user@dynamic.ip.box</a>,
<a moz-do-not-send="true" href="sip:user@dynamic.ip.box:9">sip:user@dynamic.ip.box:9</a>.</div>
<div>Server: OpenSIPS (1.8.0-beta-notls (x86_64/linux)).</div>
<div>Content-Length: 0.</div>
<div>.</div>
<div><br>
</div>
<div>#</div>
<div>U 99.00.11.22:5060 -> 55.66.77.88:5060</div>
<div>ACK <a moz-do-not-send="true"
href="sip:user@static.ip.box">sip:user@static.ip.box</a>
SIP/2.0.</div>
<div>Via: SIP/2.0/UDP 99.00.11.22;branch=z9hG4bK4d2d.45a98547.0.</div>
<div>Max-Forwards: 69.</div>
<div>To: <<a moz-do-not-send="true"
href="sip:user@99.00.11.22:5060">sip:user@99.00.11.22:5060</a>>;tag=61ae7837698e5c9f3ea027df6cb50162.f190.</div>
<div>From: "caller"<<a moz-do-not-send="true"
href="sip:caller@33.44.55.66">sip:caller@33.44.55.66</a>>;tag=7b050e32.</div>
<div>Call-ID: NDcxNDQyYjAwNWI5MTEzMjgwNDBkMWU1NDY0OTY4NTk..</div>
<div>CSeq: 1 ACK.</div>
<div>Content-Length: 0.</div>
<div>.</div>
</div>
<div><br>
</div>
<div>So this is all correct, and should make the DID provider
redirect the call? If so, where to troubleshoot from here?
Nothing is coming through at the dynamic-IP box at all. I also
tried using the dynamic-IP box's IP address instead of its
domain name, in case it was a DNS caching issue. Is the DID
provider at fault for not following the redirect as it should?</div>
<div apple-content-edited="true">
</div>
<br>
<div>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Helvetica; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; font-size: medium;">
<div>
<div>--</div>
<div>Jeremy Malcolm PhD LLB (Hons) B Com</div>
<div>Internet and Open Source lawyer, consumer advocate and
geek</div>
<div>host -t NAPTR 5.9.8.5.2.8.2.2.1.0.6.e164.org|awk -F!
'{print $3}</div>
</div>
<div><br>
</div>
</span><br class="Apple-interchange-newline">
</div>
<br>
</blockquote>
<br>
<br>
<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>
</body>
</html>