[pjsip] help add "algorithm=MD5"

huaming.zeng huaming.zeng at mogenesis.com
Sun Dec 6 01:32:34 EST 2009


hi all:
How can I append the "algorithm=MD5" string to the Authorization header;
///////////////////////////////////////////////////////////////////////////////////////////////
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/UDP 192.168.1.107:5060;rport;branch=z9hG4bKPj70cdc9dd45d847f2bdfc0f398364194c
Route: <sip:192.168.1.111;lr>
From: <sip:alice at open-ims.test>;tag=b87864cedb1245f2b0468a982cf3e64f
To: <sip:alice at open-ims.test>
Call-ID: e92972a790954d1b88b04094bc754e5f
CSeq: 38705 REGISTER
Authorization: Digest username="alice at open-ims.test", realm="open-ims.test", nonce="", uri="sip:open-ims.test", response=""
Require: pref
User-Agent: PJSUA v1.4-trunk/win32
Contact: <sip:alice at 192.168.1.107:5060>
Expires: 300
Content-Length:  0
//
the correct one is :
Authorization: Digest username="18811041901 at bjmcc.com",realm="bjmcc.com",nonce="",uri="sip:bjmcc.com",response="", algorithm=MD5 

//this is my cfg file
# This is a comment in the config file.
--id sip:alice at open-ims.test
--registrar sip:open-ims.test
--realm open-ims.test
--username alice
--password alice
--proxy sip:192.168.1.111;lr
--use-ims
--username alice at open-ims.test
--password alice
--publish
--realm open-ims.test
2009-12-06 



曾华明(Zenghuaming)
Mob:13911375643   Tel: 010-64391081
Fax: 010-64391082   MSN: zenghuaming at hotmail.com
北京创世互动科技有限公司
Beijing Genesis Interactive Technology co.,Ltd.

本邮件(包括任何附件)含有机密资料并受法律保护。如您不是正确的收件人,请勿阅读本邮件的内容,请立即回复本邮件告知发件人,并请您立即删除本邮件并销毁所有拷贝信息。如您已经阅读了本邮件,请对邮件内容进行保密,不要使用、复制、揭露、传播到任何第三方。谢谢您的合作。
This email (including any attachments hereto) is intended only for the named recipient above and contains confidential and legally privileged information. In case that you have received this email in error or are not the intended recipient of this email, please do not read the content of this email and please immediately notify the sender by replying this email, delete it from your computer system, and destroy all hard copies hereof. Should you have already learned any matters of this email, you shall treat all information contained herein in confidence and shall not use, reproduce, disclose and distribute it to any third party. Thank you for your cooperation. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091206/a29ea7bf/attachment.html>


More information about the pjsip mailing list