<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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]
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.7.x/maxfwd.html#id249099">http://www.opensips.org/html/docs/modules/1.7.x/maxfwd.html#id249099</a><br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer</pre>
<br>
On 01/25/2012 02:44 PM, Faisal Rehman wrote:
<blockquote
cite="mid:1327495453.19438.YahooMailNeo@web46203.mail.sp1.yahoo.com"
type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
255); font-family: tahoma,new york,times,serif; font-size:
10pt;">
<div style="font-family: tahoma,'new york',times,serif;
font-size: 10pt;"><span style="font-weight: bold;">Hi
Everybody,</span></div>
<div style="font-family: tahoma,'new york',times,serif;
font-size: 10pt;"><span><br>
</span></div>
<div><span><span style="font-family: tahoma,'new
york',times,serif; font-size: 10pt;">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-family: tahoma,'new
york',times,serif; font-weight: bold;">"!"</span><span
style="font-size: 10pt;"> this before <span
style="font-family: 'Courier
New',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 New',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
New',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-family: tahoma,'new york',times,serif;
font-size: 10pt;"> </div>
<div style="font-family: tahoma,'new york',times,serif;
font-size: 10pt;">Regards,</div>
<div style="font-family: tahoma,'new york',times,serif;
font-size: 10pt;"><br>
</div>
<div style="font-family: tahoma,'new york',times,serif;
font-size: 10pt;"><span style="font-weight: bold;">Faisal
Rehman</span></div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>