Receving a call in Pjsip app

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

 



Hi All,

 

 I am able to register a account successfully, and able to make a voice call
from my pjsip client app .  But I am not able to receive call on my pjsip
client side  program. I have given my code snipet along with the log I got.
Is there anything I am missing?

 

 

Code Snippet:  

 

virtual void onIncomingCall(OnIncomingCallParam &iprm)

    {

                                    Call *call = new PhoneCall(*this,
iprm.callId);

                                    CallInfo ci = call->getInfo();

                                    CallOpParam prm;

        

                                   std::cout << "*** Incoming Call: " <<
ci.remoteUri << " [" << ci.stateText << "]" << std::endl;

        

                                  calls.push_back(call);

                                  prm.statusCode =  PJSIP_SC_OK;
//(pjsip_status_code)200;

                                  call->answer(prm);

    }

 

 

LOG :

 

**********Menu*************

1.Register Line

2.Make Call

3.End Call

4.Exit

5.Capture Device

Enter ur Choice:10:42:33.254   pjsua_core.c  .RX 526 bytes Response msg
401/REGISTER/cseq=52067 (rdata0x105ac74) from U:5060:

SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPjWm.EJ9iDYkYHU3-xJbVfxBsjmji9DHoL

From:  <sip:satya@officesip.local>;tag=C3RV-aQJDNkyPDJErgLBB2FuONIEu3o1

To:  <sip:satya at officesip.local>;tag=f9403da64c294b7e933b498dd67a48f7

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52067 REGISTER

x-Error-Details: No auth header

WWW-Authenticate: Digest
realm="officesip.local",nonce="be4eff01ec8b3963a6aba5259690c263",qop="auth",
algorithm=MD5,stal"0000000b"

Content-Length: 0

 

 

--end msg--

10:42:33.254   pjsua_core.c  ....TX 767 bytes Request msg
REGISTER/cseq=52068 (tdta0x105d7c8) to UDP 192.168.1.19:5060:

REGISTER sip:192.168.1.19 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj3Htp6d46lZyn8zTn5qmRRt8lznl7Fsdm

Max-Forwards: 70

From: <sip:satya@officesip.local>;tag=C3RV-aQJDNkyPDJErgLBB2FuONIEu3o1

To: <sip:satya at officesip.local>

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52068 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>

Expires: 300

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS

Authorization: Digest username="satya", realm="officesip.local",
nonce="be4eff01ec8b3963a6aba5259690c263",
uri="sip:192ponse="dfcf510394d41e8416527c2e57189232", algorithm=MD5,
cnonce="Z8p-LsTh-wjpGswHh9AU0Y6P..AIlprD", opaque="0000000b", 000001

Content-Length:  0

 

 

--end msg--

