Unable to Receive Any Calls

Status
Not open for further replies.

nabor

New Member
Sep 24, 2018
11
0
1
35
After set my gateway, I am able to make outbound calls. However, I cannot let others call my number and during this period, there is nothing appended to freeswitch.log. Is that a SIP problem?
 
Last edited:

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
Not a clue, not enough info. Post some logs of the calls happening use fs_cli
 

nabor

New Member
Sep 24, 2018
11
0
1
35
Not a clue, not enough info. Post some logs of the calls happening use fs_cli

That's the problem, after I enabled the sip debug (sofia global siptrace on), I can only see outgoing call logs. But there is no any log for incoming calls. And the incoming calls are interrupted immediately.
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
See what is happening then using sngrep, if the calls are hitting the pbx there will be some sort of log. They could be getting blocked ate the firewall level but you should see something, even if its only an initial INVITE with sngrep
 

nabor

New Member
Sep 24, 2018
11
0
1
35
See what is happening then using sngrep, if the calls are hitting the pbx there will be some sort of log. They could be getting blocked ate the firewall level but you should see something, even if its only an initial INVITE with sngrep

Thanks for replying. I used sngrep as you suggested. Firstly I make a call from a currently working fusionpbx server (Server A) to the one which is having this issue (Server B). I can see logs on the Server A and the calls were rejected after ringing several times. ( If I made a call from my mobile phone, it didn't ring the phone at all!). However, sngrep was still empty on the Server B.

Below is the sngrep log on Server A

sip1.png

sip2.png
 

nabor

New Member
Sep 24, 2018
11
0
1
35
See what is happening then using sngrep, if the calls are hitting the pbx there will be some sort of log. They could be getting blocked ate the firewall level but you should see something, even if its only an initial INVITE with sngrep
Hi Daz,

I tuned my firewall and I finally can see some debug logs:
Code:
 ------------------------------------------------------------------------
recv 1198 bytes from udp/[182.154.16.150]:5060 at 11:35:39.437735:
   ------------------------------------------------------------------------
   INVITE sip:gw+47debd5a-d8fb-40b4-8a24-ad6efd7bda8d@202.37.129.241:5080;gw=47debd5a-d8fb-40b4-8a24-ad6efd7bda8d;transport=udp SIP/2.0
   From: <sip:1020287719@as.wxcnz.net>;tag=96149ab6-13c4-5c36773b-5a0158bb-47c99899
   To: "Peter Wadams" <sip:99052911@as.wxcnz.net;gw=47debd5a-d8fb-40b4-8a24-ad6efd7bda8d;rinstance=5c3676bd7397a946>
   Call-ID: BW1135394311001192055737127@10.251.1.13
   CSeq: 1 INVITE
   Via: SIP/2.0/UDP 182.154.16.150:5060;branch=z9hG4bK-21ae62-5c36773b-5a0158bb-5caac75e
   Supported: 100rel
   Recv-Info: x-broadworks-client-session-info
   X-BroadWorks-Correlation-Info: 2563822:1
   Accept: application/btbc-session-info,application/dtmf-relay,application/media_control+xml,application/sdp,multipart/mixed
   Max-Forwards: 59
   Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY,UPDATE
   Contact: <sip:1020287719@as.wxcnz.net:5060;maddr=182.154.16.150;transport=udp>
   Content-Type: application/sdp
   Content-Length: 263

   v=0
   o=BroadWorks 82696149 1 IN IP4 182.154.16.150
   s=-
   c=IN IP4 182.154.16.150
   t=0 0
   m=audio 36822 RTP/AVP 8 0 101
   a=rtpmap:8 PCMA/8000
   a=rtpmap:0 PCMU/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-15
   a=ptime:20
   a=sqn:0
   a=cdsc:1 image udptl t38
   ------------------------------------------------------------------------
2019-01-10 11:35:39.424780 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1020287719@as.wxcnz.net [6cb1880b-52a0-4753-905d-89eef32baae0]
2019-01-10 11:35:39.424780 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1020287719@as.wxcnz.net) Running State Change CS_NEW (Cur 1 Tot 61)
2019-01-10 11:35:39.424780 [DEBUG] sofia.c:10080 sofia/internal/1020287719@as.wxcnz.net receiving invite from 182.154.16.150:5060 version: 1.8.2 -3-a98a958ac3 64bit
2019-01-10 11:35:39.424780 [DEBUG] sofia.c:10251 IP 182.154.16.150 Rejected by acl "domains". Falling back to Digest auth.
send 918 bytes to udp/[182.154.16.150]:5060 at 11:35:39.438661:
   ------------------------------------------------------------------------
   SIP/2.0 407 Proxy Authentication Required
   Via: SIP/2.0/UDP 182.154.16.150:5060;branch=z9hG4bK-21ae62-5c36773b-5a0158bb-5caac75e
   From: <sip:1020287719@as.wxcnz.net>;tag=96149ab6-13c4-5c36773b-5a0158bb-47c99899
   To: "Peter Wadams" <sip:99052911@as.wxcnz.net;gw=47debd5a-d8fb-40b4-8a24-ad6efd7bda8d;rinstance=5c3676bd7397a946>;tag=pX9UjrjUrZjec
   Call-ID: BW1135394311001192055737127@10.251.1.13
   CSeq: 1 INVITE
   User-Agent: FreeSWITCH
   Accept: application/sdp
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, path, replaces
   Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
   Proxy-Authenticate: Digest realm="as.wxcnz.net", nonce="c3e87dd9-025e-42ab-8152-ad9a84c78061", algorithm=MD5, qop="auth"
   Content-Length: 0

   ------------------------------------------------------------------------
