Author: bpintea
Date: 2008-09-24 02:56:34 +0200 (Wed, 24 Sep 2008)
New Revision: 1101
Modified:
trunk/core/plug-in/binrpcctrl/BrpcCtrlInterface.cpp
Log:
Added NOTIFY to the list of supported methods.
Patch by Rui Jin Zheng.
Modified: trunk/core/plug-in/binrpcctrl/BrpcCtrlInterface.cpp
===================================================================
--- trunk/core/plug-in/binrpcctrl/BrpcCtrlInterface.cpp 2008-09-23 23:58:35 UTC
(rev 1100)
+++ trunk/core/plug-in/binrpcctrl/BrpcCtrlInterface.cpp 2008-09-24 00:56:34 UTC
(rev 1101)
@@ -64,6 +64,7 @@
const BRPC_STR_STATIC_INIT(SIP_REQUEST_BYE, "BYE");
const BRPC_STR_STATIC_INIT(SIP_REQUEST_PRACK, "PRACK");
const BRPC_STR_STATIC_INIT(SIP_REQUEST_REFER, "REFER");
+const BRPC_STR_STATIC_INIT(SIP_REQUEST_NOTIFY, "NOTIFY");
//these are needed for requests
const BRPC_STR_STATIC_INIT(SER_DFMT_METHOD, "@method");
@@ -97,7 +98,8 @@
&SIP_REQUEST_CANCEL,
&SIP_REQUEST_PRACK,
&SIP_REQUEST_INFO,
- &SIP_REQUEST_REFER
+ &SIP_REQUEST_REFER,
+ &SIP_REQUEST_NOTIFY
};
static const brpc_str_t *REQ_FMTS[] = {
@@ -337,6 +339,8 @@
(brpc_cb_req_f)&req_handler, NULL, this) &&
brpc_cb_req(SIP_REQUEST_REFER.val, NULL,
(brpc_cb_req_f)&req_handler, NULL, this) &&
+ brpc_cb_req(SIP_REQUEST_NOTIFY.val, NULL,
+ (brpc_cb_req_f)&req_handler, NULL, this) &&
1)) {
ERROR("failed to register the BINRPC callbaks: %s [%d].\n",
brpc_strerror(), brpc_errno);
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev