[Spce-user] Problem with peer inbound calls

Fabrizio Cuseo f.cuseo at panservice.it
Fri Sep 12 07:30:43 EDT 2025


Good morning all.
I am trying sipwise CE, and I have this problem:

- 3 peers; one is asterisk, one is fusionpbx and the other is a carrier

Incoming call from asterisk to fusionpbx
- from the first peer (asterisk) I receive the inbound call  
- the call is forwarded to another peer (fusionpbx) via LNB query. All works fine

Outgoing call from fusionpbx to the carrier
- from the second peer (fusionpbx) I receive the inbound call
- Kamailio asked me authentication, and the call is rejected


On the "fusionpbx" peer, I have the inbound rules:
- To-URI:  ^sip:.+
- From-Uri: ^sip:.+
- To-User: ^sip:.+


This is the kamailio-proxy.log


Sep 12 13:21:15.618068 spce proxy[140123]: NOTICE: DEFAULT_ROUTE <script>: New request on proxy - M=INVITE R=«sip:390773470219 at 172.16.41.10» F=«sip:faxserver at 172.16.41.10» T=«sip:390773470219 at 172.16.41.10» IP=«172.16.41.21»:«5080» («127.0.0.1»:«5060») ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH' DESTIP=«127.0.0.1»:«5062»
Sep 12 13:21:15.618224 spce proxy[140123]: NOTICE: DEFAULT_ROUTE <script>: Sending reply S=100 Trying M=INVITE fs='«127.0.0.1»:«5062»' du='«127.0.0.1»:«5060»' - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.618297 spce proxy[140123]: INFO: DEFAULT_ROUTE <script>: processing INVITE - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.618364 spce proxy[140123]: DEBUG: ROUTE_CHECK_TEL_URI <script>: x_hdr(From):«<sip:faxserver at 172.16.41.10>;tag=HSFpF56tDZt3p» - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.618426 spce proxy[140123]: DEBUG: DEFAULT_ROUTE <script>: pua_dialoginfo: Disable PUBLISH messages to caller setting FLB_PRESENCE_CALLER flag - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.618488 spce proxy[140123]: DEBUG: DEFAULT_ROUTE <script>: pua_dialoginfo: Disable PUBLISH messages to callee setting FLB_PRESENCE_CALLEE flag - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.620574 spce proxy[140123]: DEBUG: ROUTE_INVITE <script>: pua_dialoginfo: Set flag presence to activate the publish messages - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.620756 spce proxy[140123]: NOTICE: ROUTE_LOAD_CALLEE_DOMAIN_PREF <script>: Load domain preferences for callee '«172.16.41.10»' - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.624126 spce proxy[140123]: INFO: ROUTE_CLEAR_CALLEE_DOMAIN_PREF <script>: Clean domain preferences for callee - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.624528 spce proxy[140123]: INFO: ROUTE_FIND_CALLER <script>: +++++++++++++++ find caller - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.624657 spce proxy[140123]: DEBUG: ROUTE_FIND_CALLER <script>: pua_dialoginfo: Set by default puburis_caller to a fake (random) value and disable PUBLISH messages to caller setting FLB_PRESENCE_CALLER flag - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.625118 spce proxy[140123]: NOTICE: ROUTE_AUTH <script>: Authentication failed, no credentials - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH' Auth=«<null>»
Sep 12 13:21:15.625404 spce proxy[140123]: NOTICE: ROUTE_AUTH <script>: Sending reply S=407 fs='«127.0.0.1»:«5062»' du='«127.0.0.1»:«5060»' - ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.625541 spce proxy[140123]: INFO: ROUTE_EXIT <script>: INVITE processed - ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989»
Sep 12 13:21:15.625666 spce proxy[140123]: INFO: ROUTE_EXIT <script>: Runtime for request M=INVITE was 8796 usec - ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989»
Sep 12 13:21:15.627829 spce proxy[140118]: NOTICE: sl:filtered-ack <script>: New request on proxy - M=ACK R=«sip:390773470219 at 172.16.41.10» F=«sip:faxserver at 172.16.41.10» T=«sip:390773470219 at 172.16.41.10» IP=«<null>»:«<null>» («127.0.0.1»:«5060») ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='<null>' DESTIP=«127.0.0.1»:«5062»
Sep 12 13:21:15.636971 spce proxy[140119]: NOTICE: DEFAULT_ROUTE <script>: New request on proxy - M=INVITE R=«sip:390773470219 at 172.16.41.10» F=«sip:faxserver at 172.16.41.10» T=«sip:390773470219 at 172.16.41.10» IP=«172.16.41.21»:«5080» («127.0.0.1»:«5060») ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH' DESTIP=«127.0.0.1»:«5062»
Sep 12 13:21:15.637188 spce proxy[140119]: NOTICE: DEFAULT_ROUTE <script>: Sending reply S=100 Trying M=INVITE fs='«127.0.0.1»:«5062»' du='«127.0.0.1»:«5060»' - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.637329 spce proxy[140119]: INFO: DEFAULT_ROUTE <script>: processing INVITE - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.637493 spce proxy[140119]: DEBUG: ROUTE_CHECK_TEL_URI <script>: x_hdr(From):«<sip:faxserver at 172.16.41.10>;tag=HSFpF56tDZt3p» - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.637634 spce proxy[140119]: DEBUG: DEFAULT_ROUTE <script>: pua_dialoginfo: Disable PUBLISH messages to caller setting FLB_PRESENCE_CALLER flag - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.637744 spce proxy[140119]: DEBUG: DEFAULT_ROUTE <script>: pua_dialoginfo: Disable PUBLISH messages to callee setting FLB_PRESENCE_CALLEE flag - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.639086 spce proxy[140119]: DEBUG: ROUTE_INVITE <script>: pua_dialoginfo: Set flag presence to activate the publish messages - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.639218 spce proxy[140119]: NOTICE: ROUTE_LOAD_CALLEE_DOMAIN_PREF <script>: Load domain preferences for callee '«172.16.41.10»' - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.641953 spce proxy[140119]: INFO: ROUTE_CLEAR_CALLEE_DOMAIN_PREF <script>: Clean domain preferences for callee - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.642298 spce proxy[140119]: INFO: ROUTE_FIND_CALLER <script>: +++++++++++++++ find caller - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.642398 spce proxy[140119]: DEBUG: ROUTE_FIND_CALLER <script>: pua_dialoginfo: Set by default puburis_caller to a fake (random) value and disable PUBLISH messages to caller setting FLB_PRESENCE_CALLER flag - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.645120 spce proxy[140119]: NOTICE: ROUTE_AUTH <script>: Authentication failed, invalid user - R=«sip:390773470219 at 172.16.41.10» ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH' Auth=«faxserver»
Sep 12 13:21:15.645769 spce proxy[140119]: INFO: ROUTE_ADD_CALLINFO_REPLY <script>: Adding reply P-NGCP-Caller-Info '<sip:«faxserver»@«172.16.41.10»>;ip=«172.16.41.21»;port=«5080»«»«»' - ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.646687 spce proxy[140119]: NOTICE: ROUTE_AUTH <script>: Sending reply S=407 fs='«127.0.0.1»:«5062»' du='«127.0.0.1»:«5060»' - ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='FreeSWITCH'
Sep 12 13:21:15.646847 spce proxy[140119]: INFO: ROUTE_EXIT <script>: INVITE processed - ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989»
Sep 12 13:21:15.646917 spce proxy[140119]: INFO: ROUTE_EXIT <script>: Runtime for request M=INVITE was 11539 usec - ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989»
Sep 12 13:21:15.648820 spce proxy[140122]: NOTICE: sl:filtered-ack <script>: New request on proxy - M=ACK R=«sip:390773470219 at 172.16.41.10» F=«sip:faxserver at 172.16.41.10» T=«sip:390773470219 at 172.16.41.10» IP=«<null>»:«<null>» («127.0.0.1»:«5060») ID=«700a4b4a-0a6d-123f-c6be-bc24113a3989» UA='<null>' DESTIP=«127.0.0.1»:«5062»


I can't understand why it ask me to authenticate.... 

Thanks in advance.

Regards, Fabrizio 



More information about the Spce-user mailing list