Hi list,

I have found the solution by myself. It will be useful to have answer here. The correct DIALPLAN extension is in this case

<extension name="Loopback">
    <condition field="destination_number" expression="^(5000)$">
    <action application="bridge" data="sofia/internal/${destination_number}@192.168.8.29"/>
</extension>

Where device at 192.168.8.29 is the SIP client registered to FS at 192.168.8.6 like user 1005. Using such DIALPLAN <extension> the call incoming from SIP client with destination number 5000 is immediately routed back to the SIP client at 192.168.8.29.

My estimation is that FS in this case searches in SIP profile "internal" for all registered clients and when founds the one with IP 192.168.8.29 it is used to route the call there using destination number for this outbound call.

Regards
Petr B.

Dne 29.05.2018 v 18:31 Petr Both napsal(a):
Hi list,

I'm already searching in FS manual several hours but cannot find the solution.

My task is to receive SIP call from remote SIP device (registered to FS like User: 1005@192.168.8.6), using DIALPLAN route it back to SIP channel with the same (or increased) destination_number back to the remote SIP device. I.e. make such simple loopback in FS.

Tested DIALPLAN extension is

<extension name="Loopback">
    <condition field="destination_number" expression="^(5000)$">
    <action application="bridge" data="sofia/$${domain}/1005"/>
</extension>

The call is looped back to SIP channel but with destination_number 1005. Is there any way to enforce to this bridged outbound call the destination_number based on destination number of inbound call (which comes with destination number 5000) ?

Thank you in advance

Petr B.




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org