BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
149 stars 73 forks source link

Proxy Authentication Required - REQUEST FOR HELP #36

Open wmukhtar opened 6 years ago

wmukhtar commented 6 years ago

We are using Freeswitch as backend server, Flexisip as proxy to handle push notification and sip messages.

There are three things we can't figure out:

1- Why flexisip is still sending pn-token information to backend server, even when Forward Module is enabled, with "params-to-remove=app-id pn-type pn-tok pn-msg-str pn-call-str pn-call-snd pn-msg-snd pn-timeout", does it matter if it is still sending it to backend server?

2- Do we need to keep Authenticate Module enabled if Flexisip is only being used as Front end server to handle push notifications and sip simple messages?

3- Please see the attached picture and help us figure out why flexisip is not sending authentication request to the device?

untitled

*SYSTEM LOGS Jun 16 05:59:44 localhost flexisip: tport_recv_event(0x23bb300) Jun 16 05:59:44 localhost flexisip: tport_recv_iovec(0x23bb300) msg 0x23e0f90 from (udp/5.79.86.77:5060) has 758 bytes, veclen = 1 Jun 16 05:59:44 localhost flexisip: tport_deliver(0x23bb300): msg 0x23e0f90 (758 bytes) from udp/106.76.233.57:5060 next=(nil) Jun 16 05:59:44 localhost flexisip: nta: received REGISTER sip:5.79.86.77 SIP/2.0 (CSeq 20) Jun 16 05:59:44 localhost flexisip: nta: REGISTER (20) going to existing REGISTER transaction Jun 16 05:59:44 localhost flexisip: nta: re-received REGISTER request, retransmitting 100 reply Jun 16 05:59:44 localhost flexisip: tport_tsend(0x23bb300) tpn = UDP/106.76.233.57:56422 Jun 16 05:59:44 localhost flexisip: tport_resolve addrinfo = 106.76.233.57:56422 Jun 16 05:59:44 localhost flexisip: tport_by_addrinfo(0x23bb300): not found by name UDP/106.76.233.57:56422 Jun 16 05:59:44 localhost flexisip: tport_vsend returned 275 Jun 16 05:59:48 localhost flexisip: tport_wakeup_pri(0x23bb300): events IN Jun 16 05:59:48 localhost flexisip: tport_recv_event(0x23bb300) Jun 16 05:59:48 localhost flexisip: tport_recv_iovec(0x23bb300) msg 0x23e19f0 from (udp/5.79.86.77:5060) has 758 bytes, veclen = 1 Jun 16 05:59:48 localhost flexisip: tport_deliver(0x23bb300): msg 0x23e19f0 (758 bytes) from udp/106.76.233.57:5060 next=(nil) Jun 16 05:59:48 localhost flexisip: nta: received REGISTER sip:5.79.86.77 SIP/2.0 (CSeq 20) Jun 16 05:59:48 localhost flexisip: nta: REGISTER (20) going to existing REGISTER transaction Jun 16 05:59:48 localhost flexisip: nta: re-received REGISTER request, retransmitting 100 reply Jun 16 05:59:48 localhost flexisip: tport_tsend(0x23bb300) tpn = UDP/106.76.233.57:56422 Jun 16 05:59:48 localhost flexisip: tport_resolve addrinfo = 106.76.233.57:56422 Jun 16 05:59:48 localhost flexisip: tport_by_addrinfo(0x23bb300): not found by name UDP/106.76.233.57:56422 Jun 16 05:59:48 localhost flexisip: tport_vsend returned 275 Jun 16 05:59:52 localhost flexisip: tport_wakeup_pri(0x23bb300): events IN Jun 16 05:59:52 localhost flexisip: tport_recv_event(0x23bb300) Jun 16 05:59:52 localhost flexisip: tport_recv_iovec(0x23bb300) msg 0x23e0f90 from (udp/5.79.86.77:5060) has 758 bytes, veclen = 1 Jun 16 05:59:52 localhost flexisip: tport_deliver(0x23bb300): msg 0x23e0f90 (758 bytes) from udp/106.76.233.57:5060 next=(nil) Jun 16 05:59:52 localhost flexisip: nta: received REGISTER sip:5.79.86.77 SIP/2.0 (CSeq 20) Jun 16 05:59:52 localhost flexisip: nta: REGISTER (20) going to existing REGISTER transaction Jun 16 05:59:52 localhost flexisip: nta: re-received REGISTER request, retransmitting 100 reply Jun 16 05:59:52 localhost flexisip: tport_tsend(0x23bb300) tpn = UDP/106.76.233.57:56422 Jun 16 05:59:52 localhost flexisip: tport_resolve addrinfo = 106.76.233.57:56422 Jun 16 05:59:52 localhost flexisip: tport_by_addrinfo(0x23bb300): not found by name UDP/106.76.233.57:56422 Jun 16 05:59:52 localhost flexisip: tport_vsend returned 275

