- Joined
- Jan 24, 2021
- Messages
- 22
- Reaction score
- 2
I'm trying to work out why my android app can't make calls.
It appears to provision correctly, and shows "Ready for calls" in the top right.
Dialing a number (local extension, or external number) fails with "Not found".
Comparing the activity logs, I can see that for some reason, calls from the app fail to find an extension, or fail to match any outbound rule. Calls from the web client work fine.
Here is the log for the Android client which FAILS to call a local extension:
-------------------------------------------------------------------------------------------------
05/06/2021 1:46:34 PM - [CM503014]: Call(C:16): No known route from Extn:232 to target: <sip:001@FQDN:0/UDP>
05/06/2021 1:46:34 PM - Call(C:16): from Extn:232 to 001 doesn't match any known extension number.
05/06/2021 1:46:34 PM - [CM503010]: Call(C:16): Making route(s) from Extn:232 to <sip:001@FQDN:0/UDP>
05/06/2021 1:46:34 PM - [CM505001]: Endpoint Extn:232: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [3CXPhone for Android 16.6.2.89] PBX contact: [sip:[email protected]:5060]
05/06/2021 1:46:34 PM - [CM500002]: Call(C:16): Info on incoming INVITE from Extn:232:
Invite-IN Recv Req INVITE from 127.0.0.1:5080 tid=Pjba3a13b3-4a87-460f-83e4-dd84aaaeafc8 Call-ID=8f417d3d-1017-4f23-a136-2c0a41fc0c33:
INVITE sip:[email protected]:5060;transport=UDP;tag3cx=4dd7c54c-c577-4cb5-8687-2a8bbcb1dc42 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bK-524287-2---Pjba3a13b3-4a87-460f-83e4-dd84aaaeafc8;rport=5080
Via: SIP/2.0/UDP [::ffff:IP_ADDR]:38254;branch=z9hG4bK-524287-1---tunneltid;rport;tnlid=clnt.0-b56c23f8-20ac-44a8-965c-9df4bdb3af6d_19517955
Via: SIP/2.0/TCP 127.0.0.1:50195;rport;branch=z9hG4bKPjba3a13b3-4a87-460f-83e4-dd84aaaeafc8;alias
Max-Forwards: 69
Record-Route: <sip:[email protected]:5080;user=proxy;uri=clnt.0-b56c23f8-20ac-44a8-965c-9df4bdb3af6d_19517955>
Contact: "Manu Evans" <sip:[email protected]:5060;rinstance=0-b56c23f8-20ac-44a8-965c-9df4bdb3af6d>
To: <sip:001@FQDN;tag3cx=4dd7c54c-c577-4cb5-8687-2a8bbcb1dc42>
From: "Manu Evans"<sip:[email protected]>;tag=56ab998c-6cc3-4734-a535-da3546caa959
Call-ID: 8f417d3d-1017-4f23-a136-2c0a41fc0c33
CSeq: 9822 INVITE
Session-Expires: 1800
Min-SE: 90
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Type: application/sdp
Proxy-Authorization: Digest username="Ztq73gig0L",realm="3CXPhoneSystem",nonce="414d53596093669911:1e26652a7069a0db07032170be67c0ed",uri="sip:001@FQDN;tag3cx=4dd7c54c-c577-4cb5-8687-2a8bbcb1dc42",response="2e4c906d6276fa2e5f94443e4c87486f",algorithm=MD5
Supported: replaces, 100rel, timer, norefersub
User-Agent: 3CXPhone for Android 16.6.2.89
Content-Length: 464
v=0
o=- 3829261596 3829261596 IN IP4 192.168.0.46
s=pjmedia
c=IN IP4 127.0.0.1
b=AS:117
t=0 0
a=X-nat:0
m=audio 14100 RTP/AVP 120 9 8 0 3 18 96
c=IN IP4 127.0.0.1
b=TIAS:96000
b=AS:117
a=sendrecv
a=rtpmap:120 opus/48000/2
a=fmtp:120 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
m=video 0 RTP/AVP 31
c=IN IP4 127.0.0.1
And here is the log for comparison from the web client which SUCCEEDS to make the call:
------------------------------------------------------------------------------------------------------------------------
05/06/2021 1:47:41 PM - [CM503002]: Call(C:17): Alerting Extn:001 by contact <sip:[email protected]:33959/tcp>
05/06/2021 1:47:41 PM - [CM503025]: Call(C:17): Calling T:Extn:001@[Dev:sip:[email protected]:33959;transport=tcp;avaya-sc-enabled] for L:17.1[Extn:232]
05/06/2021 1:47:41 PM - [CM503027]: Call(C:17): From: Extn:232 ("Evans, Manu" <sip:[email protected]:0>) to T:Extn:001@[Dev:sip:[email protected]:33959;transport=tcp;avaya-sc-enabled]
05/06/2021 1:47:41 PM - [CM503004]: Call(C:17): Route 1: from L:17.1[Extn:232] to T:Extn:001@[Dev:sip:[email protected]:33959;transport=tcp;avaya-sc-enabled]
05/06/2021 1:47:41 PM - [Flow] No office hours set, office hours assumed
05/06/2021 1:47:41 PM - [Flow] Call(C:17): has built target endpoint: Extn:001 for call from L:17.1[Extn:232]
05/06/2021 1:47:41 PM - [Flow] Target endpoint for 001 is Extn:001
05/06/2021 1:47:41 PM - [CM503010]: Call(C:17): Making route(s) from Extn:232 to <sip:[email protected]:5060/UDP>
05/06/2021 1:47:41 PM - [CM505001]: Endpoint Extn:232: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [3CX WebRTC proxy] PBX contact: [sip:[email protected]:5060]
05/06/2021 1:47:41 PM - [CM500002]: Call(C:17): Info on incoming INVITE from Extn:232:
Invite-IN Recv Req INVITE from 127.0.0.1:5063 tid=4ab4ea69cbcbe979 Call-ID=Qn5Fuad-rgVAyBKZp1eTvw..:
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5063;branch=z9hG4bK-524287-1---4ab4ea69cbcbe979;rport=5063
Max-Forwards: 70
Contact: <sip:[email protected]:5063;rinstance=9fe555e5bde8e631>
To: <sip:[email protected]:5060>
From: "Evans, Manu"<sip:[email protected]>;tag=ad8fa54e
Call-ID: Qn5Fuad-rgVAyBKZp1eTvw..
CSeq: 2 INVITE
Subject:
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Proxy-Authorization: Digest username="Ztq73gig0L",realm="3CXPhoneSystem",nonce="414d5359609366dc51:9d5d5a798b60cb23453a949356d1a511",uri="sip:[email protected]:5060",response="db9cf4409049bd1bf997dbc6ff712dcc",algorithm=MD5
Supported: replaces
User-Agent: 3CX WebRTC proxy
Content-Length: 595
v=0
o=3cxVCE 18446744071954281983 1238651491 IN IP4 127.0.0.1
s=3cxVCE Audio Call
c=IN IP4 127.0.0.1
t=0 0
m=audio 8514 RTP/AVP 111 103 104 9 0 8 106 105 13 110 112 113 126
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ptime:20
a=sendrecv
There's a few things that look odd to me in both logs.
The hostnames look odd for a start...
In the failing log it says "From: "Manu Evans"<sip:[email protected]>" which shows the local LAN IP for the PBX, not accessible from the internet.
In the succeeding log it says: "From: "Evans, Manu"<sip:[email protected]>", I'm not sure how localhost is useful in an invite header? ...but it seems to work.
A bit further on, the failing log says: "Making route(s) from Extn:232 to <sip:001@FQDN:0/UDP>" it shows the public-facing hostname which seems right, but port 0 seems odd?
The succeeding log says: "Making route(s) from Extn:232 to <sip:[email protected]:5060/UDP>" still the odd use of localhost, but the port is correct... and this works.
All that said, it doesn't seem to be a problem with firewall or access to the server, because the PBX receives the INVITE from the Android client (I am able to paste these logs), so the problem seems to happen a step later...
Please help?
It appears to provision correctly, and shows "Ready for calls" in the top right.
Dialing a number (local extension, or external number) fails with "Not found".
Comparing the activity logs, I can see that for some reason, calls from the app fail to find an extension, or fail to match any outbound rule. Calls from the web client work fine.
Here is the log for the Android client which FAILS to call a local extension:
-------------------------------------------------------------------------------------------------
05/06/2021 1:46:34 PM - [CM503014]: Call(C:16): No known route from Extn:232 to target: <sip:001@FQDN:0/UDP>
05/06/2021 1:46:34 PM - Call(C:16): from Extn:232 to 001 doesn't match any known extension number.
05/06/2021 1:46:34 PM - [CM503010]: Call(C:16): Making route(s) from Extn:232 to <sip:001@FQDN:0/UDP>
05/06/2021 1:46:34 PM - [CM505001]: Endpoint Extn:232: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [3CXPhone for Android 16.6.2.89] PBX contact: [sip:[email protected]:5060]
05/06/2021 1:46:34 PM - [CM500002]: Call(C:16): Info on incoming INVITE from Extn:232:
Invite-IN Recv Req INVITE from 127.0.0.1:5080 tid=Pjba3a13b3-4a87-460f-83e4-dd84aaaeafc8 Call-ID=8f417d3d-1017-4f23-a136-2c0a41fc0c33:
INVITE sip:[email protected]:5060;transport=UDP;tag3cx=4dd7c54c-c577-4cb5-8687-2a8bbcb1dc42 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bK-524287-2---Pjba3a13b3-4a87-460f-83e4-dd84aaaeafc8;rport=5080
Via: SIP/2.0/UDP [::ffff:IP_ADDR]:38254;branch=z9hG4bK-524287-1---tunneltid;rport;tnlid=clnt.0-b56c23f8-20ac-44a8-965c-9df4bdb3af6d_19517955
Via: SIP/2.0/TCP 127.0.0.1:50195;rport;branch=z9hG4bKPjba3a13b3-4a87-460f-83e4-dd84aaaeafc8;alias
Max-Forwards: 69
Record-Route: <sip:[email protected]:5080;user=proxy;uri=clnt.0-b56c23f8-20ac-44a8-965c-9df4bdb3af6d_19517955>
Contact: "Manu Evans" <sip:[email protected]:5060;rinstance=0-b56c23f8-20ac-44a8-965c-9df4bdb3af6d>
To: <sip:001@FQDN;tag3cx=4dd7c54c-c577-4cb5-8687-2a8bbcb1dc42>
From: "Manu Evans"<sip:[email protected]>;tag=56ab998c-6cc3-4734-a535-da3546caa959
Call-ID: 8f417d3d-1017-4f23-a136-2c0a41fc0c33
CSeq: 9822 INVITE
Session-Expires: 1800
Min-SE: 90
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Type: application/sdp
Proxy-Authorization: Digest username="Ztq73gig0L",realm="3CXPhoneSystem",nonce="414d53596093669911:1e26652a7069a0db07032170be67c0ed",uri="sip:001@FQDN;tag3cx=4dd7c54c-c577-4cb5-8687-2a8bbcb1dc42",response="2e4c906d6276fa2e5f94443e4c87486f",algorithm=MD5
Supported: replaces, 100rel, timer, norefersub
User-Agent: 3CXPhone for Android 16.6.2.89
Content-Length: 464
v=0
o=- 3829261596 3829261596 IN IP4 192.168.0.46
s=pjmedia
c=IN IP4 127.0.0.1
b=AS:117
t=0 0
a=X-nat:0
m=audio 14100 RTP/AVP 120 9 8 0 3 18 96
c=IN IP4 127.0.0.1
b=TIAS:96000
b=AS:117
a=sendrecv
a=rtpmap:120 opus/48000/2
a=fmtp:120 useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
m=video 0 RTP/AVP 31
c=IN IP4 127.0.0.1
And here is the log for comparison from the web client which SUCCEEDS to make the call:
------------------------------------------------------------------------------------------------------------------------
05/06/2021 1:47:41 PM - [CM503002]: Call(C:17): Alerting Extn:001 by contact <sip:[email protected]:33959/tcp>
05/06/2021 1:47:41 PM - [CM503025]: Call(C:17): Calling T:Extn:001@[Dev:sip:[email protected]:33959;transport=tcp;avaya-sc-enabled] for L:17.1[Extn:232]
05/06/2021 1:47:41 PM - [CM503027]: Call(C:17): From: Extn:232 ("Evans, Manu" <sip:[email protected]:0>) to T:Extn:001@[Dev:sip:[email protected]:33959;transport=tcp;avaya-sc-enabled]
05/06/2021 1:47:41 PM - [CM503004]: Call(C:17): Route 1: from L:17.1[Extn:232] to T:Extn:001@[Dev:sip:[email protected]:33959;transport=tcp;avaya-sc-enabled]
05/06/2021 1:47:41 PM - [Flow] No office hours set, office hours assumed
05/06/2021 1:47:41 PM - [Flow] Call(C:17): has built target endpoint: Extn:001 for call from L:17.1[Extn:232]
05/06/2021 1:47:41 PM - [Flow] Target endpoint for 001 is Extn:001
05/06/2021 1:47:41 PM - [CM503010]: Call(C:17): Making route(s) from Extn:232 to <sip:[email protected]:5060/UDP>
05/06/2021 1:47:41 PM - [CM505001]: Endpoint Extn:232: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [3CX WebRTC proxy] PBX contact: [sip:[email protected]:5060]
05/06/2021 1:47:41 PM - [CM500002]: Call(C:17): Info on incoming INVITE from Extn:232:
Invite-IN Recv Req INVITE from 127.0.0.1:5063 tid=4ab4ea69cbcbe979 Call-ID=Qn5Fuad-rgVAyBKZp1eTvw..:
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5063;branch=z9hG4bK-524287-1---4ab4ea69cbcbe979;rport=5063
Max-Forwards: 70
Contact: <sip:[email protected]:5063;rinstance=9fe555e5bde8e631>
To: <sip:[email protected]:5060>
From: "Evans, Manu"<sip:[email protected]>;tag=ad8fa54e
Call-ID: Qn5Fuad-rgVAyBKZp1eTvw..
CSeq: 2 INVITE
Subject:
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Proxy-Authorization: Digest username="Ztq73gig0L",realm="3CXPhoneSystem",nonce="414d5359609366dc51:9d5d5a798b60cb23453a949356d1a511",uri="sip:[email protected]:5060",response="db9cf4409049bd1bf997dbc6ff712dcc",algorithm=MD5
Supported: replaces
User-Agent: 3CX WebRTC proxy
Content-Length: 595
v=0
o=3cxVCE 18446744071954281983 1238651491 IN IP4 127.0.0.1
s=3cxVCE Audio Call
c=IN IP4 127.0.0.1
t=0 0
m=audio 8514 RTP/AVP 111 103 104 9 0 8 106 105 13 110 112 113 126
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ptime:20
a=sendrecv
There's a few things that look odd to me in both logs.
The hostnames look odd for a start...
In the failing log it says "From: "Manu Evans"<sip:[email protected]>" which shows the local LAN IP for the PBX, not accessible from the internet.
In the succeeding log it says: "From: "Evans, Manu"<sip:[email protected]>", I'm not sure how localhost is useful in an invite header? ...but it seems to work.
A bit further on, the failing log says: "Making route(s) from Extn:232 to <sip:001@FQDN:0/UDP>" it shows the public-facing hostname which seems right, but port 0 seems odd?
The succeeding log says: "Making route(s) from Extn:232 to <sip:[email protected]:5060/UDP>" still the odd use of localhost, but the port is correct... and this works.
All that said, it doesn't seem to be a problem with firewall or access to the server, because the PBX receives the INVITE from the Android client (I am able to paste these logs), so the problem seems to happen a step later...
Please help?