[Freeswitch-users] dialplan to share skype instances

Jian Ren renjian at gmail.com
Tue Nov 16 10:41:11 PST 2010


Same question for the incoming google voice, the wiki shows how to forward
to a certain extension. Is there anyway to forward to any available
extension? Like if 1001 is on the phone, forward to 1002.
Thanks!
Jian

On Tue, Nov 16, 2010 at 1:37 PM, Jian Ren <renjian at gmail.com> wrote:

> Hi,
> Currently I am assigning one instance to each extension like below:
>
>  <extension name="us.skypeout">
>       <condition field="username" expression="^10(\d{2})$">
>         <action application="set" data="skype_instance=$1"/>
>       </condition>
>       <condition field="destination_number" expression="^(\d{11})$">
>         <action application="set" data="hangup_after_bridge=true"/>
>         <action application="bridge"
> data="skypopen/interface${skype_instance}/$
>       </condition>
>     </extension>
>
> Are there any other ways like to get unused instances from a pool?
> I guess it could be something like
>
> condition instance1 available?
> bridge instance1
> condition instance2 available?
> bridge instance2
> ...
>
> then there could be much more extensions to share skype out.
>
> Could anyone help?
>
> Thanks!
> Jian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101116/24c1036e/attachment.html 


More information about the FreeSWITCH-users mailing list