Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-25 Thread Jerry Geis


The Dial events are created by app_dial. So long as you are using
app_dial to create your outbound channel, you should have that event.
Channel technology shouldn't matter.



I am using the same AMI method to start both calls.
Action: Originate
Channel: DAHDI/18/XX
or
Action: Originate
Channel: SIP/machine/XX

Jerry
--
_
-- 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

Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-25 Thread Jerry Geis

I just put a break at dial_exec_full (app/app_dial.c for Asterisk 11.0.2)
did my AMI call

Action: Originate
Async: yes
Channel: SIP/testsystem/XXX

(calls from my machine over SIP trunk to another 11.0.2 box that has
a PRI card to make a call out to my cell)

and did not get a break.

Why is a SIP call not logging the Dial event as a DAHDI call does???

jerry



--
_
-- 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


[asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Jerry Geis

When I am monitoring the AMI I see the following event
for a call I just made over a SIP trunk.

Event: Newchannel
Privilege: call,all
Channel: SIP/testmachine-000d
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum:
CallerIDName:
AccountCode:
Exten:
Context: testmachine
Uniqueid: 1359035395.20

In this event or any event following I do not see
the phone number that I dialled. How do I correlate
the SIP/testmachine-000d to the number I just dialed
(purpose is to hangup the call later if I need to interrupt it)

Now if I am using a machine with actual hardware cards, the phone
number is included as part of the Channel so I can look that up.
but for a SIP trunk the phone number dialled does not come over the AMI.

How do I match up the call I just started (using AMI over SIP trunk) to 
the number I called?


Thanks,

jerry



--
_
-- 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


Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Tiago Geada
Have you tried and looked up all events generated when you place the call?

some of them are bound to have the variable callerid set


On 24 January 2013 16:46, Jerry Geis ge...@pagestation.com wrote:

 When I am monitoring the AMI I see the following event
 for a call I just made over a SIP trunk.

 Event: Newchannel
 Privilege: call,all
 Channel: SIP/testmachine-000d
 ChannelState: 0
 ChannelStateDesc: Down
 CallerIDNum:
 CallerIDName:
 AccountCode:
 Exten:
 Context: testmachine
 Uniqueid: 1359035395.20

 In this event or any event following I do not see
 the phone number that I dialled. How do I correlate
 the SIP/testmachine-000d to the number I just dialed
 (purpose is to hangup the call later if I need to interrupt it)

 Now if I am using a machine with actual hardware cards, the phone
 number is included as part of the Channel so I can look that up.
 but for a SIP trunk the phone number dialled does not come over the AMI.

 How do I match up the call I just started (using AMI over SIP trunk) to
 the number I called?

 Thanks,

 jerry



 --
 __**__**_
 -- 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-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- 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

Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Danny Nicholas
Not the greatest solution, but since you are most likely using a script for the 
AMI process, you could do an 

Asterisk –rx “core show channels verbose”|grep SIP/testmachine-000d 

And get the dialed number from that.

Actually you could issue the AMI command core show channels verbose.

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tiago Geada
Sent: Thursday, January 24, 2013 11:24 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] question on SIP trunk and AMI to place call

 

Have you tried and looked up all events generated when you place the call?

 

some of them are bound to have the variable callerid set

 

On 24 January 2013 16:46, Jerry Geis ge...@pagestation.com wrote:

When I am monitoring the AMI I see the following event
for a call I just made over a SIP trunk.

Event: Newchannel
Privilege: call,all
Channel: SIP/testmachine-000d
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum:
CallerIDName:
AccountCode:
Exten:
Context: testmachine
Uniqueid: 1359035395.20

In this event or any event following I do not see
the phone number that I dialled. How do I correlate
the SIP/testmachine-000d to the number I just dialed
(purpose is to hangup the call later if I need to interrupt it)

Now if I am using a machine with actual hardware cards, the phone
number is included as part of the Channel so I can look that up.
but for a SIP trunk the phone number dialled does not come over the AMI.

How do I match up the call I just started (using AMI over SIP trunk) to the 
number I called?

Thanks,

jerry



--
_
-- 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

 

--
_
-- 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

Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Jerry Geis


Have you tried and looked up all events generated when you place the call?

some of them are bound to have the variable callerid set
yes I have looked at all of them, CallerID is not set to the number I am 
calling.


Jerry
--
_
-- 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

Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Jerry Geis

