<div dir="ltr"><div><div><div><div>From what I can see you are probably receiving the call at the "internal" sip profile (port 5060).<br></div>That profile requires authentication for incoming calls.<br></div>You would better receive the call at the "external" profile (port 5080), which purposeful do not ask for authentication for incoming calls.<br><br></div>Bottom line: configure your provider (or ask them) to send you calls at port 5080 (if the port is not specified, they will send the call to 5060, wrong port in your case).<br><br></div>-giovanni<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 January 2018 at 13:22, Raimundo Pérez Nieves <span dir="ltr"><<a href="mailto:raimundo.perez.cuba@gmail.com" target="_blank">raimundo.perez.cuba@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
i cannot figure out this problem. The incoming call is detailed by FS in Debug, but it doesn’t process throw DialPlan. Mi server IP is 165.227.33.23 and the incoming call is throw 64.34.236.149 as you can see. i get this behaviour:<br>
<br>
0595a3c8 2018-01-04 12:18:14.294341 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> [0595a3c8-a696-46b9-addd-<wbr>0eb3a9f0a2a3]<br>
0595a3c8 2018-01-04 12:18:14.294341 [DEBUG] switch_core_state_machine.c:<wbr>584 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) Running State Change CS_NEW (Cur 4 Tot 2448)<br>
0595a3c8 2018-01-04 12:18:14.294341 [DEBUG] sofia.c:9873 sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> receiving invite from <a href="http://64.34.236.149:5060" rel="noreferrer" target="_blank">64.34.236.149:5060</a> version: 1.6.19 -36-7a77e0b 64bit<br>
2018-01-04 12:18:14.294341 [DEBUG] sofia.c:10044 IP 64.34.236.149 Rejected by acl "domains". Falling back to Digest auth.<br>
nua_stack.c:573 nua_stack_signal() nua(0x7f3c180f5900): recv signal r_respond 407 Proxy Authentication Required<br>
0595a3c8 2018-01-04 12:18:14.294341 [DEBUG] switch_core_state_machine.c:<wbr>603 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State NEW<br>
send 858 bytes to udp/[64.34.236.149]:5060 at 12:18:14.306835:<br>
   ------------------------------<wbr>------------------------------<wbr>------------<br>
   SIP/2.0 407 Proxy Authentication Required<br>
   Via: SIP/2.0/UDP 64.34.236.149:5060;branch=<wbr>z9hG4bK6dcba8c3<br>
   From: "34600083765" <<a href="mailto:sip%3A34600083765@64.34.236.149">sip:34600083765@64.34.236.149</a><wbr>>;tag=as134ae412<br>
   To: <<a href="http://sip:5508813053301091@165.227.33.23:5060" rel="noreferrer" target="_blank">sip:5508813053301091@165.227.<wbr>33.23:5060</a>>;tag=2HZXytpDN07tN<br>
   Call-ID: <a href="http://7d898457242fdb9e02387bd91238036b@64.34.236.149:5060" rel="noreferrer" target="_blank">7d898457242fdb9e02387bd9123803<wbr>6b@64.34.236.149:5060</a><br>
   CSeq: 102 INVITE<br>
   User-Agent: FreeSWITCH-mod_sofia/1.6.19-<wbr>36-7a77e0b~64bit<br>
   Accept: application/sdp<br>
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
   Supported: timer, path, replaces<br>
   Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
   Proxy-Authenticate: Digest realm="64.34.236.149", nonce="9e208456-94e6-4cff-<wbr>9ed9-e4abcf1075aa", algorithm=MD5, qop="auth"<br>
   Content-Length: 0<br>
<br>
   ------------------------------<wbr>------------------------------<wbr>------------<br>
nta.c:6791 incoming_reply() nta: sent 407 Proxy Authentication Required for INVITE (102)<br>
nua_dialog.c:397 nua_dialog_usage_remove_at() nua(0x7f3c180f5900): removing session usage<br>
nua_session.c:4139 signal_call_state_change() nua(0x7f3c180f5900): call state changed: received -> terminated<br>
nua_stack.c:271 nua_stack_event() nua(0x7f3c180f5900): event i_state 407 Proxy Authentication Required<br>
nua_stack.c:271 nua_stack_event() nua(0x7f3c180f5900): event i_terminated 407 Proxy Authentication Required<br>
2018-01-04 12:18:14.294341 [DEBUG] sofia.c:2334 detaching session 0595a3c8-a696-46b9-addd-<wbr>0eb3a9f0a2a3<br>
nua_stack.c:569 nua_stack_signal() nua(0x7f3c180f5900): recv signal r_destroy<br>
recv 437 bytes from udp/[64.34.236.149]:5060 at 12:18:14.318108:<br>
   ------------------------------<wbr>------------------------------<wbr>------------<br>
   ACK <a href="http://sip:5508813053301091@165.227.33.23:5060" rel="noreferrer" target="_blank">sip:5508813053301091@165.227.<wbr>33.23:5060</a> SIP/2.0<br>
   Via: SIP/2.0/UDP 64.34.236.149:5060;branch=<wbr>z9hG4bK6dcba8c3<br>
   Max-Forwards: 70<br>
   From: "34600083765" <<a href="mailto:sip%3A34600083765@64.34.236.149">sip:34600083765@64.34.236.149</a><wbr>>;tag=as134ae412<br>
   To: <<a href="http://sip:5508813053301091@165.227.33.23:5060" rel="noreferrer" target="_blank">sip:5508813053301091@165.227.<wbr>33.23:5060</a>>;tag=2HZXytpDN07tN<br>
   Contact: <<a href="http://sip:34600083765@64.34.236.149:5060" rel="noreferrer" target="_blank">sip:34600083765@64.34.236.<wbr>149:5060</a>><br>
   Call-ID: <a href="http://7d898457242fdb9e02387bd91238036b@64.34.236.149:5060" rel="noreferrer" target="_blank">7d898457242fdb9e02387bd9123803<wbr>6b@64.34.236.149:5060</a><br>
   CSeq: 102 ACK<br>
   User-Agent: Tech Call Flow<br>
   Content-Length: 0<br>
