my problem...

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

 



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. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100617/96da444a/attachment.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