Not the greatest solution, but since you are most likely using a script for the 
AMI process, you could do an

Asterisk --rx core show channels verbose|grep SIP/testmachine-000d

And get the dialed number from that.

Actually you could issue the AMI command core show channels verbose.
there is no core show channels verbose on Asterisk 11. There is on 
asterisk 1.4,


core show channels on asterisk 11 has been changed.

jerry
--
_
-- 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

Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Matthew Jordan
On 01/24/2013 10:46 AM, Jerry Geis wrote:
 When I am monitoring the AMI I see the following event
 for a call I just made over a SIP trunk.
 
 Event: Newchannel
 Privilege: call,all
 Channel: SIP/testmachine-000d
 ChannelState: 0
 ChannelStateDesc: Down
 CallerIDNum:
 CallerIDName:
 AccountCode:
 Exten:
 Context: testmachine
 Uniqueid: 1359035395.20
 
 In this event or any event following I do not see
 the phone number that I dialled. How do I correlate
 the SIP/testmachine-000d to the number I just dialed
 (purpose is to hangup the call later if I need to interrupt it)
 
 Now if I am using a machine with actual hardware cards, the phone
 number is included as part of the Channel so I can look that up.
 but for a SIP trunk the phone number dialled does not come over the AMI.
 
 How do I match up the call I just started (using AMI over SIP trunk) to
 the number I called?
 

You probably want the Dial event. It is raised both at the beginning of
the Dial, as well as when the Dial completes.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerEvent_Dial

Note that the Channel: field will contain the name initiating the Dial,
the Destination: field will contain the channel name being dialled, and
the Dialstring: field will contain the non-technology specific portion
of the thing being dialled.

For example:

exten = 500,1,Dial(SIP/digium02)

Results in:

Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: SIP/10.x.x.x-0002
Destination: SIP/digium02-0003
CallerIDNum: 657-5309
CallerIDName: digium01
ConnectedLineNum: unknown
ConnectedLineName: unknown
UniqueID: Asterisk-01-1359052866.2
DestUniqueID: Asterisk-01-1359052866.3
Dialstring: digium02

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com  http://asterisk.org



--
_
-- 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


Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Jerry Geis



You probably want the Dial event. It is raised both at the beginning of
the Dial, as well as when the Dial completes.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerEvent_Dial

Note that the Channel: field will contain the name initiating the Dial,
the Destination: field will contain the channel name being dialled, and
the Dialstring: field will contain the non-technology specific portion
of the thing being dialled.

I get that even on the system with the PRI card and using DAHDI
however I am not getting that event on the system with the SIP trunk .

Is there something to enable to get that???
Both systems are running Asterisk 11.0.2.

Thanks,

Jerry
--
_
-- 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

Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Danny Nicholas
This might have changed but IIRC /etc/asterisk/manager.conf controls what
events you have access to.

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jerry Geis
Sent: Thursday, January 24, 2013 1:14 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] question on SIP trunk and AMI to place call

 

 

 
 
You probably want the Dial event. It is raised both at the beginning of
the Dial, as well as when the Dial completes.
 
https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerEvent_Dial
 
Note that the Channel: field will contain the name initiating the Dial,
the Destination: field will contain the channel name being dialled, and
the Dialstring: field will contain the non-technology specific portion
of the thing being dialled.

I get that even on the system with the PRI card and using DAHDI
however I am not getting that event on the system with the SIP trunk .

Is there something to enable to get that???
Both systems are running Asterisk 11.0.2.

Thanks,

Jerry

--
_
-- 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

Re: [asterisk-users] question on SIP trunk and AMI to place call

2013-01-24 Thread Matthew Jordan
On 01/24/2013 01:13 PM, Jerry Geis wrote:


 You probably want the Dial event. It is raised both at the beginning of
 the Dial, as well as when the Dial completes.

 https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerEvent_Dial

 Note that the Channel: field will contain the name initiating the Dial,
 the Destination: field will contain the channel name being dialled, and
 the Dialstring: field will contain the non-technology specific portion
 of the thing being dialled.
 I get that even on the system with the PRI card and using DAHDI
 however I am not getting that event on the system with the SIP trunk .
 
 Is there something to enable to get that???
 Both systems are running Asterisk 11.0.2.
 

The Dial events are created by app_dial. So long as you are using
app_dial to create your outbound channel, you should have that event.
Channel technology shouldn't matter.

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com  http://asterisk.org



--
_
-- 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