my problem...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



your sip server is challenging your registration once the 401 is received
a new REGISTER with the proper authentication information must be sent. some like:

REGISTER sip:10.5.200.169 SIP/2.0
Via: SIP/2.0/UDP 10.5.200.194:5060;rport;branch=z9hG4bKPjbFJg16Sf1UnIU-aKoLJWn3.B8WOWw-sH
Max-Forwards: 70
From: "Apple iPad" <sip:2001@10.5.200.169>;tag=LJb88XgB3B8ufx.QJ.cLLRu16oYeX-Ow
To: "Apple iPad" <sip:2001 at 10.5.200.169>
Call-ID: Eri2YDu9vyywzTZX.LNt0PZUJyxhGzEv
CSeq: 26985 REGISTER
Contact: "BlaBla" <sip:2001 at 10.5.200.194:5060>
Expires: 300
Authorization: Digest username="2001", realm="asterisk", nonce="3b55e0fe", uri="sip:10.5.200.169", response="55a17053f2c82e0bd6ec84a633d02a95", algorithm=MD5
Content-Length:  0

may be the account was not created with all the proper information?

On Jun 17, 2010, at 2:12 PM, Kiko wrote:

> Hello everyone, I'm making my thesis and I have a problem, when I try to connect to a SIP server, I'm trying to run the simple_pjsua example and it doesn't run. The script of my attempt to run the example is follow:
> 
> root at platel-desktop:/home/platel/Escritorio/pjproject-1.6/pjsip-apps/bin/samples/i686-c-linux-gnu#
> ./simple_pjsua 
>  13:52:54.117 os_core_unix.c  pjlib 1.6 for POSIX initialized
>  13:52:54.117 sip_endpoint.c  Creating endpoint instance...
>  13:52:54.118          pjlib  select() I/O Queue created (0x8d9e008)
>  13:52:54.118 sip_endpoint.c  Module "mod-msg-print" registered
>  13:52:54.118 sip_transport.  Transport manager created.
>  13:52:54.118 sip_endpoint.c  Module "mod-pjsua-log" registered
>  13:52:54.118 sip_endpoint.c  Module "mod-tsx-layer" registered
>  13:52:54.118 sip_endpoint.c  Module "mod-stateful-util" registered
>  13:52:54.118 sip_endpoint.c  Module "mod-ua" registered
>  13:52:54.118 sip_endpoint.c  Module "mod-100rel" registered
>  13:52:54.118 sip_endpoint.c  Module "mod-pjsua" registered
>  13:52:54.118 sip_endpoint.c  Module "mod-invite" registered
>  13:52:54.173       pa_dev.c  PortAudio sound library initialized, status=0
>  13:52:54.173       pa_dev.c  PortAudio host api count=1
>  13:52:54.173       pa_dev.c  Sound device count=1
>  13:52:54.174          pjlib  select() I/O Queue created (0x8da4c7c)
>  13:52:54.198 sip_endpoint.c  Module "mod-evsub" registered
>  13:52:54.198 sip_endpoint.c  Module "mod-presence" registered
>  13:52:54.198 sip_endpoint.c  Module "mod-mwi" registered
>  13:52:54.199 sip_endpoint.c  Module "mod-refer" registered
>  13:52:54.199 sip_endpoint.c  Module "mod-pjsua-pres" registered
>  13:52:54.199 sip_endpoint.c  Module "mod-pjsua-im" registered
>  13:52:54.199 sip_endpoint.c  Module "mod-pjsua-options" registered
>  13:52:54.199   pjsua_core.c  1 SIP worker threads created
>  13:52:54.199   pjsua_core.c  pjsua version 1.6 for i686-pc-linux-gnu initialized
>  13:52:54.199   pjsua_core.c  SIP UDP socket reachable at 10.12.165.230:5060
>  13:52:54.199   udp0x8db3428  SIP UDP transport started, published address is
> 10.12.165.230:5060
>  13:52:54.199  pjsua_media.c  RTP socket reachable at 10.12.165.230:4000
>  13:52:54.199  pjsua_media.c  RTCP socket reachable at 10.12.165.230:4001
>  13:52:54.200  pjsua_media.c  RTP socket reachable at 10.12.165.230:4002
>  13:52:54.200  pjsua_media.c  RTCP socket reachable at 10.12.165.230:4003
>  13:52:54.200  pjsua_media.c  RTP socket reachable at 10.12.165.230:4004
>  13:52:54.200  pjsua_media.c  RTCP socket reachable at 10.12.165.230:4005
>  13:52:54.200  pjsua_media.c  RTP socket reachable at 10.12.165.230:4006
>  13:52:54.200  pjsua_media.c  RTCP socket reachable at 10.12.165.230:4007
>  13:52:54.200 sip_endpoint.c  Module "mod-unsolicited-mwi" registered
>  13:52:54.200    pjsua_acc.c  Account sip:2003 at 10.12.165.11 added with id 0
>  13:52:54.210   pjsua_core.c  TX 383 bytes Request msg REGISTER/cseq=48180
> (tdta0x8dbf4a0) to UDP 10.12.165.11:5060:
> REGISTER sip:10.12.165.11 SIP/2.0
> Via: SIP/2.0/UDP
> 10.12.165.230:5060;rport;branch=z9hG4bKPj2sy3xomnkHxKXsACg8ynNbEO7fNV9y7R
> Max-Forwards: 70
> From: <sip:2003@10.12.165.11>;tag=vjGV9u9KfFJtUq.knVMjVcHza6Lmucse
> To: <sip:2003 at 10.12.165.11>
> Call-ID: qmNJfmb8TjT2dHmlt1LzEiFddRvNsssU
> CSeq: 48180 REGISTER
> Contact: <sip:2003 at 10.12.165.230:5060>
> Expires: 300
> Content-Length:  0
> 
> 
> --end msg--
>  13:52:54.210    pjsua_acc.c  Registration sent
> Press 'h' to hangup all calls, 'q' to quit
>  13:52:54.212   pjsua_core.c  RX 553 bytes Response msg 401/REGISTER/cseq=48180
> (rdata0x8db389c) from UDP 10.12.165.11:5060:
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP
> 10.12.165.230:5060;branch=z9hG4bKPj2sy3xomnkHxKXsACg8ynNbEO7fNV9y7R;received=10.12.165.230;rport=5060
> From: <sip:2003@10.12.165.11>;tag=vjGV9u9KfFJtUq.knVMjVcHza6Lmucse
> To: <sip:2003 at 10.12.165.11>;tag=as11c4fbe9
> Call-ID: qmNJfmb8TjT2dHmlt1LzEiFddRvNsssU
> CSeq: 48180 REGISTER
> Server: Asterisk PBX 1.6.1.12
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces, timer
> WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="13e5be5f"
> Content-Length: 0
> 
> 
> --end msg--
>  13:52:54.212 sip_auth_clien  Unable to set auth for tdta0x8dbf4a0: can not find
> credential for asterisk/Digest
>  13:52:54.212    pjsua_acc.c  SIP registration error: No suitable credential
> (PJSIP_ENOCREDENTIAL) [status=171101]
> 
> 
> I'm using Ubuntu 9.10, the SIP server IP is 10.12.165.11 and my IP address is 10.12.165.230.
> I hope that you can help me with this.
> 
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

------
Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana at savantav.com

Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100617/d2925e9b/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux