<html><head></head><body><div class="ydp13f5f5edyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div><span><span class="ydp1d67c2f3u_b ydp1d67c2f3E_eo6 ydp1d67c2f3C_Z1TsNWR"></span><span><span data-test-id="email-pill" class="ydp1d67c2f3D_F ydp1d67c2f3rtlI_rtlI_dz_sSg"><span class="ydp1d67c2f3C4_Z2aVTcY" title="freeswitch-users@lists.freeswitch.org" data-test-id="message-to">+ freeswitch-users@lists.freeswitch.org</span></span></span></span><br></div></div><div><br></div>
        
        </div><div id="yahoo_quoted_7653669437" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Thursday, May 9, 2019, 8:51:16 AM GMT+5:30, Vrajendra VT <vrajendra.vt@yahoo.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv1475116372"><div><div class="yiv1475116372yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Thank you Jose for the reply.</div><div><br clear="none"></div><div>The reason for doing this:</div><div>Lets just say FS2 will be replaced with N no of FSs in future<br clear="none"></div><div><br clear="none"></div><div>So, FS1 will redirect to FS2 .... FSN, depending upon which is free (whose load is less).</div><div>As of now, will take FS1 and FS2 as an example.</div><div><br clear="none"></div><div>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.</div><div><br clear="none"></div><div>Since I am only redirecting from FS1, I have changed only public.xml something like this on FS1<br clear="none"></div><div><div><div> </div><div> <extension name="public_extensions" continue="true"></div>      <condition field="destination_number" expression="^(\d+)$"><br clear="none">        <action application="redirect" data="sip:1011@[IP of FS2]"/><br clear="none">        </condition><br clear="none"> </extension></div><br clear="none"></div><div>After this, I am seeing the following in the logs,</div><div><br clear="none"></div><div><div>2019-05-09 03:05:29.267994 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 302<br clear="none">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<br clear="none">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<br clear="none">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<br clear="none">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)<br clear="none">2019-05-09 03:05:29.267994 [DEBUG] switch_core_state_machine.c:938 (sofia/external/+16617480240@[IP from SIP PROVIDER]) State REPORTING<br clear="none">2019-05-09 03:05:29.428022 [ERR] mod_cdr_csv.c:156 Error opening /var/log/freeswitch/cdr-csv/Master.csv<br clear="none">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<br clear="none">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<br clear="none">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<br clear="none">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<br clear="none">2019-05-09 03:05:29.428022 [NOTICE] switch_core_session.c:1683 Session 7537 (sofia/external/16617480240@[IP from SIP PROVIDER]) Ended<br clear="none"><div>2019-05-09 03:05:29.428022 [NOTICE] switch_core_session.c:1687 Close Channel sofia/external/16617480240@[IP from SIP PROVIDER] [CS_DESTROY]</div><div><br clear="none"></div><div><br clear="none"></div><div>One thing I observed, "+" missing in source number for second half of logs.</div><div><br clear="none"></div><div>After corresponding redirect, I am not seeing any logs on FS2.</div><div>Could there be issue in FS2 configs?<br clear="none"></div><div><br clear="none"></div><div>Thanks.<br clear="none"></div></div><br clear="none"></div><div class="yiv1475116372yqt8231978888" id="yiv1475116372yqt49840"><div class="yiv1475116372yahoo_quoted" id="yiv1475116372yahoo_quoted_8045649881">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Thursday, May 9, 2019, 12:22:44 AM GMT+5:30, Jose Figueroa <josen.figueroa@unixmexico.org> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="yiv1475116372"><div><div dir="ltr">Hello Vrajendra,<div><br clear="none"></div><div>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.</div><div>In VoIP, you can use prefixes to redirect incoming calls or outgoing calls to specific gateways or even use sip proxy strategies.<br clear="none"></div><div><br clear="none"></div><div>In addition, if you share your config here I am pretty sure someone from the mailing list can help you.</div><div><br clear="none"></div><div>Thanks</div><div>Jose N Figueroa</div></div><br clear="none"><div class="yiv1475116372gmail_quote"><div class="yiv1475116372gmail_attr" dir="ltr">On Wed, May 8, 2019 at 12:40 PM Vrajendra VT via FreeSWITCH-users <<a rel="nofollow" shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>> wrote:<br clear="none"></div><blockquote class="yiv1475116372gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><br clear="none"><br clear="none"><br clear="none">---------- Forwarded message ----------<br clear="none">From: Vrajendra VT <<a rel="nofollow" shape="rect" ymailto="mailto:vrajendra.vt@yahoo.com" target="_blank" href="mailto:vrajendra.vt@yahoo.com">vrajendra.vt@yahoo.com</a>><br clear="none">To: "<a rel="nofollow" shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>" <<a rel="nofollow" shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br clear="none">Cc: <br clear="none">Bcc: <br clear="none">Date: Wed, 8 May 2019 14:19:04 +0000 (UTC)<br clear="none">Subject: redirect + swapping of ports<br clear="none"><div class="yiv1475116372yqt2755789876" id="yiv1475116372yqt70520"><div><div class="yiv1475116372gmail-m_7555093647273897004ydpb39db71eyahoo-style-wrap" style=""><div><div>Hi,</div><div><br clear="none"></div><div><div>I am a novice in Freeswitch.<br clear="none"><br clear="none">I have a provider sending me calls on 5060 port only.<br clear="none">I have 2 FS's. Calls are landing on FS1. From FS1, I need to redirect to FS2<br clear="none">(lets assume all calls to be redirected)<br clear="none">With normal config's (I had done few config changes in default and public),<br clear="none">I was able to get some logs albeit (Proxy Authentication error). This may be<br clear="none">because by default internal calls are authenticated.<br clear="none"><br clear="none">Thats why I swapped ports 5060 and 5080 of internal and external profiles.<br clear="none">But I am getting 480 error<br clear="none"><br clear="none">Any help is appreciated. Thanks.</div><br clear="none"></div><div class="yiv1475116372gmail-m_7555093647273897004ydpb39db71esignature"><div><br clear="none"></div>Thanks.<br clear="none"></div></div></div></div></div><br clear="none"><br clear="none"><br clear="none">---------- Forwarded message ----------<br clear="none">From: Vrajendra VT via FreeSWITCH-users <<a rel="nofollow" shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br clear="none">To: "<a rel="nofollow" shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>" <<a rel="nofollow" shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br clear="none">Cc: <br clear="none">Bcc: <br clear="none">Date: Wed, 08 May 2019 10:40:28 -0700 (PDT)<br clear="none">Subject: [Freeswitch-users] redirect + swapping of ports<br clear="none">_________________________________________________________________________<br clear="none">
<br clear="none">
The FreeSWITCH project is sponsored by SignalWire <a rel="nofollow" shape="rect" target="_blank" href="https://signalwire.com">https://signalwire.com</a><br clear="none">
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br clear="none">
Build your next product on our scalable cloud platform.<br clear="none">
<br clear="none">
Join our online community to chat in real time <a rel="nofollow" shape="rect" target="_blank" href="https://signalwire.community">https://signalwire.community</a><br clear="none">
<br clear="none">
Professional FreeSWITCH Services<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:sales@freeswitch.com" target="_blank" href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://freeswitch.com">https://freeswitch.com</a><br clear="none">
<br clear="none">
Official FreeSWITCH Sites<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://freeswitch.com/oss">https://freeswitch.com/oss</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://cluecon.com">https://cluecon.com</a><br clear="none">
<br clear="none">
FreeSWITCH-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br clear="none">
UNSUBSCRIBE:<a rel="nofollow" shape="rect" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://freeswitch.com">https://freeswitch.com</a></blockquote></div></div></div></div>
            </div>
        </div></div></div></div></div></div>
            </div>
        </div></body></html>