I HATE OUTLOOK _____
reply please.... On 12/17/2010 10:03 AM, Nikhil wrote: > Hi > Does anyone knows how to find out a call in a asterisk is > external incoming ,external out going or internal > > Thanks > Nikhil > _____ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Vinícius Fontes Sent: Friday, December 17, 2010 6:22 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to find , internal, external inbound or outbound There's no such concept in Asterisk. Everything is a call, doesn't matter its direction. Rant at the top, heres my actual thoughts. Yes, Everything is a call, BUT each call has an origin and at least one destination. If I do this: Exten => 1234,1,answer Exten => 1234,n,playback(tt-weasels) Exten => 1234,n,hangup This call doesnt actually go anywhere, but it has an origin of the phone I dial 1234 from and a destination of a local channel to process the playback. If I add to my incoming context Exten => s,n,goto(default,1234,1) And call my Asterisk using a SIP or DAHDI trunk, the origin is that trunk, and destination is still a local channel. Now If I actually speak to someone, the destination will be the SIP or DAHDI channel that asterisk reaches them on. If you look in the CDR, the origin and destination fields will tell you which trunk each uses. By definition (mine, but its probably somebody elses too), this is my answer to OPs question Origin destination = Sip trunk SIP ext external incoming DAHDI trunk SIP ext external incoming SIP ext SIP trunk external out SIP ext DAHDI trunk external out SIP ext SIP ext internal Local channel = SIP ext There are smarter people than me that read this list; perhaps they will improve on this answer.
-- _____________________________________________________________________ -- 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