[Freeswitch-users] How to transfer call from one context to another after a certain time

David Villasmil Govea david.villasmil at gmail.com
Fri Jan 2 21:27:39 MSK 2015


You can use sched_api
https://wiki.freeswitch.org/wiki/Mod_commands#sched_api
On Jan 2, 2015 12:58 PM, "Aqs Younas" <aqsyounas at gmail.com> wrote:

> Hi, Users.
>
> I want to transfer my call from one context public(which is playing a
> never ending stream with mod_shout) to another context Second (which is
> also playing a never ending stream) after a certain time like, after 30
> mints, without making user press any dtmf.
>
> <include>
>
>   <context name="public">
>      <extension name="First_Stream">
>        <condition field="destination_number" expression="^750$">
>            <action application="answer"/>
>            <action application="playback" data="shout://
> scfire-dll-aa02.stream.aol.com:80/stream/1074"/>
>              <action application="transfer" data="${destination_number}
> XML Second"/>
>          </condition>
>      </extension>
>   </context>
>
>
> <context name="Second">
>      <extension name="Second_Stream">
>        <condition field="destination_number">
>           <action application="playback" data="shout://
> scfirl-bb1.stream.aol.com:80/stream/1870"/>
>          </condition>
>      </extension>
>   </context>
>
> </include>
>
> How can i do so? I can write above dial plan with lua/python but don't
> know how to transfer call without making user press any key.
>
> Since  "play_and_get_digits" and "read" command also need some dtmf for
> next line execution.
>
> Many Thanks
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 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/20150102/bc1ba119/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list