[SR-Users] Table location, methods field

Andrew O. Zhukov gnugk at telegroup.com.ua
Thu Jun 30 12:44:24 CEST 2011


Sorry,

You change it ...

enum request_method {
         METHOD_UNDEF=0,           /* 0 - --- */
         METHOD_INVITE=1,          /* 1 - 2^0 */
         METHOD_CANCEL=2,          /* 2 - 2^1 */
         METHOD_ACK=4,             /* 3 - 2^2 */
         METHOD_BYE=8,             /* 4 - 2^3 */
         METHOD_INFO=16,           /* 5 - 2^4 */
         METHOD_OPTIONS=32,        /* 6 - 2^5 */
         METHOD_UPDATE=64,         /* 7 - 2^6 */
         METHOD_REGISTER=128,      /* 8 - 2^7 */
         METHOD_MESSAGE=256,       /* 9 - 2^8 */
         METHOD_SUBSCRIBE=512,     /* 10 - 2^9 */
         METHOD_NOTIFY=1024,       /* 11 - 2^10 */
         METHOD_PRACK=2048,        /* 12 - 2^11 */
         METHOD_REFER=4096,        /* 13 - 2^12 */
         METHOD_PUBLISH=8192,      /* 14 - 2^13 */
         METHOD_OTHER=16384        /* 15 - 2^14 */
};



On 06/30/2011 12:15 PM, Henning Westerholt wrote:
> On Thursday 30 June 2011, Andrew O. Zhukov wrote:
>> Can someone send me bitmasks for the Subj.
>> Or just the reference to include file with comments in a source code.
>> I can't find it in all set of availible document's since the SER router. :(
>>
>> I just have to know which UA except Grandstreams an CSipsample use RFC3311
>> :)
>
> Hi Andrew,
>
> they are defined in the parser, as power of two integers:
>
> http://sip-router.org/doxygen/sip-router/branch/master/msg__parser_8h.html#a82f3c7234c5469f18d5e9fac5700cf27
>
> Best regards,
>
> Henning
>




More information about the sr-users mailing list