LOGS: 2018/06/16 05:26:36.862146 165.227.33.101:56058 -> 5.79.86.77:5060 INVITE sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0s dMCNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4s g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVKdMCNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101;fs_path=sip:5.79.86.77:5060%3Btransport%3D p%3Bfs-proxy-id%3D07af6ced2c270e8f%3Blr SIP/2.0 Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F Route: ;transport=tcp;fs-proxy-id=07af6ced2c270e8f;lr Max-Forwards: 63 From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101> Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 INVITE Contact: sip:mod_sofia@165.227.33.101:5060 User-Agent: FreeSWITCH-mod_sofia/1.6.20+git~20180507T185611Z~43a9feb7f8~64bit 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 Content-Type: application/sdp Content-Disposition: session Content-Length: 224 X-FS-Support: update_display,send_info Remote-Party-ID: "6474995868" sip:6474995868@165.227.33.101;party=calling;screen=yes;privacy=off

v=0 o=FreeSWITCH 1529106784 1529106785 IN IP4 165.227.33.101 s=FreeSWITCH c=IN IP4 165.227.33.101 t=0 0 m=audio 20008 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20

2018/06/16 05:26:36.870864 5.79.86.77:5060 -> 165.227.33.101:56058 SIP/2.0 100 Trying Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F;rport=56058 Record-Route: <sip:5.79.86.77:5060;transport=tcp;lr> From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101> Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 INVITE Server: Flexisip/1.0.12 (sofia-sip-nta/2.0) Content-Length: 0

2018/06/16 05:26:36.889220 5.79.86.77:39375 -> 165.227.33.101:5060 INVITE sip:999999@165.227.33.101;pn-silent=1;pn-silent=1;fs_path=sip:5.79.86.77:5060%3Btransport%3Dtcp%3Bfs-proxy-id%3D07af6ced2c270e8f%3Blr;transport=tcp;doroute SIP/2.0 Via: SIP/2.0/TCP 5.79.86.77;rport;branch=z9hG4bK.B772c2cHayB4FU2XBac2X4yDNF Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F;rport=56058 Record-Route: <sip:5.79.86.77:5060;transport=tcp;lr> Max-Forwards: 62 From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101> Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 INVITE Contact: sip:mod_sofia@165.227.33.101:56058;transport=tcp User-Agent: FreeSWITCH-mod_sofia/1.6.20+git~20180507T185611Z~43a9feb7f8~64bit 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 Content-Type: application/sdp Content-Disposition: session Content-Length: 224 X-FS-Support: update_display,send_info Remote-Party-ID: "6474995868" sip:6474995868@165.227.33.101;party=calling;screen=yes;privacy=off

v=0 o=FreeSWITCH 1529106784 1529106785 IN IP4 165.227.33.101 s=FreeSWITCH c=IN IP4 165.227.33.101 t=0 0 m=audio 20008 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20

2018/06/16 05:26:36.981582 165.227.33.101:5060 -> 5.79.86.77:39375 SIP/2.0 100 Trying Via: SIP/2.0/TCP 5.79.86.77;rport=39375;branch=z9hG4bK.B772c2cHayB4FU2XBac2X4yDNF Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F;rport=56058 Record-Route: <sip:5.79.86.77:5060;transport=tcp;lr> From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101> Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 INVITE User-Agent: FreeSWITCH-mod_sofia/1.6.20+git~20180507T185611Z~43a9feb7f8~64bit Content-Length: 0

2018/06/16 05:26:36.982503 165.227.33.101:5060 -> 5.79.86.77:39375 SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/TCP 5.79.86.77;rport=39375;branch=z9hG4bK.B772c2cHayB4FU2XBac2X4yDNF Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F;rport=56058 From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101>;tag=2UZZKr7yejtgp Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 INVITE User-Agent: FreeSWITCH-mod_sofia/1.6.20+git~20180507T185611Z~43a9feb7f8~64bit 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="165.227.33.101", nonce="a0e70d4c-c61b-4f71-9463-585ffbfeede8", algorithm=MD5, qop="auth" Content-Length: 0

2018/06/16 05:26:36.984688 5.79.86.77:39375 -> 165.227.33.101:5060 ACK sip:999999@165.227.33.101;pn-silent=1;pn-silent=1;fs_path=sip:5.79.86.77:5060%3Btransport%3Dtcp%3Bfs-proxy-id%3D07af6ced2c270e8f%3Blr;transport=tcp;doroute SIP/2.0 Via: SIP/2.0/TCP 5.79.86.77;rport;branch=z9hG4bK.B772c2cHayB4FU2XBac2X4yDNF Max-Forwards: 62 From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101>;tag=2UZZKr7yejtgp Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 ACK Content-Length: 0

