hey In 1.6 version actually not wrote any code for option 'o'<br>you need to add following line into file <br><br><pre>Index: apps/app_chanspy.c<br>===================================================================<br>
--- apps/app_chanspy.c        (revision 215998)<br>+++ apps/app_chanspy.c        (working copy)<br>@@ -427,7 +427,12 @@<br>                 return -1;<br>         }<br> <br>-        f = ast_audiohook_read_frame(&csth->spy_audiohook, samples, AST_AUDIOHOOK_DIRECTION_BOTH, AST_FORMAT_SLINEAR);<br>
+        if (ast_test_flag(chan, OPTION_READONLY)) {<br>+                /* Option 'o' was set, so don't mix channel audio */<br>+                f = ast_audiohook_read_frame(&csth->spy_audiohook, samples, AST_AUDIOHOOK_DIRECTION_READ, AST_FORMAT_SLINEAR);<br>
+        } else {<br>+                f = ast_audiohook_read_frame(&csth->spy_audiohook, samples, AST_AUDIOHOOK_DIRECTION_BOTH, AST_FORMAT_SLINEAR);<br>+        }<br> <br>         ast_audiohook_unlock(&csth->spy_audiohook);<br></pre><br><br>regards<br>
Dhaval<br><br><div class="gmail_quote">2009/10/14 Jorge Gutiérrez <span dir="ltr"><<a href="mailto:jgutierrez@palosanto.com">jgutierrez@palosanto.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I have read about that on asterisk 1.6, there will be a parameter "o" (Only<br>
listen to audio coming from this channel), I have tried, but I still get<br>
inbound and outbound audio from the spied channel.<br>
Has anyone used this feature? Is it working? Is there any work-around?<br>
I will like to only spy the outbound audio from a channel, I dont want to<br>
hear the incomming audio of that channel.<br>
I have used the following context:<br>
<br>
[Conf]<br>
exten => s,1,Answer<br>
exten => s,2,Background(custom/menu_test)<br>
exten => s,3,ChanSpy(,qoX)<br>
exten => 1,1,Goto(Conf,s,2)<br>
exten => 2,1,AGI(conf.php,${CALLERID(num)},${SPY_CHANNEL})<br>
exten => 2,n,Goto(s,3)<br>
exten => s,n,Goto(test2,s,1)<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>