<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>REGISTER and INVITE requests should be handled in different
ways, so split your scripting per methods.<br>
<br>
In regards, to MF, better do the validation first, to be sure that
whatever you do later, at least you have a valid SIP msg.<br>
<br>
Regards,<br>
</tt>
<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>
<div class="moz-cite-prefix">On 07.06.2016 13:53, John Nash wrote:<br>
</div>
<blockquote
cite="mid:CAA4rGPxpmbvfZdezBOGT=fV=NqvOM+XntKd11OTAPjVftL-Z7Q@mail.gmail.com"
type="cite">
<div dir="ltr">OK that means I should handle Register before
In-dialog processing block?
<div><br>
</div>
<div>I also have one more doubt
function mf_process_maxfwd_header should it be used
before sipmsg_validate or after?...Currently
mf_process_maxfwd_header is being called in my script first
but in some cases with malformed packets its not even able to
read max fwd header.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jun 7, 2016 at 4:11 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></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 John,<br>
<br>
Assuming you do not do REGISTER relay (but you act as a
registrar), you should handle the REGISTER requests
(with or without to-tag) in the same way. IF they have a
Route hdr , it may be because they do pre-loaded route
(the Route points to your SIP server) to be sure the
REGISTER gets to the registrar server.<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5">
<div>On 07.06.2016 10:56, John Nash wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">I am dealing with In-dialog requests
using
<div><br>
</div>
<div>------------------------------------------------------------------------------------------------------<br>
<div>
<div> if (has_totag() &&
(is_domain_local("$rd") || $Ri==
"127.0.0.1") &&
is_method("INVITE|ACK|BYE|UPDATE"))</div>
<div> {</div>
<div> # sequential request within a
dialog should</div>
<div> # take the path determined by
record-routing</div>
<div> if (topology_hiding_match())</div>
</div>
<div>-----</div>
<div>---------------------------------------------------------------------------------------------------------</div>
<div><br>
</div>
<div>at the top of my script. After that I
process initial requests, but I see some
REGISTER messages with TO-Tag and "Route"
header and they are being discarded by my
script because Initial request cannot have
Route header.</div>
<div><br>
</div>
<div>Do i also need to pass REGISTER messages
also through same block?...or i need to call
loose_route after has_to_tag check.</div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
<br>
</div>
</blockquote>
<br>
</body>
</html>