[Freeswitch-users] Eavesdrop between 2 FS instaces

Steven Ayre steveayre at gmail.com
Tue Jun 14 12:41:53 MSD 2011


Try something like this:

FS1:
uuid_broadcast <uuid>
bridge:{sip_h_X-target_
channel_id=<uuid>}sofia/bridging/123456 at ip:port aleg

FS2:
<condition field="destination_number" expression="^(123456)$">
  <action application="eavesdrop" data="${sip_h_X-target_channel_id}" />
</condition>

-Steve


On 14 June 2011 08:40, Maciej Aniserowicz <maciej.aniserowicz at gmail.com>wrote:

> Yes, I tried this also...
> 3 applications are needed here:
>
> (command sent to FS1)
> [app1] [CallA channel] [app2]:{sip_h_X-target_channel_id=[CallB
>  channel]}sofia/bridging/123456 at ip:port,park inline
>
> (dialplan in FS2)
> <condition field="destination_number" expression="^(123456)$">
>     &lt;action application=&quot;&lt;b&gt;app3"
> data="${sip_h_X-target_channel_id}" />
>  </condition>
>
> app1 is uuid_transfer
> app3 is eavesdrop
> app2...? I cannot find anything that fits in here.
>
> MA
>
>
>
> Steven Ayre wrote:
> >
> > I think you want the eavesdrop app:
> > http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_eavesdrop
> >
> > Intercept takes over the call. Eavesdrop just silently listens in.
> >
> > -Steve
> >
> >
> >
> > On 3 June 2011 14:01, Maciej Aniserowicz
> > &lt;maciej.aniserowicz at gmail.com&gt;wrote:
> >
> >> Hi Steve,
> >> Thanks for interest.
> >>
> >> Yes, i figured out that i cannot eavesdrop any 'easy' way. I tried the
> >> approach you described (dialing into FS2 to a special context and
> passing
> >> sip-h_X header). In fact i use this to bridge calls on different FSes.
> >> But
> >> while i managed to get it working with bridging, i cannot find a way to
> >> do
> >> eavesdropping.
> >>
> >> With bridging I send:
> >> uuid_transfer [CallA channel] bridge:{sip_h_X-target_channel_id=[CallB
> >> channel]}sofia/bridging/123456 at ip:port,park inline
> >>
> >> Then FS2 in dialplan for 123456 extracts target channel id from sip
> >> header
> >> and intercepts it:
> >> <condition field="destination_number" expression="^(123456)$">
> >>    <action application="intercept" data="${sip_h_X-target_channel_id}"
> />
> >> </condition>
> >>
> >> What actions should i define in FS2 dialplan for eavesdropping? What
> >> inline
> >> dialplan should i send in dial string? I'm stuck here.
> >>
> >> --
> >> View this message in context:
> >>
> http://freeswitch-users.2379917.n2.nabble.com/Eavesdrop-between-2-FS-instaces-tp6432366p6435172.html
> >> Sent from the freeswitch-users mailing list archive at Nabble.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
> >>
> >
> > _______________________________________________
> > 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
> >
>
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/Eavesdrop-between-2-FS-instaces-tp6432366p6473071.html
> Sent from the freeswitch-users mailing list archive at Nabble.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/20110614/595e1d9e/attachment.html 


More information about the FreeSWITCH-users mailing list