2018/06/16 05:26:36.991989 5.79.86.77:5060 -> 165.227.33.101:56058 SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F;rport=56058 From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101>;tag=2UZZKr7yejtgp Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 INVITE User-Agent: FreeSWITCH-mod_sofia/1.6.20+git~20180507T185611Z~43a9feb7f8~64bit 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="165.227.33.101", nonce="a0e70d4c-c61b-4f71-9463-585ffbfeede8", algorithm=MD5, qop="auth" Content-Length: 0

2018/06/16 05:26:36.991989 5.79.86.77:5060 -> 165.227.33.101:56058 SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F;rport=56058 From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101>;tag=2UZZKr7yejtgp Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 INVITE User-Agent: FreeSWITCH-mod_sofia/1.6.20+git~20180507T185611Z~43a9feb7f8~64bit 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="165.227.33.101", nonce="a0e70d4c-c61b-4f71-9463-585ffbfeede8", algorithm=MD5, qop="auth" Content-Length: 0

2018/06/16 05:26:37.089603 165.227.33.101:56058 -> 5.79.86.77:5060 ACK sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVKd NwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVKdMCNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101;fs_path=sip:5.79.86.77:5060%3Btransport%3Dtcp Bfs-proxy-id%3D07af6ced2c270e8f%3Blr SIP/2.0 Via: SIP/2.0/TCP 165.227.33.101;branch=z9hG4bK0yX1K6777pF8F Route: ;transport=tcp;fs-proxy-id=07af6ced2c270e8f;lr Max-Forwards: 63 From: "6474995868" sip:6474995868@165.227.33.101;tag=1j66HXpUH93Xa To: <sip:999999@5.79.86.77:5060;app-id=680065870132;pn-type=firebase;pn-tok=eYdDnqGNB-s:APA91bFa3vv2XE_3kutAOlzI844eXYZKW-ZxyjKcy4sb-g25YuKI6fDshFMtYS8tkhNhwDB13yvyzlHtivit3wF-TQ_Xzyx-pI0sVK CNwobfVUSIO1Eui2_CZvr1uTH3z7HXohHHJr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.33.101>;tag=2UZZKr7yejtgp Call-ID: abfed58b-ebc8-1236-7f8f-120adac73fec CSeq: 124227332 ACK Content-Length: 0

CONFIG:

[global] log-level=debug syslog-level=debug aliases=localhost 5.79.86.77 debug=true max-log-size=100M user-errors-logs=true dump-corefiles=true auto-respawn=true default-servers=proxy transports=sip:* tls-certificates-dir=/etc/flexisip/tls/ tls-ciphers=HIGH:!SSLv2:!SSLv3:!TLSv1:!EXP:!ADH:!RC4:!3DES:!aNULL:!eNULL idle-timeout=3600 require-peer-certificate=false transaction-timeout=32000 udp-mtu=1460 enable-snmp=true unique-id= use-maddr=true

[cluster] enabled=false cluster-domain= nodes=

[mdns-register] enabled=false mdns-priority=0 mdns-weight=100 mdns-ttl=3600

[event-logs] enabled=false logger=filesystem dir=/var/log/flexisip database-backend=mysql database-connection-string=db='mydb' user='myuser' password='mypass' host='myhost.com' database-max-queue-size=100 database-nb-threads-max=10

[monitor] enabled=false test-interval=30 logfile=/etc/flexisip/flexisip_monitor.log switch-port=12345 password-salt=

[stun-server] enabled=true bind-address=0.0.0.0 port=3478

[presence-server] enabled=false transports=sip:127.0.0.1:5065;transport=tcp expires=600 leak-detector=false long-term-enabled=true bypass-condition=false

[module::DoSProtection] enabled=true filter= time-period=3000 packet-rate-limit=20 ban-time=2 iptables-chain=FLEXISIP

[module::SanityChecker] enabled=true filter=

[module::GarbageIn] enabled=false filter=false

[module::NatHelper] enabled=true filter= contact-verified-param=verified fix-record-routes=true fix-record-routes-policy=safe

[module::Authentication] enabled=false filter= auth-domains=localhost 127.0.0.1 5.79.86.77 trusted-hosts=localhost 127.0.0.1 5.79.86.77 db-implementation=file

datasource=/etc/flexisip/passwd

datasource=/etc/flexisip/users.db nonce-expires=3600 cache-expire=1800 hashed-passwords=true no-403=false reject-wrong-client-certificates=false tls-client-certificate-required-subject= new-auth-on-407=false enable-test-accounts-creation=false disable-qop-auth=false available-algorithms=MD5 trust-domain-certificates=false

DRIVER={MySQL};SERVER=;DATABASE=;USER=;PASSWORD=;OPTION=3

datasource=/etc/flexisip/users.db.txt

