summaryrefslogtreecommitdiff
path: root/pjnath/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-03-21 09:43:59 +0000
committerBenny Prijono <bennylp@teluu.com>2008-03-21 09:43:59 +0000
commitb8bdcbeb3a8260a6a55847d45c7e4b5609634477 (patch)
treece6a467f65bf571e5bffab8c3cca73b8fbeac332 /pjnath/include
parentd5d8ed46c038edabde3d78da903c8a4479c6c0df (diff)
More ticket #485: wrong encoding of CHANNEL-NUMBER attribute
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1885 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/include')
-rw-r--r--pjnath/include/pjnath/stun_msg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjnath/include/pjnath/stun_msg.h b/pjnath/include/pjnath/stun_msg.h
index aa29f15e..15114808 100644
--- a/pjnath/include/pjnath/stun_msg.h
+++ b/pjnath/include/pjnath/stun_msg.h
@@ -873,12 +873,12 @@ typedef struct pj_stun_uint_attr pj_stun_channel_number_attr;
/**
* Get 16bit channel number from 32bit integral value.
*/
-#define PJ_STUN_GET_CH_NB(u32) pj_ntohs((pj_uint16_t)(u32>>16))
+#define PJ_STUN_GET_CH_NB(u32) ((pj_uint16_t)(u32>>16))
/**
* Convert 16bit channel number into 32bit integral value.
*/
-#define PJ_STUN_SET_CH_NB(chnum) (((pj_uint32_t)pj_htons(chnum)) << 16)
+#define PJ_STUN_SET_CH_NB(chnum) (((pj_uint32_t)chnum) << 16)
/**