[Freeswitch-users] redirect + swapping of ports

Vrajendra VT vrajendra.vt at yahoo.com
Fri May 10 09:30:58 UTC 2019


Hi,
Still awaiting for the reply.
Thanks.    On Thursday, May 9, 2019, 3:44:28 PM EDT, Vrajendra VT via FreeSWITCH-users <freeswitch-users at lists.freeswitch.org> wrote:  
 
 + freeswitch-users at lists.freeswitch.org

    On Thursday, May 9, 2019, 8:51:16 AM GMT+5:30, Vrajendra VT <vrajendra.vt at yahoo.com> wrote:  
 
 Thank you Jose for the reply.
The reason for doing this:Lets just say FS2 will be replaced with N no of FSs in future

So, FS1 will redirect to FS2 .... FSN, depending upon which is free (whose load is less).As of now, will take FS1 and FS2 as an example.
Since I have swapped the ports. the incoming call (on 5060) is handled by external profile (rather than internal) since I have swapped the ports in vars.xml.
Since I am only redirecting from FS1, I have changed only public.xml something like this on FS1
  <extension name="public_extensions" continue="true">      <condition field="destination_number" expression="^(\d+)$">
        <action application="redirect" data="sip:1011@[IP of FS2]"/>
        </condition>
 </extension>
After this, I am seeing the following in the logs,
2019-05-09 03:05:29.267994 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 302
2019-05-09 03:05:29.267994 [DEBUG] switch_core_state_machine.c:60 sofia/external/+16617480240@[IP from SIP PROVIDER] Standard HANGUP, cause: NORMAL_UNSPECIFIED
2019-05-09 03:05:29.267994 [DEBUG] switch_core_state_machine.c:852 (sofia/external/+16617480240@[IP from SIP PROVIDER]) State HANGUP going to sleep
2019-05-09 03:05:29.267994 [DEBUG] switch_core_state_machine.c:619 (sofia/external/+16617480240@[IP from SIP PROVIDER]) State Change CS_HANGUP -> CS_REPORTING
2019-05-09 03:05:29.267994 [DEBUG] switch_core_state_machine.c:584 (sofia/external/+16617480240@[IP from SIP PROVIDER]) Running State Change CS_REPORTING (Cur 2 Tot 7538)
2019-05-09 03:05:29.267994 [DEBUG] switch_core_state_machine.c:938 (sofia/external/+16617480240@[IP from SIP PROVIDER]) State REPORTING
2019-05-09 03:05:29.428022 [ERR] mod_cdr_csv.c:156 Error opening /var/log/freeswitch/cdr-csv/Master.csv
2019-05-09 03:05:29.428022 [DEBUG] switch_core_state_machine.c:174 sofia/external/16617480240@[IP from SIP PROVIDER] Standard REPORTING, cause: NORMAL_UNSPECIFIED
2019-05-09 03:05:29.428022 [DEBUG] switch_core_state_machine.c:938 (sofia/external/16617480240@[IP from SIP PROVIDER]) State REPORTING going to sleep
2019-05-09 03:05:29.428022 [DEBUG] switch_core_state_machine.c:610 (sofia/external/16617480240@[IP from SIP PROVIDER]) State Change CS_REPORTING -> CS_DESTROY
2019-05-09 03:05:29.428022 [DEBUG] switch_core_session.c:1665 Session 7537 (sofia/external/16617480240@[IP from SIP PROVIDER]) Locked, Waiting on external entities
2019-05-09 03:05:29.428022 [NOTICE] switch_core_session.c:1683 Session 7537 (sofia/external/16617480240@[IP from SIP PROVIDER]) Ended
2019-05-09 03:05:29.428022 [NOTICE] switch_core_session.c:1687 Close Channel sofia/external/16617480240@[IP from SIP PROVIDER] [CS_DESTROY]

One thing I observed, "+" missing in source number for second half of logs.
After corresponding redirect, I am not seeing any logs on FS2.Could there be issue in FS2 configs?

Thanks.

   On Thursday, May 9, 2019, 12:22:44 AM GMT+5:30, Jose Figueroa <josen.figueroa at unixmexico.org> wrote:  
 
 Hello Vrajendra,
There are several ways to achieve this. The question is what is the reason you're doing this? It would be good to understand the scenario.In VoIP, you can use prefixes to redirect incoming calls or outgoing calls to specific gateways or even use sip proxy strategies.

In addition, if you share your config here I am pretty sure someone from the mailing list can help you.
ThanksJose N Figueroa
On Wed, May 8, 2019 at 12:40 PM Vrajendra VT via FreeSWITCH-users <freeswitch-users at lists.freeswitch.org> wrote:




---------- Forwarded message ----------
From: Vrajendra VT <vrajendra.vt at yahoo.com>
To: "freeswitch-users at lists.freeswitch.org" <freeswitch-users at lists.freeswitch.org>
Cc: 
Bcc: 
Date: Wed, 8 May 2019 14:19:04 +0000 (UTC)
Subject: redirect + swapping of ports
Hi,
I am a novice in Freeswitch.

I have a provider sending me calls on 5060 port only.
I have 2 FS's. Calls are landing on FS1. From FS1, I need to redirect to FS2
(lets assume all calls to be redirected)
With normal config's (I had done few config changes in default and public),
I was able to get some logs albeit (Proxy Authentication error). This may be
because by default internal calls are authenticated.

Thats why I swapped ports 5060 and 5080 of internal and external profiles.
But I am getting 480 error

Any help is appreciated. Thanks.

Thanks.



---------- Forwarded message ----------
From: Vrajendra VT via FreeSWITCH-users <freeswitch-users at lists.freeswitch.org>
To: "freeswitch-users at lists.freeswitch.org" <freeswitch-users at lists.freeswitch.org>
Cc: 
Bcc: 
Date: Wed, 08 May 2019 10:40:28 -0700 (PDT)
Subject: [Freeswitch-users] redirect + swapping of ports
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales at freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
    _________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales at freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190510/53125222/attachment-0001.html>


More information about the FreeSWITCH-users mailing list