2019-01-10 11:35:39.424780 [DEBUG] sofia.c:2413 detaching session 6cb1880b-52a0-4753-905d-89eef32baae0
2019-01-10 11:35:39.424780 [WARNING] sofia_reg.c:1793 SIP auth challenge (INVITE) on sofia profile 'internal' for [99052911@as.wxcnz.net] from ip 182.154.16.150
2019-01-10 11:35:39.424780 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/1020287719@as.wxcnz.net) State NEW
recv 615 bytes from udp/[182.154.16.150]:5060 at 11:35:39.442865:
   ------------------------------------------------------------------------
   ACK sip:gw+47debd5a-d8fb-40b4-8a24-ad6efd7bda8d@202.37.129.241:5080;gw=47debd5a-d8fb-40b4-8a24-ad6efd7bda8d;transport=udp SIP/2.0
   From: <sip:1020287719@as.wxcnz.net>;tag=96149ab6-13c4-5c36773b-5a0158bb-47c99899
   To: "Peter Wadams" <sip:99052911@as.wxcnz.net;gw=47debd5a-d8fb-40b4-8a24-ad6efd7bda8d;rinstance=5c3676bd7397a946>;tag=pX9UjrjUrZjec
   Call-ID: BW1135394311001192055737127@10.251.1.13
   CSeq: 1 ACK
   Via: SIP/2.0/UDP 182.154.16.150:5060;branch=z9hG4bK-21ae62-5c36773b-5a0158bb-5caac75e
   Max-Forwards: 69
   Contact: <sip:1020287719@as.wxcnz.net:5060;maddr=182.154.16.150;transport=udp>
   Content-Length: 0

