Thank you Mark. I did try it out myself and figured out that it did work as I wanted. Thanks for the quick reply though.<br clear="all"><br>Nicholas Blasgen<br>Partner / Network Operations<br>Refractive Dialer LLC<br>408.395.2110 (w)<br>
408.497.9796 (c)<br>
<br><br><div class="gmail_quote">On Mon, Feb 2, 2009 at 12:06 PM, Mark Michelson <span dir="ltr"><<a href="mailto:mmichelson@digium.com">mmichelson@digium.com</a>></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;">
<div class="Ih2E3d">Nicholas Blasgen wrote:<br>
> I'm trying to figure out how to listen in to a channel that I specify.<br>
> I have the impression I've seen this done via Flash web controls, but<br>
> I'm trying to write something myself and I can't figure out what command<br>
> would be used. ChanSpy looks great, but I don't see how to specify the<br>
> channel.<br>
><br>
> I have a channel identifier like "SIP/provider-08748db0" which is what I<br>
> would send to applications like Hangup(<chan>) or Redirect(<chan>) but<br>
> it doesn't look like ChanSpy was written to accept that format. I<br>
> haven't tried passing "SIP/provider-08748db0" to ChanSpy, but from the<br>
> documentation it seems that it shouldn't work.<br>
><br>
> So the question is, how can I listen into a channel if I know either the<br>
> channel or the unqiue id? And in the meantime I will play around with<br>
> ChanSpy more.<br>
<br>
</div>Chanspy should do exactly what you want. If you ran<br>
<br>
exten => blah,n,ChanSpy(SIP/provider)<br>
<br>
Then you would be able to listen to all active calls involving any channel whose<br>
name begins with 'SIP/provider'. If it turns out that there is a channel called<br>
'SIP/provider-12345abc', then that channel may be spied on with the above<br>
ChanSpy call in the dialplan.<br>
<br>
The thing to remember is that the "chanprefix" argument as it is described in<br>
ChanSpy's documentation is literally any text that may appear at the start of a<br>
channel name. Chanspy(SIP) would allow you to spy on any SIP channel, whereas<br>
ChanSpy(S) would allow spying on both SIP and Skinny channels. There is no<br>
minimum or maximum limit to what this string may be.<br>
<br>
Mark Michelson<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>
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>