datasource=/etc/flexisip/userdb.conf

DSN=myodbc3

request=select secret from accounts where account_name = :id

odbc-user-with-phone-request=

odbc-users-with-phones-request=

odbc-poolsize=100

[module::Redirect] enabled=false filter= contact=

[module::Registrar] enabled=true filter= reg-domains=* reg-on-response=true max-contacts-by-aor=15 unique-id-parameters=+sip.instance pn-tok line max-expires=604800 min-expires=60 force-expires=-1 static-records-file= static-records-timeout=600 db-implementation=internal redis-server-domain=127.0.0.1 redis-server-port=6379 redis-auth-password= redis-server-timeout=1500 redis-record-serializer=protobuf redis-slave-check-period=60 service-route= name-message-expires=message-expires register-expire-randomizer-max=0

[module::StatisticsCollector] enabled=false filter=is_request && request.method-name == 'PUBLISH' collector-address=

[module::Router] enabled=true filter=(is_request && request.uri.params contains 'doroute') || is_response use-global-domain=false fork=true stateful=true fork-late=true fork-no-global-decline=false treat-decline-as-urgent=false treat-all-as-urgent=false call-fork-timeout=90 call-fork-urgent-timeout=5 call-fork-current-branches-timeout=10 call-push-response-timeout=0 message-fork-late=true message-delivery-timeout=604800 message-accept-timeout=15 allow-target-factorization=false generated-contact-route= generated-contact-expected-realm= generate-contact-even-on-filled-aor=false remove-to-tag=false preroute= resolve-routes=false fallback-route=

[module::PushNotification] enabled=true filter= timeout=1 max-queue-size=100 time-to-live=2592000 apple=true apple-certificate-dir=/etc/flexisip/apn google=false google-projects-api-keys=XXXXXX:AIzaSyCLuHSHQGfnuKrDYCOSaA80m78J0xePb8E firebase=true firebase-projects-api-keys=XXXXXXX:AAAAnlcVqTQ:APA91bEuxxtxFLN90eW0l7LMAdyZQbqXb27Z6MKS7ULUjnk9UTpSu_TEcxIuk9fkGfZUDOEty2tqVOIml1KRtxlPbWoYv8mir1B2bHmX2xCimcPqHDCzzWPk-lcyb4XPfJCxkLiIgWHE windowsphone=true windowsphone-package-sid= windowsphone-application-secret= no-badge=false external-push-uri= external-push-method=GET

[module::MediaRelay] enabled=false filter= nortpproxy=nortpproxy sdp-port-range-min=1024 sdp-port-range-max=65535 bye-orphan-dialogs=false max-calls=0 force-relay-for-non-ice-targets=true prevent-loops=true early-media-relay-single=true max-early-media-per-call=0 inactivity-period=3600

[module::Transcoder] enabled=false filter= jb-nom-size=0 rc-user-agents= audio-codecs=speex/8000 amr/8000 iLBC/8000 gsm/8000 pcmu/8000 pcma/8000 telephone-event/8000 remove-bw-limits=false block-retransmissions=false

[module::Forward] enabled=true filter= route= add-path=true rewrite-req-uri=false default-transport=tcp

params-to-remove=pn-tok pn-type app-id pn-msg-str pn-call-str pn-call-snd pn-msg-snd pn-timeout

params-to-remove=app-id pn-type pn-tok pn-msg-str pn-call-str pn-call-snd pn-msg-snd pn-timeout

[inter-domain-connections] accept-domain-registrations=false assume-unique-domains=false domain-registrations=/etc/flexisip/domain-registrations.conf verify-server-certs=true keepalive-interval=30 reg-when-needed=false

[module::ContactRouteInserter] enabled=true insert-domain=true

masquerade-contacts-for-invites=true

masquerade-contacts-on-registers=true

[module::GatewayAdapter] enabled=false gateway= gateway-domain= fork-to-gateway=true register-on-gateway=true routing-param=routing-domain

wmukhtar commented 6 years ago

UPDATE:

Insert-domain is adding backend server ip address CtRt07af6ced2c270e8f=tcp:165.227.xx.xxx

I am not sure but i think this is way call is routed back to the Backend Server. How can we change this ip to flexisip ip if that's what causing the issue?

Contact: sip:999999@5.79.xx.xx:5060;app-id=xxxxxxx;pn-type=firebase;pn-tok=xxxxr;pn-silent=1;CtRt07af6ced2c270e8f=tcp:165.227.xx.xx;+sip.instance=""

johnma commented 6 years ago

i care this issue too. hi wmukhtar, how do you configure this in your flexisip.conf? i don't find the freeswitch 's ip or port in your flexisip.conf. in other words, how to integrate flexisip with freeswitch?in fact i want to call pstn phone

willnaoosmith commented 3 years ago

Same here