[Asterisk-Users] Using MD5 to encrpty PIN
Kurt
kurtwp at yahoo.com
Mon Jul 12 07:02:53 MST 2004
TrTryingo get * to register to a service that uses account and pin but
the PIN must be encrypted using MD5. The service does not require the
phone number to register to the SIP Proxy.
I can get the REGISTER message to send the account by using the below
register line in the [general] section of the sip.coconf
register=123456789012:1000 at 192.168.0.1/123456789012
but am still perplexed on how to send the PIN encrypted using MD5.
acct = 123456789012
PIN = 1000
My [contexts], under sip.coconflooks as follows:
[general]
port = 5060 ; Port to bind to
bibindaddr 0.0.0.0 ; Address to bind SIP channel to
context = voice-mail ; Default context for incoming calls
dtdtmfmodefrfc33
register=123456789012 at 192.168.0.1/17135551212
[17135551212]
type=peer
context=vovoicelinedtdtmfmodefrfc33
secret=1000
qualify=1000
ususername23456789012
host=dynamic
dedefaultip92.168.0.1
auauthD5
;acaccountcode23456789012
Below is the REGISTER packet sent by the InInnoMediaevice that
successfully registered with the SIP proxy.
------------ SIP Header ------------
Message Type = Request
Method = REGISTER
Request URI = sip:192.168.0.1:5060
SIP Version = SIP/2.0
Via = SIP/2.0/UDUDP92.168.0.49:5060;branch=z9hGhGKbKd576315060-11 (Path
Taken By Request Till Now)
>From = sip:711130276219 at 192.168.0.1:5060;tag=D835763113C4-002120DC0
(Request Initiator)
To = sip:711130276219 at 192.168.0.1:5060 (Recipient Of Request)
Call-ID = 1-2120dcdcbbb1a9a at 192.168.0.49 (Unique Identifier)
CsCseq 102 REGISTER (Command Sequence Number)
User-Agent = InInnoMediaTMTA28-2 V2.2.59 SN/001099006807 (Client
Information)
Contact = <sip:711130276219 at 192.168.0.49:5060;cos=0;stun=0> (Contact
Details)
Expires = 3600 (Time After Which Message Content Expires)
Proxy-Authorization = Digest
ususername711130276219",realm="kukurtururisip:192.168.0.1:5060",nonce="773FCFC316B3EC0E3BFBFABECEAD7957",algorithm=MD5,response="e5ff2cece6dd0509fefe1bcbcf19d8e2"
(Client Identification)
Max-Forwards = 70 (Limit On Number Of Proxies/Gateways)
Content-Length = 0 (Message Body Length In Octets)
Kurt
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
More information about the asterisk-users
mailing list