10:42:33.261   pjsua_core.c  .RX 406 bytes Response msg
200/REGISTER/cseq=52068 (rd

SIP/2.0 200 OK

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj3Htp6d46lZyn8zTn5qmRRt8lzn

From:  <sip:satya@officesip.local>;tag=C3RV-aQJDNkyPDJErgLBB2FuONIEu3o1

To:  <sip:satya at officesip.local>;tag=38602eeb9ea8495c8d7d5345243a05a9

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52068 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>;expires=300

Expires: 300

Content-Length: 0

 

 

--end msg--

10:42:33.262    pjsua_acc.c  ....SIP outbound status for acc 0 is not active

10:42:33.262    pjsua_acc.c  ....sip:satya at officesip.local: registration
success, s

10:42:33.262    pjsua_acc.c  ....Keep-alive timer started for acc 0,
destination:19

*** Register: code=200

Account Registered!!!

10:47:28.262   pjsua_core.c  .TX 491 bytes Request msg REGISTER/cseq=52069
(tdta0x105d7c8) to UDP 192.168.1.19:5060:

REGISTER sip:192.168.1.19 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj3sMI4vWN4ud0Lyhtz1o2ocQ9uf-DXac0

Max-Forwards: 70

From: <sip:satya@officesip.local>;tag=QYU-Ba-1-.RwGDFAibEUoN8a9FYbDSe7

To: <sip:satya at officesip.local>

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52069 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>

Expires: 300

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS

Content-Length:  0

 

 

--end msg--

10:47:28.265   pjsua_core.c  .RX 526 bytes Response msg
401/REGISTER/cseq=52069 (rdata0x105ac74) from UDP 192.168.1.19:5060:

SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj3sMI4vWN4ud0Lyhtz1o2ocQ9uf-DXac0

From:  <sip:satya@officesip.local>;tag=QYU-Ba-1-.RwGDFAibEUoN8a9FYbDSe7

To:  <sip:satya at officesip.local>;tag=4b336d6b35e84d6b8596ee8ceee6c230

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52069 REGISTER

x-Error-Details: No auth header

WWW-Authenticate: Digest
realm="officesip.local",nonce="aa45dd80b9ee8b45a666354ed733c2a9",qop="auth",
algorithm=MD5,stale=false,opaque="0000000d"

Content-Length: 0

 

 

--end msg--

10:47:28.265   pjsua_core.c  ....TX 767 bytes Request msg
REGISTER/cseq=52070 (tdta0x105d7c8) to UDP 192.168.1.19:5060:

REGISTER sip:192.168.1.19 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj7zjLtaIXdX4il6pFt5LMCxdV0SfOUkeA

Max-Forwards: 70

From: <sip:satya@officesip.local>;tag=QYU-Ba-1-.RwGDFAibEUoN8a9FYbDSe7

To: <sip:satya at officesip.local>

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52070 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>

Expires: 300

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS

Authorization: Digest username="satya", realm="officesip.local",
nonce="aa45dd80b9ee8b45a666354ed733c2a9", uri="sip:192.168.1.19",
response="c4da95fc9b93cd3eef0aaf0f2153865f", algorithm=MD5,
cnonce="Z8p-LsTh-wjpGswHh9AU0Y6P..AIlprD", opaque="0000000d", qop=auth,
nc=00000001

Content-Length:  0

 

 

--end msg--

10:47:28.267   pjsua_core.c  .RX 406 bytes Response msg
200/REGISTER/cseq=52070 (rdata0x105ac74) from UDP 192.168.1.19:5060:

SIP/2.0 200 OK

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj7zjLtaIXdX4il6pFt5LMCxdV0SfOUkeA

From:  <sip:satya@officesip.local>;tag=QYU-Ba-1-.RwGDFAibEUoN8a9FYbDSe7

To:  <sip:satya at officesip.local>;tag=e656301cfc4949e59f373e6207c02b64

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52070 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>;expires=300

Expires: 300

Content-Length: 0

 

 

--end msg--

10:47:28.267    pjsua_acc.c  ....SIP outbound status for acc 0 is not active

10:47:28.267    pjsua_acc.c  ....sip:satya at officesip.local: registration
success, status=200 (OK), will re-register in 300 seconds

10:47:28.267    pjsua_acc.c  ....Keep-alive timer started for acc 0,
destination:192.168.1.19:5060, interval:15s

*** Register: code=200

Account Registered!!!

10:52:23.268   pjsua_core.c  .TX 491 bytes Request msg REGISTER/cseq=52071
(tdta0x105d7c8) to UDP 192.168.1.19:5060:

REGISTER sip:192.168.1.19 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj49mxSlv2CqKVKgVrF6Zbh0I2t58Uhvlp

Max-Forwards: 70

From: <sip:satya@officesip.local>;tag=g8fYlrcbYi3tIUwPBJgrW.MWtL7bxhaq

To: <sip:satya at officesip.local>

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52071 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>

Expires: 300

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS

Content-Length:  0

 

 

--end msg--

10:52:23.270   pjsua_core.c  .RX 526 bytes Response msg
401/REGISTER/cseq=52071 (rdata0x105ac74) from UDP 192.168.1.19:5060:

SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj49mxSlv2CqKVKgVrF6Zbh0I2t58Uhvlp

From:  <sip:satya@officesip.local>;tag=g8fYlrcbYi3tIUwPBJgrW.MWtL7bxhaq

To:  <sip:satya at officesip.local>;tag=ff9fb21239a74f9b9270f96af69412ef

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52071 REGISTER

x-Error-Details: No auth header

WWW-Authenticate: Digest
realm="officesip.local",nonce="d4b7de527673362b7cb801d0bc824889",qop="auth",
algorithm=MD5,stale=false,opaque="0000000f"

Content-Length: 0

 

 

--end msg--

10:52:23.270   pjsua_core.c  ....TX 767 bytes Request msg
REGISTER/cseq=52072 (tdta0x105d7c8) to UDP 192.168.1.19:5060:

REGISTER sip:192.168.1.19 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPjjvepVxhUXSxhHwxqI64Zr3Wqe07qM3lk

Max-Forwards: 70

From: <sip:satya@officesip.local>;tag=g8fYlrcbYi3tIUwPBJgrW.MWtL7bxhaq

To: <sip:satya at officesip.local>

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52072 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>

Expires: 300

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS

Authorization: Digest username="satya", realm="officesip.local",
nonce="d4b7de527673362b7cb801d0bc824889", uri="sip:192.168.1.19",
response="ab53d5f7ba8d4020bccedd76205b933a", algorithm=MD5,
cnonce="Z8p-LsTh-wjpGswHh9AU0Y6P..AIlprD", opaque="0000000f", qop=auth,
nc=00000001

Content-Length:  0

 

 

--end msg--

10:52:23.272   pjsua_core.c  .RX 406 bytes Response msg
200/REGISTER/cseq=52072 (rdata0x105ac74) from UDP 192.168.1.19:5060:

SIP/2.0 200 OK

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPjjvepVxhUXSxhHwxqI64Zr3Wqe07qM3lk

From:  <sip:satya@officesip.local>;tag=g8fYlrcbYi3tIUwPBJgrW.MWtL7bxhaq

To:  <sip:satya at officesip.local>;tag=fdb127319a174750aebbad21a1ad4d23

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52072 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>;expires=300

Expires: 300

Content-Length: 0

 

 

--end msg--

10:52:23.273    pjsua_acc.c  ....SIP outbound status for acc 0 is not active

10:52:23.273    pjsua_acc.c  ....sip:satya at officesip.local: registration
success, status=200 (OK), will re-register in 300 seconds

10:52:23.273    pjsua_acc.c  ....Keep-alive timer started for acc 0,
destination:192.168.1.19:5060, interval:15s

*** Register: code=200

Account Registered!!!

10:57:18.273   pjsua_core.c  .TX 491 bytes Request msg REGISTER/cseq=52073
(tdta0x105d7c8) to UDP 192.168.1.19:5060:

REGISTER sip:192.168.1.19 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPjMoQOzca3nROKt42EUcsyfcsQpjb-xGdU

Max-Forwards: 70

From: <sip:satya@officesip.local>;tag=jcenMXA43a8vBfv7uTIX3XjI0U6E8ytV

To: <sip:satya at officesip.local>

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52073 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>

Expires: 300

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS

Content-Length:  0

 

 

--end msg--

10:57:18.276   pjsua_core.c  .RX 526 bytes Response msg
401/REGISTER/cseq=52073 (rdata0x105ac74) from UDP 192.168.1.19:5060:

SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPjMoQOzca3nROKt42EUcsyfcsQpjb-xGdU

From:  <sip:satya@officesip.local>;tag=jcenMXA43a8vBfv7uTIX3XjI0U6E8ytV

To:  <sip:satya at officesip.local>;tag=674b0df13f6840738a5086c06fc88bde

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52073 REGISTER

x-Error-Details: No auth header

WWW-Authenticate: Digest
realm="officesip.local",nonce="d382116f97b2642ba9e435d38f2ae1a9",qop="auth",
algorithm=MD5,stale=false,opaque="00000011"

Content-Length: 0

 

 

--end msg--

10:57:18.276   pjsua_core.c  ....TX 767 bytes Request msg
REGISTER/cseq=52074 (tdta0x105d7c8) to UDP 192.168.1.19:5060:

REGISTER sip:192.168.1.19 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj3SmRW7rUGs6KhVKyC77w7vcETq.mQzHk

Max-Forwards: 70

From: <sip:satya@officesip.local>;tag=jcenMXA43a8vBfv7uTIX3XjI0U6E8ytV

To: <sip:satya at officesip.local>

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52074 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>

Expires: 300

Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
REFER, MESSAGE, OPTIONS

Authorization: Digest username="satya", realm="officesip.local",
nonce="d382116f97b2642ba9e435d38f2ae1a9", uri="sip:192.168.1.19",
response="2fcb69e8a65a868d46840967bae3cf38", algorithm=MD5,
cnonce="Z8p-LsTh-wjpGswHh9AU0Y6P..AIlprD", opaque="00000011", qop=auth,
nc=00000001

Content-Length:  0

 

 

--end msg--

10:57:18.278   pjsua_core.c  .RX 406 bytes Response msg
200/REGISTER/cseq=52074 (rdata0x105ac74) from UDP 192.168.1.19:5060:

SIP/2.0 200 OK

Via: SIP/2.0/UDP
192.168.1.43:5090;rport;branch=z9hG4bKPj3SmRW7rUGs6KhVKyC77w7vcETq.mQzHk

From:  <sip:satya@officesip.local>;tag=jcenMXA43a8vBfv7uTIX3XjI0U6E8ytV

To:  <sip:satya at officesip.local>;tag=8cef48514bd840128287c26d4f056ec2

Call-ID: pdF17Klk3kq-7dxQ0fcE5M0z.ikoBUcY

CSeq: 52074 REGISTER

Contact: <sip:satya at 192.168.1.43:5090;ob>;expires=300

Expires: 300

Content-Length: 0

 

 

--end msg--

10:57:18.278    pjsua_acc.c  ....SIP outbound status for acc 0 is not active

10:57:18.278    pjsua_acc.c  ....sip:satya at officesip.local: registration
success, status=200 (OK), will re-register in 300 seconds

10:57:18.278    pjsua_acc.c  ....Keep-alive timer started for acc 0,
destination:192.168.1.19:5060, interval:15s

*** Register: code=200

Account Registered!!!

 

 

Thanks

Satya Sankar

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