[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;rport;branch=z9hG4bKPj70cdc9dd45d847f2bdfc0f398364194c
Route: <sip:;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>
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:;lr
--username alice at open-ims.test
--password alice
--realm open-ims.test

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