Hello list, to use ChanSpy, one needs to know the name of the channel. But on an incoming call from the provider, or an outgoing call to the provider there are always numbers added. How can one then know the channel name ?? /core show channels verbose/ shows me for example : /SIP/*378680644-00002* default SIP/*rs4-00002445* sub-uitinternation SIP/*3715320168-00002* default SIP*/ibenla2-0000244* sub-uit789 SIP/*372083610-00002* default SIP/*cedhou0-000024* sub-uit789 SIP*/travel3-00002* pbx-routing SIP/*INTELin-00002* pbx-routing SIP/*375382280-00002* default SIP/*miq8-00002419* sub-uitGSM SIP/*3749378004-0000* default SIP*/instlpr0-00002* sub-uitinternation SIP/*372089170-00002* default SIP/*v9q9uLT-0000* from-GFATRUNK 46 active channels 24 active calls/ If I want to listen to the conversation of /SIP/*miq8-00002419*/and /SIP/*375382280-00002*/(these 2 channels have been connected to 1 conversation), how do I use ChanSpy ?? Kind regards; Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120124/feba8ba7/attachment.htm>
Danny Nicholas
2012-Jan-24 14:41 UTC
[asterisk-users] ChanSpy : how to know channel name ?
Strip off the -xxxxx. Just listen to SIP/miq8 and SIP/375382280 in your example. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens Sent: Tuesday, January 24, 2012 7:47 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] ChanSpy : how to know channel name ? Hello list, to use ChanSpy, one needs to know the name of the channel. But on an incoming call from the provider, or an outgoing call to the provider there are always numbers added. How can one then know the channel name ?? core show channels verbose shows me for example : SIP/378680644-00002 default SIP/rs4-00002445 sub-uitinternation SIP/3715320168-00002 default SIP/ibenla2-0000244 sub-uit789 SIP/372083610-00002 default SIP/cedhou0-000024 sub-uit789 SIP/travel3-00002 pbx-routing SIP/INTELin-00002 pbx-routing SIP/375382280-00002 default SIP/miq8-00002419 sub-uitGSM SIP/3749378004-0000 default SIP/instlpr0-00002 sub-uitinternation SIP/372089170-00002 default SIP/v9q9uLT-0000 from-GFATRUNK 46 active channels 24 active calls If I want to listen to the conversation of SIP/miq8-00002419 and SIP/375382280-00002 (these 2 channels have been connected to 1 conversation), how do I use ChanSpy ?? Kind regards; Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120124/07678d22/attachment.htm>
Hello, OK thanks. But, I want to listen to the conversation (not just 1 channel out of 2 channels). How then do I use ChanSpy ? On 01/24/2012 03:41 PM, Danny Nicholas wrote:> > Strip off the --xxxxx. Just listen to SIP/miq8 and SIP/375382280 in > your example. > > *From:*asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Jonas > Kellens > *Sent:* Tuesday, January 24, 2012 7:47 AM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* [asterisk-users] ChanSpy : how to know channel name ? > > Hello list, > > to use ChanSpy, one needs to know the name of the channel. > > But on an incoming call from the provider, or an outgoing call to the > provider there are always numbers added. How can one then know the > channel name ?? > > /core show channels verbose/ shows me for example : > > /SIP/*378680644-00002* default > SIP/*rs4-00002445* sub-uitinternation > SIP/*3715320168-00002* default > SIP*/ibenla2-0000244* sub-uit789 > SIP/*372083610-00002* default > SIP/*cedhou0-000024* sub-uit789 > SIP*/travel3-00002* pbx-routing > SIP/*INTELin-00002* pbx-routing > SIP/*375382280-00002* default > SIP/*miq8-00002419* sub-uitGSM > SIP/*3749378004-0000* default > SIP*/instlpr0-00002* sub-uitinternation > SIP/*372089170-00002* default > SIP/*v9q9uLT-0000* from-GFATRUNK > 46 active channels > 24 active calls/ > > > If I want to listen to the conversation of /SIP/*miq8-00002419*/ and > /SIP/*375382280-00002*/ (these 2 channels have been connected to 1 > conversation), how do I use ChanSpy ?? > > > > Kind regards; > Jonas. > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120124/420519c3/attachment.htm>
Danny Nicholas
2012-Jan-24 14:53 UTC
[asterisk-users] ChanSpy : how to know channel name ?
I would try chanspy(sip/miq8,b) - the b flag denotes to only listen to a bridged call which (it seems to me) should pick up both sides. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens Sent: Tuesday, January 24, 2012 8:46 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] ChanSpy : how to know channel name ? Hello, OK thanks. But, I want to listen to the conversation (not just 1 channel out of 2 channels). How then do I use ChanSpy ? On 01/24/2012 03:41 PM, Danny Nicholas wrote: Strip off the -xxxxx. Just listen to SIP/miq8 and SIP/375382280 in your example. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens Sent: Tuesday, January 24, 2012 7:47 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] ChanSpy : how to know channel name ? Hello list, to use ChanSpy, one needs to know the name of the channel. But on an incoming call from the provider, or an outgoing call to the provider there are always numbers added. How can one then know the channel name ?? core show channels verbose shows me for example : SIP/378680644-00002 default SIP/rs4-00002445 sub-uitinternation SIP/3715320168-00002 default SIP/ibenla2-0000244 sub-uit789 SIP/372083610-00002 default SIP/cedhou0-000024 sub-uit789 SIP/travel3-00002 pbx-routing SIP/INTELin-00002 pbx-routing SIP/375382280-00002 default SIP/miq8-00002419 sub-uitGSM SIP/3749378004-0000 default SIP/instlpr0-00002 sub-uitinternation SIP/372089170-00002 default SIP/v9q9uLT-0000 from-GFATRUNK 46 active channels 24 active calls If I want to listen to the conversation of SIP/miq8-00002419 and SIP/375382280-00002 (these 2 channels have been connected to 1 conversation), how do I use ChanSpy ?? Kind regards; Jonas. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120124/de0dd5e0/attachment.htm>
Hello, thanks. miq8 is the name of the SIP peer account. So when I know the SIP peer name, and I strip of the numbers of the channel, then I can use ChanSpy. So this answers my original question. The only problem I see : it is Asterisk that gives the channel its name. How do I change this ?? As far as I know, Asterisk randomly gives a channel name which consists of the technology (SIP), the peername (miq8) and some numbers... How to change the channel name ? On 01/24/2012 03:53 PM, Danny Nicholas wrote:> > I would try chanspy(sip/miq8,b) -- the b flag denotes to only listen > to a bridged call which (it seems to me) should pick up both sides. > > *From:*asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Jonas > Kellens > *Sent:* Tuesday, January 24, 2012 8:46 AM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re: [asterisk-users] ChanSpy : how to know channel name ? > > Hello, > > OK thanks. But, I want to listen to the conversation (not just 1 > channel out of 2 channels). How then do I use ChanSpy ? > > > > On 01/24/2012 03:41 PM, Danny Nicholas wrote: > > Strip off the --xxxxx. Just listen to SIP/miq8 and SIP/375382280 in > your example. > > *From:*asterisk-users-bounces at lists.digium.com > <mailto:asterisk-users-bounces at lists.digium.com> > [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Jonas > Kellens > *Sent:* Tuesday, January 24, 2012 7:47 AM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* [asterisk-users] ChanSpy : how to know channel name ? > > Hello list, > > to use ChanSpy, one needs to know the name of the channel. > > But on an incoming call from the provider, or an outgoing call to the > provider there are always numbers added. How can one then know the > channel name ?? > > /core show channels verbose/ shows me for example : > > /SIP/*378680644-00002* default > SIP/*rs4-00002445* sub-uitinternation > SIP/*3715320168-00002* default > SIP*/ibenla2-0000244* sub-uit789 > SIP/*372083610-00002* default > SIP/*cedhou0-000024* sub-uit789 > SIP*/travel3-00002* pbx-routing > SIP/*INTELin-00002* pbx-routing > SIP/*375382280-00002* default > SIP/*miq8-00002419* sub-uitGSM > SIP/*3749378004-0000* default > SIP*/instlpr0-00002* sub-uitinternation > SIP/*372089170-00002* default > SIP/*v9q9uLT-0000* from-GFATRUNK > 46 active channels > 24 active calls/ > > > If I want to listen to the conversation of /SIP/*miq8-00002419*/ and > /SIP/*375382280-00002*/ (these 2 channels have been connected to 1 > conversation), how do I use ChanSpy ?? > > > > Kind regards; > Jonas. > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided byhttp://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided byhttp://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120124/a015ca00/attachment.htm>