<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><span style="font-family: tahoma, 'new york', times, serif; font-size: 13px; font-weight: bold;">Hi Vlad,</span></div><div><span style="font-family: tahoma, 'new york', times, serif; font-size: small;"><br></span></div><div><span style="font-family: tahoma, 'new york', times, serif; font-size: 13px; ">Okay I got the functionality of<span style="font-weight: bold;"> "!"</span> symbol & also got different return codes while testing on a local server. But I am stuck with one thing that I am getting this in the wireshark logs </span><span style="font-family: tahoma, 'new york', times, serif; font-size: 13px; ">either the </span><span style="font-size: 13px; ">max_value</span><span style="font-family: tahoma, 'new york', times, serif; font-size: 13px; "> for the </span><span style="font-size: 13px;
">mf_process_maxfwd_header</span><span style="font-family: tahoma, 'new york', times, serif; font-size: 13px; "> is 1 or 10:</span></div><div><span style="font-family: tahoma, 'new york', times, serif; font-size: 13px; color: rgb(230, 230, 230);"><br></span></div><div><span style="font-family: tahoma, 'new york', times, serif; "><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; "><font style="background-color: rgb(230, 230, 230); color: rgb(64, 127, 0); ">564d700c00f837-1--d87543-;rport..<span style="font-weight: bold; font-size: 18px; ">Max-Forwards: 70..</span>Cont</font></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 16px; "><font size="2" style="background-color: rgb(230, 230, 230); color: rgb(64, 127, 0);"> act: <sip:1000@192.168.150.23:16222>..To: "3333"<sip:3333@192.168.150.160:5161>..From:
"testing"<sip:1000@192.168.150.160:5161>;tag=3421ec3e..Call-ID: ba600752f22e</font></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 16px; "><font size="2" style="background-color: rgb(230, 230, 230); color: rgb(64, 127, 0);"> 9018ZjQ0MGViNzJlZTE5OTY2M2NkZjE3MWY1Nzk5ODVlNGI...CSeq: 1 INVITE..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,</font></div><br class="Apple-interchange-newline"></span></div><div><span style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; ">I know that 70 is the recommended Max Forwards initial value but will it be the same either we use max_value 1 or 10?</span><br></div><div><span style="font-family: tahoma, 'new york', times, serif; font-size: 10pt; "><br></span></div><div style="font-size: 10pt; "><span style="font-family: tahoma, 'new york', times, serif;">Regards,</span></div><div style="font-size: 10pt; "><span
style="font-family: tahoma, 'new york', times, serif;"><br></span></div><div style="font-size: 10pt; "><span style="font-family: tahoma, 'new york', times, serif;"><span style="font-weight: bold;">Faisal Rehman</span><br></span></div> <div style="font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2"><span style="font-family: tahoma, 'new york', times, serif;"> </span><hr size="1"> <b style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight:bold;">From:</span></b> Vlad Paiu <vladpaiu@opensips.org><br> <b style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight: bold;">To:</span></b> users@lists.opensips.org <br> <b style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight:
bold;">Sent:</span></b> Wednesday, January 25, 2012 7:16 PM<br> <b style="font-family: 'times new roman', 'new york', times, serif; "><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] Max Forward Header Function<br> </font> </div> <br>
<div id="yiv1565505647" style="font-family: 'times new roman', 'new york', times, serif; ">
<title></title>
<div>
Hi,<br>
<br>
The '!' symbol has the same meaning as in any other programming
language, to negate the return code of the function.<br>
<br>
So if you look at the return code of the mf_process_maxfwd_header at
[1], you will see it returns a positive return code when the
processing of the Max-Forward header succeeds, and a negative return
code if the Max-Forward value is 0 or if there was another failure.
<br>
<br>
[1]
http://www.opensips.org/html/docs/modules/1.7.x/maxfwd.html#id249099<br>
<br>
Regards,<br>
<pre class="yiv1565505647moz-signature">Vlad Paiu
OpenSIPS Developer</pre>
<br>
On 01/25/2012 02:44 PM, Faisal Rehman wrote:
<blockquote type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: tahoma, 'new york', times, serif; ">
<div style="font-size: 10pt; font-family: tahoma, times, serif; "><span style="font-weight:bold;">Hi
Everybody,</span></div>
<div style="font-size: 10pt; font-family: tahoma, times, serif; "><span><br>
</span></div>
<div><span><span style="font-size: 10pt; font-family: tahoma, times, serif; ">I have a very tiny
& crazy question but it is confusing me & I
couldn't find its accurate answer over google that why we
use </span><span style="font-weight: bold; font-family: tahoma, times, serif; ">"!"</span><span style="font-size:10pt;"> this before <span style="font-family: courier, monaco, monospace, sans-serif; ">mf_process_maxfwd_header</span>
function in the main routing block. I have also seen this
symbol with other functions like<span style="font-family: courier, monaco, monospace, sans-serif; ">
!is_method("REGISTER|MESSAGE")</span> so what's its soul
purpose?</span></span></div>
<div><span><span style="font-size:10pt;"><br>
</span></span></div>
<div><span><span style="font-size:10pt;">How can I test the
functionality of just the </span></span><span style="font-size: 13px; font-family: courier, monaco, monospace, sans-serif; ">mf_process_maxfwd_header</span><span style="font-size:13px;"> function?</span></div>
<div><span style="font-size:13px;"><br>
</span></div>
<div style="font-size: 10pt; font-family: tahoma, times, serif; "> </div>
<div style="font-size: 10pt; font-family: tahoma, times, serif; ">Regards,</div>
<div style="font-size: 10pt; font-family: tahoma, times, serif; "><br>
</div>
<div style="font-size: 10pt; font-family: tahoma, times, serif; "><span style="font-weight:bold;">Faisal
Rehman</span></div>
</div>
<pre><fieldset class="yiv1565505647mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a rel="nofollow" class="yiv1565505647moz-txt-link-abbreviated" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
</pre>
</blockquote>
</div>
</div><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org" style="font-family: 'times new roman', 'new york', times, serif; ">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; ">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br> </div> </div> </div></body></html>