summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsip-simple
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-07-07 19:57:16 +0000
committerBenny Prijono <bennylp@teluu.com>2008-07-07 19:57:16 +0000
commit9d2bd3abeba38f4bc466257c4598f0f6a11d76d2 (patch)
treea4fb51fd1e1658ab5aa967bc7b124c75cd23c8f5 /pjsip/src/pjsip-simple
parentba295f3e69677e10ba32b91abe0a041cba3c2a77 (diff)
Stop putting PUBLISH in Allow header since that's probably is not semantically correct (thanks Ruud Klaver for the suggestion)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2108 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsip-simple')
-rw-r--r--pjsip/src/pjsip-simple/publishc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/pjsip/src/pjsip-simple/publishc.c b/pjsip/src/pjsip-simple/publishc.c
index 072a08d0..6b54f53e 100644
--- a/pjsip/src/pjsip-simple/publishc.c
+++ b/pjsip/src/pjsip-simple/publishc.c
@@ -98,8 +98,28 @@ struct pjsip_publishc
*/
PJ_DEF(pj_status_t) pjsip_publishc_init_module(pjsip_endpoint *endpt)
{
+ /* Note:
+ Commented out the capability registration below, since it's
+ wrong to include PUBLISH in Allow header of INVITE requests/
+ responses.
+
+ 13.2.1 Creating the Initial INVITE
+ An Allow header field (Section 20.5) SHOULD be present in the
+ INVITE. It indicates what methods can be invoked within a dialog
+
+ 20.5 Allow
+ The Allow header field lists the set of methods supported by the
+ UA generating the message.
+
+ While the semantic of Allow header in non-dialog requests is unclear,
+ it's probably best not to include PUBLISH in Allow header for now
+ until we can find out how to customize the inclusion of methods in
+ Allow header for in-dialog vs out-dialog requests.
+
return pjsip_endpt_add_capability( endpt, NULL, PJSIP_H_ALLOW, NULL,
1, &pjsip_publish_method.name);
+ */
+ return PJ_SUCCESS;
}