Nasir Javaid
2010-Jul-29 15:28 UTC
[asterisk-users] How to extract channel-id of a user or peer
Hi, my question is how can i get channel-id of a user or peer. I tried using ChanIsAvail(username). this works correctly when user and asterisk are on Local LAN. But my asterisk server is on public ip and users are behind nat, and so this method says unknow host when used on public asterisk server. I also tried built-in variable ${CHANNEL}, but this returns the channel-id of the calling channel. but i want channel-id of called user. can anyone help what can i do. best regards, Nasir Javaid -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100729/27253161/attachment.htm
Danny Nicholas
2010-Jul-29 15:37 UTC
[asterisk-users] How to extract channel-id of a user or peer
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Nasir Javaid Subject: [asterisk-users] How to extract channel-id of a user or peer my question is how can i get channel-id of a user or peer. I tried using ChanIsAvail(username). this works correctly when user and asterisk are on Local LAN. But my asterisk server is on public ip and users are behind nat, and so this method says unknow host when used on public asterisk server. I also tried built-in variable ${CHANNEL}, but this returns the channel-id of the calling channel. but i want channel-id of called user. perhaps ${CALLERID(DNID)} -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100729/4700e1b0/attachment.htm
Sherwood McGowan
2010-Jul-29 19:22 UTC
[asterisk-users] How to extract channel-id of a user or peer
On Thu, Jul 29, 2010 at 10:37 AM, Danny Nicholas <danny at debsinc.com> wrote:> From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Nasir Javaid > Subject: [asterisk-users] How to extract channel-id of a user or peer > > my question is how can i get channel-id of a user or peer. I tried using > ChanIsAvail(username). this works correctly when user and asterisk are on > Local LAN. But my asterisk server is on public ip and users are behind nat, > and so this method says unknow host when used on public asterisk server. > I also tried built-in variable ${CHANNEL}, but this returns the channel-id > of the calling channel. but i want channel-id of called user. > > perhaps ${CALLERID(DNID)} > > -- > _____________________________________________________________________ > -- 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 >${BRIDGEPEER} is probably a good way to do what you want.. if Channel A calls Channel B, and you want Channel A to "get" the channelID of Channel B, as long as the two channels are bridged, ${BRIDGEPEER} will do what you want
Hi all, I am wondering if the Clustering concept described in Leif Madsens presentation http://comunidad.asterisk-es.org/documentos/astricon2008/why-cluster-an-introduction-to-asterisk-clustering-and-database-integration-astricon-2008.pdf is still up to date or if there are newer or improved features available with 1.6 (or 1.8) to build an easy scalable and highly available Asterisk infrastructure? Maybe someone knows of configuration examples or howtos for building a HA cluster with the most actual features? Especially the database setup with several nodes using the same database sounds very interesting and also DUNDi for loadbalancing and efficient routing. We would need a HA infrastructure covering a headquarter with thousands of users and several branch offices, some with just a handful of users and others with up to 500 users. Asterisk needs to interconnect with some local hard PBX (Siemens Hipath) and within each other. I am actually trying to figure out a setup that would fit that needs. Any input of links to further documentation or your "real life experiences" with a clustered setup is very welcome. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100729/a4300ffc/attachment.htm
> No, not until Microsoft builds a compatible soft phone. Microsoft> built software that only speaks SIP over TCP. Most SIP stacks work>over RTP.I suspect you meant UDP, not RTP. They use TCP or UDP for SIP signaling and RTP for the actual voice traffic. -- This is what i thought. MS uses TCP or TLS for signaling and RTP for voice. So in a perfect world it could work as from 1.6 Asterisk supports TCP. But if it works in real world? Thats the question. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100729/67f57b33/attachment.htm