[Freeswitch-users] [newbie] route incomming call to endpoint using fs_cli
Steven Ayre
steveayre at gmail.com
Tue Jun 25 18:36:22 MSD 2013
In this case you could try
http://wiki.freeswitch.org/wiki/Mod_commands#uuid_transfer but it probably
wouldn't be the best way to handle the call.
All incoming calls will hit a dialplan search, so the call needs to be
handled there. If you're wanting to handle calls via ESL look at the
outbound socket.
Also if doing it the way you are now. better than sleep might be this:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_park
-Steve
On 25 June 2013 10:34, Raymond Domingo <raymond at telecats.nl> wrote:
> Hello,
>
> I'm just taking first steps in learning freeswitch.
>
> What I would like to do is route my incomming call to 'some' endpoint using
> fs_cli.
> (just to see how all is working).
>
> My config (snapshot):
> <extension name="raymondtest">
> <condition field="destination_number" expression="^5800$">
> <action application="answer"/>
> <action application="sleep" data="200000"/>
> </condition>
> </extension>
>
> <extension name="echo">
> <condition field="destination_number" expression="^9196$">
> <action application="answer"/>
> <action application="echo"/>
> </condition>
> </extension>
>
> Both endpoints are working.
>
> So when I call using my softphone to 5800 I can see the call in fs_cli
> using
> show calls:
>
> 0dbf4066-dd7a-11e2-a52c-b9fe005eb6ff,inbound,2013-06-25
> 11:31:46,1372152706,sofia/internal/1500 at 172.30.4.186
> ,CS_EXECUTE,1500,1500,172.30.4.132,5800,1500 at 172.30.4.186
> ,,ACTIVE,,,,,fs-devel,,,,,,,,,,,,,,,,,,,,,
>
> But how can I route this call USING FS_CLI commands to the echo endpoint ?
>
> I looked into originate, bridge and sofia. But I couldn't find out how to
> do
> this.
>
> Best regards,
> Raymond Domingo
>
>
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/newbie-route-incomming-call-to-endpoint-using-fs-cli-tp7592173.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.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
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130625/6a098862/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list