Why I always get the error 403 when I use IMS accounts to male a call between PJSUA and MC(Multi Communicator)?

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

 



Dear all
  I register an IMS account with PJSUA,and I want to call another IMS
account
which was registered with MC(Multi Communicator),I always get the error 403.
But if I use MC to call MC,It will be OK.
  I compared the INVITE message sent by PJSUA and MC,I found that there
were no  P-Called-Party-ID  and P-Asserted-Identity headers in the message
sent by PJSUA. Is that why I always get the error 403? How to add the
two headers in PJSUA?
  Thanks.

This is my log file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INVITE sip:88880017 at huawei.com <sip%3A88880017 at huawei.com> SIP/2.0
Via: SIP/2.0/UDP 192.168.9.111:5060
;rport;branch=z9hG4bKPj39c42974264840fa8a4557347d9d89e6
Max-Forwards: 70
From: sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com>
;tag=2e89ba1c45d543e38c52fcfa42e5df4f
To: sip:88880017 at huawei.com <sip%3A88880017 at huawei.com>
Contact: <sip:88880016 at 123.112.12.108:1913;transport=UDP>
Call-ID: 70feb07a2b03458486c3a5e13ec4a468
CSeq: 4736 INVITE
Route: <sip:121.33.232.99;lr>
Route: <sip:orig at scscf.huawei.com:30820
;lr;Dpt=7864-4;ca=c2lwOjg4ODgwMDE2QDEyMy4xMTIuMTIuMTA4OjE5MTM!>
Authorization: Digest username="88880016 at huawei.com", realm="huawei.com",
nonce="", uri="sip:88880017 at huawei.com <sip%3A88880017 at huawei.com>",
response=""
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER,
MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: PJSUA v1.3/win32
Content-Type: application/sdp
Content-Length:   462

v=0
o=- 3465886832 3465886832 IN IP4 192.168.9.111
s=pjmedia
c=IN IP4 192.168.9.111
t=0 0
a=X-nat:0
m=audio 4004 RTP/AVP 103 102 104 113 3 0 8 9 101
a=rtcp:4005 IN IP4 192.168.9.111
a=rtpmap:103 speex/16000
a=rtpmap:102 speex/8000
a=rtpmap:104 speex/32000
a=rtpmap:113 iLBC/8000
a=fmtp:113 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

--end msg--
 10:20:32.171    tsx00ED4E4C  State changed from Null to Calling,
event=TX_MSG
 10:20:32.171    dlg00ECFA9C  Transaction tsx00ED4E4C state changed to
Calling
 10:20:32.171    pjsua_app.c  Call 0 state changed to CALLING
 10:20:32.171       pa_dev.c  Player thread started
 10:20:32.187       pa_dev.c  Recorder thread started
 10:20:32.187     ec00EA1FF8  Prefetching..
 10:20:32.218     ec00EA1FF8  Prefetching..
 10:20:32.234     ec00EA1FF8  Prefetching..
 10:20:32.250 sip_endpoint.c  Processing incoming message: Response msg
100/INVITE/cseq=4736 (rdata00E92A8C)
 10:20:32.250   pjsua_core.c  RX 325 bytes Response msg 100/INVITE/cseq=4736
(rdata00E92A8C) from UDP 121.33.232.99:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.9.111:5060
;branch=z9hG4bKPj39c42974264840fa8a4557347d9d89e6;received=123.112.12.108;rport=1913
Call-ID: 70feb07a2b03458486c3a5e13ec4a468
From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com>
>;tag=2e89ba1c45d543e38c52fcfa42e5df4f
To: <sip:88880017 at huawei.com <sip%3A88880017 at huawei.com>>
CSeq: 4736 INVITE
Content-Length: 0


--end msg--
 10:20:32.250    tsx00ED4E4C  Incoming Response msg 100/INVITE/cseq=4736
(rdata00E92A8C) in state Calling
 10:20:32.250    tsx00ED4E4C  State changed from Calling to Proceeding,
event=RX_MSG
 10:20:32.250    dlg00ECFA9C  Received Response msg 100/INVITE/cseq=4736
(rdata00E92A8C)
 10:20:32.250    dlg00ECFA9C  Transaction tsx00ED4E4C state changed to
Proceeding
 10:20:32.250 sip_endpoint.c  Processing incoming message: Response msg
403/INVITE/cseq=4736 (rdata00E92A8C)
 10:20:32.250   pjsua_core.c  RX 402 bytes Response msg 403/INVITE/cseq=4736
(rdata00E92A8C) from UDP 121.33.232.99:5060:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.9.111:5060
;branch=z9hG4bKPj39c42974264840fa8a4557347d9d89e6;received=123.112.12.108;rport=1913
Call-ID: 70feb07a2b03458486c3a5e13ec4a468
From: <sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com>
>;tag=2e89ba1c45d543e38c52fcfa42e5df4f
To: <sip:88880017 at huawei.com <sip%3A88880017 at huawei.com>>
CSeq: 4736 INVITE
Warning: 399 0154601234.P.huawei.com.204.030.051.0001000C "Invalid user"
Content-Length: 0


--end msg--
 10:20:32.250    tsx00ED4E4C  Incoming Response msg 403/INVITE/cseq=4736
(rdata00E92A8C) in state Proceeding
 10:20:32.250       endpoint  Request msg ACK/cseq=4736 (tdta00ED5A98)
created.
 10:20:32.250   pjsua_core.c  TX 460 bytes Request msg ACK/cseq=4736
(tdta00ED5A98) to UDP 121.33.232.99:5060:
ACK sip:88880017 at huawei.com <sip%3A88880017 at huawei.com> SIP/2.0
Via: SIP/2.0/UDP 192.168.9.111:5060
;rport;branch=z9hG4bKPj39c42974264840fa8a4557347d9d89e6
Max-Forwards: 70
From: sip:88880016@xxxxxxxxxx <sip%3A88880016 at huawei.com>
;tag=2e89ba1c45d543e38c52fcfa42e5df4f
To: sip:88880017 at huawei.com <sip%3A88880017 at huawei.com>
Call-ID: 70feb07a2b03458486c3a5e13ec4a468
CSeq: 4736 ACK
Route: <sip:121.33.232.99;lr>
Route: <sip:orig at scscf.huawei.com:30820
;lr;Dpt=7864-4;ca=c2lwOjg4ODgwMDE2QDEyMy4xMTIuMTIuMTA4OjE5MTM!>
Content-Length:  0


--end msg--
 10:20:32.250    tsx00ED4E4C  State changed from Proceeding to Completed,
event=RX_MSG
 10:20:32.250    dlg00ECFA9C  Received Response msg 403/INVITE/cseq=4736
(rdata00E92A8C)
 10:20:32.250    dlg00ECFA9C  Transaction tsx00ED4E4C state changed to
Completed
 10:20:32.250    pjsua_app.c  Call 0 is DISCONNECTED [reason=403
(Forbidden)]
 10:20:32.250    pjsua_app.c  Call 0 disconnected, dumping media stats..
 10:20:32.250    pjsua_app.c
  [DISCONNCTD] To: sip:88880017 at huawei.com <sip%3A88880017 at huawei.com>
    Call time: 00h:00m:00s, 1st res in 94 ms, conn in 0ms
    SRTP status: Not active Crypto-suite: (null)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091030/01dcf57f/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