<!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 parameter to mf_process_maxfwd_header will only be added to the
message if the message did not initially contain a Max-Forwards
header.<br>
If the header exists, the default behavior is to decrement the
header value by one. Please check again the readme for the function.<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>
Vlad<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer</pre>
<br>
On 01/26/2012 03:05 PM, Faisal Rehman wrote:
<blockquote
cite="mid:1327583131.16180.YahooMailNeo@web46204.mail.sp1.yahoo.com"
type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
255); 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 style="background-color: rgb(230, 230, 230);
color: rgb(64, 127, 0);" size="2"> act:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:1000@192.168.150.23:16222"><sip:1000@192.168.150.23:16222></a>..To:
"3333"<a class="moz-txt-link-rfc2396E" href="mailto:sip:3333@192.168.150.160:5161"><sip:3333@192.168.150.160:5161></a>..From:
"testing"<a class="moz-txt-link-rfc2396E" href="mailto:sip:1000@192.168.150.160:5161"><sip:1000@192.168.150.160:5161></a>;tag=3421ec3e..Call-ID:
ba600752f22e</font></div>
<div style="font-family: 'Courier
New',courier,monaco,monospace,sans-serif; font-size:
16px;"><font style="background-color: rgb(230, 230, 230);
color: rgb(64, 127, 0);" size="2">
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 <a class="moz-txt-link-rfc2396E" href="mailto:vladpaiu@opensips.org"><vladpaiu@opensips.org></a><br>
<b style="font-family: 'times new roman','new
york',times,serif;"><span style="font-weight: bold;">To:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a> <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]
<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="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 moz-do-not-send="true" 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>
<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>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<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>