[asterisk-users] How to find , internal, external inbound or outbound

Danny Nicholas danny at debsinc.com
Fri Dec 17 14:24:07 UTC 2010


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-bounces at lists.digium.com
[mailto:asterisk-users-bounces at 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, here’s 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 doesn’t 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 it’s probably somebody
else’s too), this is my answer to OP’s 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.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20101217/6e3269e6/attachment.htm>


More information about the asterisk-users mailing list