<br>
   ------------------------------<wbr>------------------------------<wbr>------------<br>
nta.c:2880 agent_recv_request() nta: received ACK <a href="http://sip:5508813053301091@165.227.33.23:5060" rel="noreferrer" target="_blank">sip:5508813053301091@165.227.<wbr>33.23:5060</a> SIP/2.0 (CSeq 102)<br>
nta.c:3019 agent_recv_request() nta: ACK (102) is going to INVITE (102)<br>
nta.c:7134 _nta_incoming_timer() nta: timer I fired, terminate 407 response<br>
nta.c:7188 _nta_incoming_timer() nta_incoming_timer: 0/0 resent, 0/0 tout, 1/7 term, 1/8 free<br>
nta.c:7134 _nta_incoming_timer() nta: timer I fired, terminate 407 response<br>
nta.c:7188 _nta_incoming_timer() nta_incoming_timer: 0/0 resent, 0/0 tout, 1/6 term, 1/7 free<br>
nta.c:7134 _nta_incoming_timer() nta: timer I fired, terminate 407 response<br>
nta.c:7188 _nta_incoming_timer() nta_incoming_timer: 0/0 resent, 0/0 tout, 1/5 term, 1/6 free<br>
nta.c:7134 _nta_incoming_timer() nta: timer I fired, terminate 407 response<br>
nta.c:7188 _nta_incoming_timer() nta_incoming_timer: 0/0 resent, 0/0 tout, 1/4 term, 1/5 free<br>
nta.c:7159 _nta_incoming_timer() nta: timer J fired, terminate 401 response<br>
nta.c:7188 _nta_incoming_timer() nta_incoming_timer: 0/0 resent, 0/0 tout, 1/3 term, 1/4 free<br>
nta.c:7159 _nta_incoming_timer() nta: timer J fired, terminate 403 response<br>
nta.c:7188 _nta_incoming_timer() nta_incoming_timer: 0/0 resent, 0/0 tout, 1/2 term, 1/3 free<br>
6dcaead6 2018-01-04 12:18:20.814342 [WARNING] switch_core_state_machine.c:<wbr>687 6dcaead6-8ea6-416a-8656-<wbr>bca9ce8038a7 sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> Abandoned<br>
6dcaead6 2018-01-04 12:18:20.814342 [NOTICE] switch_core_state_machine.c:<wbr>690 Hangup sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> [CS_NEW] [WRONG_CALL_STATE]<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>584 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) Running State Change CS_HANGUP (Cur 4 Tot 2448)<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>850 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) Callstate Change DOWN -> HANGUP<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>852 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State HANGUP<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] mod_sofia.c:438 Channel sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> hanging up, cause: WRONG_CALL_STATE<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:60 sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> Standard HANGUP, cause: WRONG_CALL_STATE<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>852 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State HANGUP going to sleep<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>619 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State Change CS_HANGUP -> CS_REPORTING<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>584 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) Running State Change CS_REPORTING (Cur 4 Tot 2448)<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>938 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State REPORTING<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>174 sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> Standard REPORTING, cause: WRONG_CALL_STATE<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>938 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State REPORTING going to sleep<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>610 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State Change CS_REPORTING -> CS_DESTROY<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_session.c:1665 Session 2445 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) Locked, Waiting on external entities<br>
6dcaead6 2018-01-04 12:18:20.814342 [NOTICE] switch_core_session.c:1683 Session 2445 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) Ended<br>
6dcaead6 2018-01-04 12:18:20.814342 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> [CS_DESTROY]<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>741 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) Running State Change CS_DESTROY (Cur 3 Tot 2448)<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>751 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State DESTROY<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] mod_sofia.c:343 sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> SOFIA DESTROY<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>181 sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@64.<wbr>34.236.149</a> Standard DESTROY<br>
6dcaead6 2018-01-04 12:18:20.814342 [DEBUG] switch_core_state_machine.c:<wbr>751 (sofia/internal/<a href="mailto:34600083765@64.34.236.149">34600083765@<wbr>64.34.236.149</a>) State DESTROY going to sleep<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span><span><br>Sincerely,<br></span><span><font color="#888888"><br>
Giovanni Maruzzelli<br>
OpenTelecom.IT</font></span><br><span>cell: +39 347 266 56 18<span><font color="#888888"><br></font></span></span></span></div></div></div>
</div>