Problem making call using pjsua

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

 



Hi,

I've compiled the pjlib an pjsua version 2.2.1 on both mac and raspbian and
it's working fine.

I've putted my config parameters on a file vodafone.cfg and when i run
pjsua using

./pjsua --config-file vodafone.cfg

everything works and i'm able to receive and make calls through the pjsua
CLI.

However when i try to make a call directly from bash with

./pjsua sip:917XXXXXX at ims.vodafone.pt --config-file vodafone.cfg

the call is not made an instead i see the pjsua CLI.

on the logs i got this:

Current call id=0 to sip:917XXXXXX at ims.vodafone.pt [CALLING]
>>> 00:05:36.897   pjsua_core.c  .RX 507 bytes Response msg
401/REGISTER/cseq=27135
(rdata0x1c445f4) from UDP 213.30.55.21:5060:
SIP/2.0 401 Unauthorized^M
Via: SIP/2.0/UDP
192.168.1.70:5060;received=10.172.103.224;
branch=z9hG4bKPjx2QvtS8YyhAOirGuDO0e6enlj3yr
zjbk;rport=53067^M
From: <sip:+351234XXXXXX@xxxxxxxxxxxxxxx>;tag=
QlIkc.RAQu.t9zns05rLriuG11hMZeji^M
To: <sip:+351234XXXXXXX at ims.vodafone.pt
>;tag=bc49faad0990787df0b52b46d4f41eb5^M
Call-ID: zDFzD0tNswMPhJ33Eqy-Ps1VJW2R6d2s^M
CSeq: 27135 REGISTER^M
Content-Length: 0^M
WWW-Authenticate: Digest
nonce="F7FD8F3FC6B5FF5300000000641C7303",realm="ims.vodafone.pt",
algorithm=MD5,qop="
auth"^M
^M

--end msg--
00:05:36.897    pjsua_acc.c  ....IP address change detected for account 1
(192.168.1.70:5060 -->
10.172.103.224:53067). Updating registration (using method 4)
00:05:36.898   pjsua_core.c  ....TX 895 bytes Request msg
REGISTER/cseq=27136
(tdta0x1c47758) to UDP 213.30.55.21:5060:
REGISTER sip:ims.vodafone.pt SIP/2.0^M
Via: SIP/2.0/UDP
10.172.103.224:53067
;rport;branch=z9hG4bKPjrNmQa7tSDo2qZFzr9l4A4F5Q.vJP1eNc^M
Route: <sip:proxythomson.ims.vodafone.pt;lr>^M
Max-Forwards: 70^M
From: <sip:+351234XXXXXXX@xxxxxxxxxxxxxxx>;
tag=QlIkc.RAQu.t9zns05rLriuG11hMZeji^M
To: <sip:+351234XXXXXXXX at ims.vodafone.pt>^M
Call-ID: zDFzD0tNswMPhJ33Eqy-Ps1VJW2R6d2s^M
CSeq: 27136 REGISTER^M
User-Agent: PJSUA v2.2.1 Linux-3.6.11/armv6l/glibc-2.13^M
Contact: <sip:+351234XXXXXXXX at 10.172.103.224:53067;ob>^M
Expires: 300^M
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO,
SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS^M
Authorization: Digest username="+351234XXXXXXXX", realm="ims.vodafone.pt",
nonce="F7FD8F3FC6B5FF5300000000641C7303", uri="sip:ims.vodafone.pt",
response="6c74d905f2e3a6859d6c5d4a43>
Content-Length:  0^M
^M

--end msg--
00:05:36.899   pjsua_core.c  .RX 318 bytes Response msg
100/INVITE/cseq=8066
(rdata0x1c445f4) from UDP 213.30.55.21:5060:
SIP/2.0 100 Trying^M
Via: SIP/2.0/UDP
192.168.1.70:5060;received=10.172.103.224;branch=
z9hG4bKPj8s7YgI7BC2ctd3bIzh3rpatG6cvN
yu2c;rport=53067^M
From: sip:+351234XXXXXXX@xxxxxxxxxxxxxxx
;tag=11bKceNvdS1J16x0yrhbDtH1-HfIUs30^M
To: sip:917XXXXXXX at ims.vodafone.pt^M
To: sip:917XXXXXXX at ims.vodafone.pt^M
Call-ID: xul3BIIuE7Lc.45MqkFKCMsrRtlq7yJt^M
CSeq: 8066 INVITE^M
^M

--end msg--
00:05:36.957   pjsua_core.c  .RX 389 bytes Response msg
404/INVITE/cseq=8066
(rdata0x1c445f4) from UDP 213.30.55.21:5060:
SIP/2.0 404 Called User Unknown^M
Via: SIP/2.0/UDP
192.168.1.70:5060;received=10.172.103.224;branch=
z9hG4bKPj8s7YgI7BC2ctd3bIzh3rpatG6cvN
yu2c;rport=53067^M
From: sip:+351234XXXXXXX@xxxxxxxxxxxxxxx
;tag=11bKceNvdS1J16x0yrhbDtH1-HfIUs30^M
To: <sip:917XXXXXX at ims.vodafone.pt>;tag=f5991a16047700cd70b52b46d50d6e20^M
Call-ID: xul3BIIuE7Lc.45MqkFKCMsrRtlq7yJt^M
CSeq: 8066 INVITE^M
Content-Length: 0^M
^M

--end msg--
00:05:36.958   pjsua_core.c  ..TX 429 bytes Request msg ACK/cseq=8066
(tdta0x1c57b68) to UDP
213.30.55.21:5060:
ACK sip:917XXXXXXX at ims.vodafone.pt SIP/2.0^M
Via: SIP/2.0/UDP
192.168.1.70:5060;rport;branch=z9hG4bKPj8s7YgI7BC2ctd3bIzh3rpatG6cvNyu2c^M
Max-Forwards: 70^M
From: sip:+351234XXXXXX@xxxxxxxxxxxxxxx
;tag=11bKceNvdS1J16x0yrhbDtH1-HfIUs30^M
To: sip:917XXXXXX at ims.vodafone.pt;tag=f5991a16047700cd70b52b46d50d6e20^M
Call-ID: xul3BIIuE7Lc.45MqkFKCMsrRtlq7yJt^M
CSeq: 8066 ACK^M
Route: <sip:proxythomson.ims.vodafone.pt;lr>^M
Content-Length:  0^M
^M

--end msg--
00:05:36.958    pjsua_app.c  .....Call 0 is DISCONNECTED [reason=404
(Called User Unknown)]
00:05:36.958 pjsua_app_comm  .....
  [DISCONNCTD] To: sip:917XXXXXX at ims.vodafone.pt^M
    Call time: 00h:00m:00s, 1st res in 98 ms, conn in 0ms



>From what i understand it seems it is trying to make the call before the
registration with SIP server is completed.

Is there anyway i can change this? Any parameter i can add to the config?


Thanks

Jos? Rodrigues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140902/a88c93c9/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