2019-01-10 11:35:49.444768 [NOTICE] switch_core_state_machine.c:690 Hangup sofia/internal/1020287719@as.wxcnz.net [CS_NEW] [WRONG_CALL_STATE]
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1020287719@as.wxcnz.net) Running State Change CS_HANGUP (Cur 1 Tot 61)
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:847 (sofia/internal/1020287719@as.wxcnz.net) Callstate Change DOWN -> HANGUP
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/1020287719@as.wxcnz.net) State HANGUP
2019-01-10 11:35:49.444768 [DEBUG] mod_sofia.c:449 Channel sofia/internal/1020287719@as.wxcnz.net hanging up, cause: WRONG_CALL_STATE
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:60 sofia/internal/1020287719@as.wxcnz.net Standard HANGUP, cause: WRONG_CALL_STATE
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/1020287719@as.wxcnz.net) State HANGUP going to sleep
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/1020287719@as.wxcnz.net) State Change CS_HANGUP -> CS_REPORTING
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1020287719@as.wxcnz.net) Running State Change CS_REPORTING (Cur 1 Tot 61)
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/1020287719@as.wxcnz.net) State REPORTING
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:174 sofia/internal/1020287719@as.wxcnz.net Standard REPORTING, cause: WRONG_CALL_STATE
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/1020287719@as.wxcnz.net) State REPORTING going to sleep
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/1020287719@as.wxcnz.net) State Change CS_REPORTING -> CS_DESTROY
2019-01-10 11:35:49.444768 [DEBUG] switch_core_session.c:1714 Session 61 (sofia/internal/1020287719@as.wxcnz.net) Locked, Waiting on external entities
2019-01-10 11:35:49.444768 [NOTICE] switch_core_session.c:1732 Session 61 (sofia/internal/1020287719@as.wxcnz.net) Ended
2019-01-10 11:35:49.444768 [NOTICE] switch_core_session.c:1736 Close Channel sofia/internal/1020287719@as.wxcnz.net [CS_DESTROY]
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:738 (sofia/internal/1020287719@as.wxcnz.net) Running State Change CS_DESTROY (Cur 0 Tot 61)
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/1020287719@as.wxcnz.net) State DESTROY
2019-01-10 11:35:49.444768 [DEBUG] mod_sofia.c:354 sofia/internal/1020287719@as.wxcnz.net SOFIA DESTROY
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:181 sofia/internal/1020287719@as.wxcnz.net Standard DESTROY
2019-01-10 11:35:49.444768 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/1020287719@as.wxcnz.net) State DESTROY going to sleep

It seems FR didn't know how to deal with the number. However, I have defined a policy to ring my ext in the destination setting.
 

man

Member
Oct 22, 2020
34
0
6
26
@DigitalDaz
Hi how can I resolve this error. incoming call is getting rejected

please help me
 

Attachments

  • 1603458640638.png
    1603458640638.png
    16.4 KB · Views: 9

man

Member
Oct 22, 2020
34
0
6
26
sorry for late response
I did . can you please check I have added correctly or not
Please help me
 

Attachments

  • 1603516470673.png
    1603516470673.png
    53.8 KB · Views: 31

man

Member
Oct 22, 2020
34
0
6
26
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 162.212.218.50;branch=z9hG4bKd6cb.926848e2c4ae0127b0bf7be8f08037d6.0
Via: SIP/2.0/UDP 162.212.219.233:5004;received=162.212.219.233;rport=5004;branch=z9hG4bKNprcp50S8104B
From: "8003713030" <sip:8003713030@162.212.219.233>;tag=Uv4Xe429D3mXD
To: <sip:18003713030@45.34.23.218:5080>;tag=jrgK0a85FyBaB
Call-ID: cca18892-906d-1239-5c92-fa163ead7dee
CSeq: 27208558 INVITE
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Proxy-Authenticate: Digest realm="45.34.23.218", nonce="8ab1713b-ca73-4e39-a5e0-0a8a39738764", algorithm=MD5, qop="auth"
Content-Length: 0

this is the error I am getting

@DigitalDaz
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
The server IP should be in the domain field and as I have said, have you reloaded acl?
 

man

Member
Oct 22, 2020
34
0
6
26
still having same issue
 

Attachments

  • 1603542942706.png
    1603542942706.png
    37.2 KB · Views: 38
  • 1603543214770.png
    1603543214770.png
    384.8 KB · Views: 37
Status
Not open for further replies.