Folks, I been trying to understand how one would register * to a SIP provider that only gives you an Account number, PIN, and phone number. I reviewed some examples on Wiki but those show examples of SIP provides using username and passwords.
I did the following under the [general]: Register = [EMAIL PROTECTED]/17135551212 The above line will send a register message to the SIP proxy but it returns a 403 Bad Account/PIN. I also tried various different register = lines using the accounts and pin as user and secret to no avail. My [contexts], under sip.conf, looks as follows: [general] port = 5060 ; Port to bind to bindaddr = 0.0.0.0 ; Address to bind SIP channel to context = voice-mail ; Default context for incoming calls dtmfmode=rfc2833 [EMAIL PROTECTED]/17135551212 [17135551212] type=peer context=voiceline dtmfmode=rfc2833 ;secret=1000 ;username=123456789012 host=dynamic defaultip=192.168.0.1 ;accountcode=123456789012 Any suggestion? Kurt -------------------------------------------------------------------------------------------------------------------- set up a softphone and trace it with ethereal(or the like) You should be able to get an idea of where to put what from the Register requests. Compare the Register requests generated by asterisk with your current = config to the ones generated by the softphone. ---- Andrew Thompson http://www.retirequickly.com/43653 ------------------------------------------------------------------------ After trapping a REGISTER packet from an InnoMedia device that has register successfully, I noticed that it requires proxy authentication. In addition, it requires that the PIN be encrypted using MD5. I did another search at Wiki and found no example of how to encrypt the PIN. By using the below line in the [general] context I can send a REGISTER message with the account number: [EMAIL PROTECTED]/123456789012 but am still perplexed on how to send the PIN encrypted using MD5. Below is the REGISTER packet sent by the InnoMedia device 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/UDP 192.168.0.49:5060;branch=z9hG4bKd83576315060-11 (Path Taken By Request Till Now) >From = sip:[EMAIL PROTECTED]:5060;tag=D835763113C4-002120DC0 (Request Initiator) To = sip:[EMAIL PROTECTED]:5060 (Recipient Of Request) Call-ID = [EMAIL PROTECTED] (Unique Identifier) Cseq = 102 REGISTER (Command Sequence Number) User-Agent = InnoMedia MTA3328-2 V2.2.59 SN/001099006807 (Client Information) Contact = <sip:[EMAIL PROTECTED]:5060;cos=0;stun=0> (Contact Details) Expires = 3600 (Time After Which Message Content Expires) Proxy-Authorization = Digest username="711130276219",realm="kurt",uri="sip:192.168.0.1:5060",nonce="773FC1C316B3EC0E3BFAB6CEAD7C7957",algorithm=MD5,response="e5ff2ce066dd0509fe0b1bcf8c19d8e2" (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 _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
