<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok, so I wired up a sendmsg API for our pbx module, and get the
following in my trace logs (pbx and freeswitch_monitor work in
conjunction to provide an OTP-ified version of freeswitch.erl.)&nbsp;
Unfortunately I'm not seeing anything in fs_cli to indicate _what_ the
"badarg" might be.<br>
<br>
2010-03-08 13:39:58 DEBUG &lt;0.666.0&gt;: pbx_eavesdrop:run() New
eavesdrop received for extension="5000"<br>
2010-03-08 13:39:58 DEBUG &lt;0.980.0&gt;:
freeswitch_monitor:handle_call() pbx_sendmsg invoking sendmsg,
UUID="bdf24b82-c204-4697-92d2-b0b15f7ebd3a",
Headers=[["execute-app-name",<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
"eavesdrop"],<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
["execute-app-arg",<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
"bdf24b82-c204-4697-92d2-b0b15f7ebd3a"]]<br>
2010-03-08 13:39:58 DEBUG &lt;0.666.0&gt;: pbx:sendmsg() Sent to Pid
&lt;0.980.0&gt;<br>
2010-03-08 13:39:58 DEBUG &lt;0.980.0&gt;:
freeswitch_monitor:handle_call() pbx_sendmsg received {error, badarg}<br>
2010-03-08 13:39:58 DEBUG &lt;0.666.0&gt;: pbx_eavesdrop:run()
EavesdropResult = {error,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
badarg}<br>
<br>
<br>
<br>
Rupa Schomaker wrote:
<blockquote
 cite="mid:b39273531003080855t4b32095cwaa12fee2dc66f3b7@mail.gmail.com"
 type="cite">
  <div>application,eavesdrop,mod_dptools,/opt/freeswitch/mod/mod_dptools.so</div>
  <div><br>
  </div>
  <div>It is an app, not an API.</div>
  <br>
  <div class="gmail_quote">On Mon, Mar 8, 2010 at 10:22 AM, Mark Sobkow
  <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:m.sobkow@marketelsystems.com">m.sobkow@marketelsystems.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;">What
module contains the "eavesdrop" command? &nbsp;I'm getting an error<br>
command not found from Erlang when I try to do a pbx:api( eavesdrop,<br>
ExtensionUUID ).<br>
    <br>
--<br>
Mark Sobkow<br>
Senior Developer<br>
MarkeTel Multi-Line Dialing Systems LTD.<br>
428 Victoria Ave<br>
Regina, SK S4N-0P6<br>
Toll-Free: 800-289-8616-X533<br>
Local: 306-359-6893-X533<br>
Fax: 306-359-6879<br>
Email: <a moz-do-not-send="true"
 href="mailto:m.sobkow@marketelsystems.com">m.sobkow@marketelsystems.com</a><br>
Web: <a moz-do-not-send="true" href="http://www.marketelsystems.com"
 target="_blank">http://www.marketelsystems.com</a><br>
    <br>
    <br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
    <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
    <a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a><br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
-Rupa<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Mark Sobkow
Senior Developer
MarkeTel Multi-Line Dialing Systems LTD.
428 Victoria Ave
Regina, SK S4N-0P6
Toll-Free: 800-289-8616-X533
Local: 306-359-6893-X533
Fax: 306-359-6879
Email: <a class="moz-txt-link-abbreviated" href="mailto:m.sobkow@marketelsystems.com">m.sobkow@marketelsystems.com</a>
Web: <a class="moz-txt-link-freetext" href="http://www.marketelsystems.com">http://www.marketelsystems.com</a> </pre>
</body>
</html>