<!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">
Hello,<br>
<br>
Upon registration, each UA can supply a list of allowed/supported
methods.<br>
OpenSIPS saves this information by using an integer, and bitmask
flags.<br>
<br>
The enum used is :<br>
enum request_method {<br>
METHOD_UNDEF=0, /* 0 - --- */<br>
METHOD_INVITE=1, /* 1 - 2^0 */<br>
METHOD_CANCEL=2, /* 2 - 2^1 */<br>
METHOD_ACK=4, /* 3 - 2^2 */<br>
METHOD_BYE=8, /* 4 - 2^3 */<br>
METHOD_INFO=16, /* 5 - 2^4 */<br>
METHOD_OPTIONS=32, /* 6 - 2^5 */<br>
METHOD_UPDATE=64, /* 7 - 2^6 */<br>
METHOD_REGISTER=128, /* 8 - 2^7 */<br>
METHOD_MESSAGE=256, /* 9 - 2^8 */<br>
METHOD_SUBSCRIBE=512, /* 10 - 2^9 */<br>
METHOD_NOTIFY=1024, /* 11 - 2^10 */<br>
METHOD_PRACK=2048, /* 12 - 2^11 */<br>
METHOD_REFER=4096, /* 13 - 2^12 */<br>
METHOD_PUBLISH=8192, /* 14 - 2^13 */<br>
METHOD_OTHER=16384 /* 15 - 2^14 */<br>
};<br>
<br>
0x1F6F = 8047 = 4096 + 2048 + 1024 + 512 + 256 + 64 + 32 + 8 + 4 + 2
+ 1 ,<br>
<br>
Basically, using the methods integer and the above enumeration, you
can tell what methods the registering UA supports.<br>
<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer</pre>
<br>
On 09/13/2011 10:42 PM, Dani Popa wrote:
<blockquote
cite="mid:CAEOhXaYxZeOFD3eQBhF-7-kH+wfNWbqxCJ=ir7sw4eEKk4t8OA@mail.gmail.com"
type="cite">
<div>Hi all,</div>
<div><br>
</div>
<div>What does it mean methods=0x1F6F from register contact when i
see it with opensipsctl ul show, and how can i decode it ? </div>
Contact::
<a class="moz-txt-link-rfc2396E" href="mailto:sip:xxxx@x.x.x.x:xxx;transport=UDP;ob"><sip:xxxx@x.x.x.x:xxx;transport=UDP;ob></a>;q=;expires=525;flags=0x0;cflags=0x0;socket=<udp:y.y.y.y:yyyy>;methods=0x1F6F;user_agent=<CSipSimple
r801 / SGH-I897-7><br clear="all">
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
-- <br>
Dani Popa<br>
<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>