<div dir="ltr"><font face="arial, helvetica, sans-serif">Please show me an example of where / how to use record_route_preset() to add the FQDN.</font></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 August 2015 at 16:54, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<tt>Hi,<br>
<br>
According to the RFC, in RR header can be IP or FQDN (any kind of
SIP URI). Even more, the best practice is to actually use IPs in
RR to be 100% sure that the following requests to hit exactly the
same box (if using FQDN, subject to DNS resolving, a different IP
may be lookup up later).<br>
<br>
If you really want to put an IP there, use the
record_route_preset() function:<br>
<a href="http://www.opensips.org/html/docs/modules/1.11.x/rr.html#id293864" target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/rr.html#id293864</a><br>
<br>
Regards,<br>
</tt><span class="">
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span><div><div class="h5"><div>On 25.08.2015 16:47, Nabeel wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Currently, OpenSIPS is using the actual IP address
in the record-route URI, but I believe my SIP client needs the
domain name in the record-route instead.
<div><br>
</div>
<div><br>
</div>
<div>For example, it should be:</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Record-Route:
<sip:<a href="http://sipdomain.com" target="_blank">sipdomain.com</a>;lr;nat=yes;did=29.3daff1f4></blockquote>
<div> </div>
<div><br>
</div>
<div>NOT:</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Record-Route:
<sip:<span style="font-size:12.8000001907349px">162.242.153.259</span>;lr;nat=yes;did=29.3daff1f4></blockquote>
<div><br>
</div>
<div><br>
</div>
<div>How can I make this change in the OpenSIPS config?</div>
<div><br>
</div>
<div>This should solve the problem because in a working setup
(different SIP server), the logs state <i>"Resolving host
address '<a href="http://sipdomain.com" target="_blank">sipdomain.com</a>'"</i> and
the record route URI includes the domain name, but in the
OpenSIPS setup the logs state <i>"Resolving host address '<span style="font-size:12.8000001907349px">162.242.153.259</span>'</i>
and the record route URI contains the IP address.<br>
<div>
<div><br>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 24 August 2015 at 18:37, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Hi, </p>
<p dir="ltr">I see the cause now on the UAC side; I know it
seems simple to just add some DNS records to the server
IP, but I'm still pondering on the best way to solve this
and where exactly to add the SRV records because:</p>
<p dir="ltr">1) I already have the SRV records set up on the
actual hostname / domain, hosted by a DNS service third
party, which is easier for me to maintain. However the
UAC seems to be ignoring this.</p>
<p dir="ltr">2) I have used the same UAC with another server
and did not have to set up SRV on the actual server
machine IP. </p>
<p dir="ltr">I'm not sure if this has anything to do with
the OpenSIPS config but I'll let you know if I solve it. </p>
<div>
<div>
<div class="gmail_quote">On 24 Aug 2015 17:56,
"Bogdan-Andrei Iancu" <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi ,<br>
<br>
So, is the problem solved (by your findings in
the UAS side) ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>On 24.08.2015 18:25, Nabeel wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I just discovered that the SIP
client logs show an error message only on the
recipient side, not on the caller's side. I
missed this previously because the caller's
side log does not show any error:
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">java.lang.Exception:
No DNS SRV or A results found for:
162.242.153.259 (IP address of OpenSIPS
server).</blockquote>
<div><br>
</div>
<div>I have the SRV records set on the actual
hostname/domain, but it seems to be looking
for SRV at the actual IP address itself.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 21 August 2015 at
17:57, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>The log doesn't show any errors
when the Timeout occurs, it only shows
this:</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">opensips[1842]:
ACC: call missed:
timestamp=1440174643;method=INVITE;from_tag=z9hG4bK04147190;to_tag=;call_id=<a href="mailto:424618310389@10.137.181.237" target="_blank">424618310389@10.137.181.237</a>;code=408;reason=Request
Timeout </blockquote>
<div><br>
</div>
<div>This seems to occur sporadically;
some calls connect without problem but
others don't; so perhaps it is a
genuine timeout... maybe it simply
longer to connect on some calls? </div>
<div><br>
</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 21
August 2015 at 17:46, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Sorry to bring
this up again, but I still get
the 408 Request Timeout on
some calls.
<div><br>
</div>
<div>Isn't there just a way to
increase the request timeout
limit?</div>
<div><br>
</div>
<div>Here is the trace:</div>
<div><br>
</div>
<div><a href="http://pastebin.com/jvCPGYDu" target="_blank">http://pastebin.com/jvCPGYDu</a><br>
</div>
<div><br>
</div>
<div>There is even an ACK in
the trace after the request
timeout message, but the
call doesn't connect.</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On
7 August 2015 at 18:10,
Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Indeed,</tt><span><br>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span>
<div>
<div>
<div>On
07.08.2015
20:08, Nabeel
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>You mean
like this,
right?</div>
<div><br>
</div>
<div>if
(is_method("REGISTER"))</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap">
</span>{</div>
<div><span style="white-space:pre-wrap">
</span>if (
0 )
setflag(TCP_PERSISTENT);</div>
<div><br>
</div>
<div>
<span style="font-family:arial,helvetica,sans-serif">setbflag(SIP_PING_FLAG);</span></div>
<div><br>
</div>
<div><span style="white-space:pre-wrap">
</span>if
(!save("location"))</div>
<div><span style="white-space:pre-wrap">
</span>sl_reply_error();</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap">
</span>exit;</div>
<div><span style="white-space:pre-wrap">
</span>}</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On
7 August 2015
at 17:52,
Bogdan-Andrei
Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hi Nabeel,<span><br>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span>
<div>On
07.08.2015
19:39, Nabeel
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><font face="arial,
helvetica,
sans-serif">[........]</font><span><br>
<div><font face="arial,
helvetica,
sans-serif">Bogdan,</font></div>
<div><font face="arial,
helvetica,
sans-serif"><br>
</font></div>
<div><font face="arial,
helvetica,
sans-serif">Regarding
UDP, I
realised that
the UDP port
could not be
in LISTEN
state and this
was probably
preventing my
server from
fully opening
that port.
Running nmap
on that port
showed result
"open|filtered",
unlike with
TCP which
showed fully
open. I am
not running
any firewalls
on my server,
so this seems
to be the
default
behaviour of
my network.</font></div>
</span></div>
</blockquote>
<font face="arial,
helvetica,
sans-serif">A
bidirectional
traffic
through the
NAT will keep
the NAT
pinhole open,
while a
unidirectional
one may not.
This is the
advantage of
the SIP
pinging versus
simple UDP
pinging.</font><span><br>
<blockquote type="cite">
<div dir="ltr">
<div><font face="arial,
helvetica,
sans-serif"><br>
</font></div>
<div><span style="font-family:arial,helvetica,sans-serif">I
would like to
clarify one
thing. You
mentioned
adding
setbflag(SIP_PING_FLAG)
before doing
save(), but in
my config file
I don't see
save()
anywhere,
there is only
this line: "if
(!save("location"))".
Where exactly
do I add this
line?</span><font face="arial,
helvetica,
sans-serif"><br>
</font></div>
</div>
</blockquote>
</span><font face="arial,
helvetica,
sans-serif">exactly.</font><br>
<br>
<font face="arial,
helvetica,
sans-serif">Regards,<br>
Bogdan<br>
</font><br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>