<br>I don&#39;t think there is a very elegant way to do this and even if I find one i can live with it would be at least 2k worth of work to add it.<br><br>Why do you need the loopback channel at all?&nbsp; Can&#39;t you just originate the sofia channel directly instead of bridging it to loopback and adding 2 more channels per call?<br>
<br><br><br><div class="gmail_quote">On Thu, Jan 29, 2009 at 7:20 AM, Tamas Cseke <span dir="ltr">&lt;<a href="mailto:cstomi.levlist@gmail.com">cstomi.levlist@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I&#39;m sorry for still bothering you with this issue.<br>
but thanks to somewhat missunderstanding/misleading by us, it shows up that our customers need this feature for the complicated<br>
predictive calls too.<br>
<br>
There is an idea, could you let me know if it is achiveable. and if it&#39;s how?<br>
So we record sofia channel, but the media pause/resume is happening on loopback channel.<br>
the idea is to have a switch_set_flag_recursive function, which set the flag not only to the current channel, but to all connected channels.<br>
we need to push CS_PAUSE_MEDIA flag to the sofia channel.<br>
<br>
Thanks in advance,<br>
Tamas<br>
<br>
Here is the callflow again:<br>
<div class="Ih2E3d">1, originate a loopback channel via event socket<br>
2, loopback-b channel is hunting the dialplan, wich decide routing,<br>
caller_id, the need for recordings and so forth, and bridge a sofia call<br>
3. the record_session is running on the sofia channel with<br>
bridge_pre_execute magic vars<br>
4 loopback-a channel is pushed into the fifo<br>
5 a script get the fifo::info via event socket<br>
6 originate a call to the consumer with the proper strategy with &amp;fifo<br>
out application<br>
7 sofia channel is bridged to the consumer<br>
8 loopback channels die<br>
<br>
<br>
<br>
</div>Anthony Minessale írta:<br>
<div><div></div><div class="Wj3C7c">&gt; yes some code was missing for some reason, try again<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jan 26, 2009 at 10:11 AM, Tamas Cseke &lt;<a href="mailto:cstomi.levlist@gmail.com">cstomi.levlist@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I tested with the attached patch.<br>
&gt;&gt; It is working fine in a normal case.<br>
&gt;&gt;<br>
&gt;&gt; I have only problems with the automatic calls, because in this case the<br>
&gt;&gt; loopback channel is in the fifo, but the record_session is running on the<br>
&gt;&gt; sofia channel.<br>
&gt;&gt; Maybe it could be sort out with putting the bug pause/resume functions into<br>
&gt;&gt; api function, what I should turn on and off on demand?<br>
&gt;&gt; Anyway, I quess this is a bit extreme circumstance, and it isn&#39;t so<br>
&gt;&gt; important to us now.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Tamas<br>
&gt;&gt;<br>
&gt;&gt; Tamas Cseke írta:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;Hello,<br>
&gt;&gt;<br>
&gt;&gt;&gt; Thank you your help.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I tested with r11489, but moh is still recorded in fifo.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I quess you I should test the CF_PAUSE_BUGS in r11466. But I didn&#39;t find<br>
&gt;&gt;&gt; where you check this flag.<br>
&gt;&gt;&gt; Is it maybe possible you forget to commit something?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Tamas<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I didn&#39;t find where you<br>
&gt;&gt;&gt; Anthony Minessale írta:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; please test latest trunk.<br>
&gt;&gt;&gt;&gt; Patch added to pause media bugs while not in a bridge which should pause<br>
&gt;&gt;&gt;&gt; recordings and cut out the moh.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Fri, Jan 23, 2009 at 10:45 AM, Tamas Cseke &lt;<a href="mailto:cstomi.levlist@gmail.com">cstomi.levlist@gmail.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; we would like to distribute calls with fifo and record these sessions<br>
&gt;&gt;&gt;&gt;&gt; but we&#39;d like to skip the recording while the caller is waiting.<br>
&gt;&gt;&gt;&gt;&gt; (we don&#39;t need to record the hold music, just the speech with the fifo<br>
&gt;&gt;&gt;&gt;&gt; consumer.)<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I tried<br>
&gt;&gt;&gt;&gt;&gt; &lt;action application=&quot;set&quot; data=&quot;RECORD_ANSWER_REQ=true&quot;/&gt;<br>
&gt;&gt;&gt;&gt;&gt; &lt;action application=&quot;record_session&quot; data=&quot;${callfilename}&quot;/&gt;<br>
&gt;&gt;&gt;&gt;&gt; &lt;action application=&quot;fifo&quot; data=&quot;myfifo in&quot;/&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; but it doesn&#39;t work because the channel is answered immediately when the<br>
&gt;&gt;&gt;&gt;&gt; caller is pushed into the fifo.<br>
&gt;&gt;&gt;&gt;&gt; (I don&#39;t know if there exists any other channel flag that could be use<br>
&gt;&gt;&gt;&gt;&gt; here)<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I also tried fifo_record_template.<br>
&gt;&gt;&gt;&gt;&gt; but it records the session from the point of view of the consumer&#39;s<br>
&gt;&gt;&gt;&gt;&gt; session, and after the bridge the recording is stopped.<br>
&gt;&gt;&gt;&gt;&gt; we would like to record the whole session into a single file even after<br>
&gt;&gt;&gt;&gt;&gt; calltransfers<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; moreover we&#39;d like to use some kind of predcitive dialing<br>
&gt;&gt;&gt;&gt;&gt; which<br>
&gt;&gt;&gt;&gt;&gt; 1, originate a loopback channel via event socket<br>
&gt;&gt;&gt;&gt;&gt; 2, loopback-b channel is hunting the dialplan, wich decide routing,<br>
&gt;&gt;&gt;&gt;&gt; caller_id, the need for recordings and so forth, and bridge a sofia call<br>
&gt;&gt;&gt;&gt;&gt; 3. the record_session is running on the sofia channel with<br>
&gt;&gt;&gt;&gt;&gt; bridge_pre_execute magic vars<br>
&gt;&gt;&gt;&gt;&gt; 4 loopback-a channel is pushed into the fifo<br>
&gt;&gt;&gt;&gt;&gt; 5 a script get the fifo::info via event socket<br>
&gt;&gt;&gt;&gt;&gt; 6 originate a call to the consumer with the proper strategy with &amp;fifo<br>
&gt;&gt;&gt;&gt;&gt; out application<br>
&gt;&gt;&gt;&gt;&gt; 7 sofia channel is bridged to the consumer<br>
&gt;&gt;&gt;&gt;&gt; 8 loopback channels die<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; after transfers everything is recorded into one file.<br>
&gt;&gt;&gt;&gt;&gt; but the problem here is again the unwanted recording in the fifo while<br>
&gt;&gt;&gt;&gt;&gt; the caller is waiting<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Could you please advise me any solution, if there is?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Thank you,<br>
&gt;&gt;&gt;&gt;&gt; Tamas<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt;&gt;&gt;&gt; UNSUBSCRIBE:<br>
&gt;&gt;&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &nbsp;------------------------------------------------------------------------<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt;&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>