[Serusers] SIP ATA Digest Authentication

Pepe jlbravo at acotelsa.com
Fri Dec 17 12:38:35 CET 2004


Hello,
    I have a problem authentication my ATA devices with mysql , I have this configuration; The configuration in my sjphone is working.

SJPHONE: 192.168.10.90
ATA IP: 192.168.10.96
SER: 192.168.10.91


SIP_DOMAIN="192.168.10.91"

ser.cfg
            alias="192.168.10.91"
            loadmodule "/usr/local/lib/ser/modules/mysql.so"
            loadmodule "/usr/local/lib/ser/modules/auth.so"
            loadmodule "/usr/local/lib/ser/modules/auth_db.so"

            modparam("usrloc", "db_mode", 2)

                        if (!www_authorize("192.168.10.91", "subscriber")) {
                                www_challenge("192.168.10.91", "0");
                                break;
                        };

ATA version 3.2

    UID0: 911211389
    PWD0: bolo
    UseLoginID: 1
    Proxy: 192.168.10.91

SJPHONE
    Proxy: 192.168.10.91
    Domain: 192.168.10.91
    Account: 911211390
    Password: bolo


MYSQL 

    serctl add 911211389 bolo 911211390 at 192.168.10.91
    serctl add 911211390 bolo 911211390 at 192.168.10.91
    
    



    

And this is why I have in my ethereal

SJPHONE --> SER
sip.Request-Line = Request-Line: REGISTER sip:192.168.10.91 SIP/2.0x
sip.From = From: <sip:911211390 at 192.168.10.91>;tag=147639828
sip.To = To: <sip:911211390 at 192.168.10.91>
sip.Authorization = Authorization: Digest username="911211390",realm="192.168.10.91",nonce="41c046cac4f98869173e6aa7a2bb4517a7f7e9d6",uri="sip:192.168.10.91",response="2751aa78ee74298024815ba8cf35f2a7"

SER --> SJPHONE

sip.Status-Line = Status-Line: SIP/2.0 200 OK
sip.From = From: <sip:911211390 at 192.168.10.91>;tag=147639828
sip.To = To: <sip:911211390 at 192.168.10.91>;tag=8e7dfe287ff1fc069b31517361891514.a624
sip.Warning = Warning: 392 192.168.10.91:5060 "Noisy feedback tells:  pid=2409 req_src_ip=192.168.10.90 req_src_port=5060 in_uri=sip:192.168.10.91 out_uri=sip:192.168.10.91 via_cnt==1"


ATA --> SER
sip.Request-Line = Request-Line: REGISTER sip:192.168.10.91 SIP/2.0
sip.From = From: 911211389 <sip:911211389 at 192.168.10.91;user=phone>;tag=2633904518
sip.To = To: 911211389 <sip:911211389 at 192.168.10.91;user=phone>
sip.Authorization = Authorization: Digest  username="911211389",realm="192.168.10.91",nonce="41c054a27a512a571fd108a7cb2c15aaba345768",uri="sip:192.168.10.91",response="924c72dcd60682cbe463a1dbe5521581"

SER --> ATA
sip.Status-Line = Status-Line: SIP/2.0 401 Unauthorized
sip.From = From: 911211389 <sip:911211389 at 192.168.10.91;user=phone>;tag=2633904518
sip.To = To: 911211389 <sip:911211389 at 192.168.10.91;user=phone>;tag=8e7dfe287ff1fc069b31517361891514.2cd2
sip.WWW-Authenticate = WWW-Authenticate: Digest realm="192.168.10.91", nonce="41c054a27a512a571fd108a7cb2c15aaba345768"
sip.Warning = Warning: 392 192.168.10.91:5060 "Noisy feedback tells:  pid=2391 req_src_ip=192.168.10.96 req_src_port=5060 in_uri=sip:192.168.10.91 out_uri=sip:192.168.10.91 via_cnt==1"


I donno why my sjphone is registring withoput problems and my ATA is rejected, any help will be nice

Thx in advance. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20041217/70f5941b/attachment.htm>


More information about the sr-users mailing list