VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
sanjay.rajdev at feath... Guest
|
Posted: Fri Mar 14, 2008 8:56 am Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
I am generating an outbound call through the Manager API and bridging it to an internal Extension, my problem is I am not able to find the logs for the call generated by the Manger API, Since on the same Asterisk server there are many users connected and I am receiving lot of Events back, not able to recognize which was the call generated by me as same time multiple users are dialing out.
Regards,
Sanjay. |
|
Back to top |
|
|
sanjay.rajdev at feath... Guest
|
Posted: Fri Mar 14, 2008 9:38 am Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
Is there way to get the logs of the call generated by Manager API, or is there some other way to achieve same scenario so that I can get the status of the call generated by me.
Actually I have a scenario where I have to call customers and play a message, I do not want to send messages to Manager to generate all the calls at once, I just want to monitor the status of the call placed by me, so that I do not place more than 2 or 3 calls at the same time, hence not consuming all the available line on the Asterisk Server, leaving some lines for other people too.
Please help.
Regards,
Sanjay.
----- Original Message -----
From: "sanjay rajdev" <sanjay.rajdev at featherstoneinformatics.com>
To: "asterisk-users" <asterisk-users at lists.digium.com>
Sent: Friday, March 14, 2008 7:26:00 PM (GMT+0530) Asia/Calcutta
Subject: [asterisk-users] Logs for Call generated by Manager API
I am generating an outbound call through the Manager API and bridging it to an internal Extension, my problem is I am not able to find the logs for the call generated by the Manger API, Since on the same Asterisk server there are many users connected and I am receiving lot of Events back, not able to recognize which was the call generated by me as same time multiple users are dialing out.
Regards,
Sanjay.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
lee at datatrakpos.com Guest
|
Posted: Fri Mar 14, 2008 12:51 pm Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
sanjay.rajdev at featherstoneinformatics.com wrote:
Quote: | Is there way to get the logs of the call generated by Manager API, or is there some other way to achieve same scenario so that I can get the status of the call generated by me.
Actually I have a scenario where I have to call customers and play a message, I do not want to send messages to Manager to generate all the calls at once, I just want to monitor the status of the call placed by me, so that I do not place more than 2 or 3 calls at the same time, hence not consuming all the available line on the Asterisk Server, leaving some lines for other people too.
Please help.
Regards,
Sanjay.
|
I could have sworn I heard/read of a settings that setts the maximum number of
calls for AMI. I could very well be wrong though.
I think you'll have to track the number that you called in the Originate command
against Events specific to dialing like NewState and Hangup events.
I'm been doing quite a bit of work with the AMI lately, but I'm still learning
so take this with a grain of salt.
Anyway, you could track the events as they come in. For instance,
Event: Newstate
Privilege: call,all
Channel: SIP/axVoice-08f9d168
State: Up
CallerID: 3023815555
CallerIDName: <unknown>
Uniqueid: 1205515775.1003
You can check this event to see if the CallerID matches the number that you
called. If so, then store the Channel variable and/or Uniqueid variable to
match against other events that do not provide the CallerID. But now you know
the number and the channel/Uniqueid the call is being made on.
Hangup Event:
Event: Hangup
Privilege: call,all
Channel: SIP/axVoice-08f9d168
Uniqueid: 1205515775.1003
Cause: 16
Cause-txt: Normal Clearing
Here's what you're looking for. From what I can tell, the Hangup event will
always fire if there is a NewState event which makes sense since the call is
"Live" or "up". Here we can take the channel variable and match it against our
application's internal cache of "active" or "attempting" calls and decrement the
count or free object references to ongoing attempts and then fire off another
originate command.
I'm sure someone more knowledgeable will pipe in and correct me where I'm wrong.
HIH though.
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door to
door." |
|
Back to top |
|
|
lee at datatrakpos.com Guest
|
Posted: Fri Mar 14, 2008 12:57 pm Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
sanjay.rajdev at featherstoneinformatics.com wrote:
Quote: | I am generating an outbound call through the Manager API and bridging it to an internal Extension, my problem is I am not able to find the logs for the call generated by the Manger API, Since on the same Asterisk server there are many users connected and I am receiving lot of Events back, not able to recognize which was the call generated by me as same time multiple users are dialing out.
|
Also, I wrote a Windows based utility for viewing AMI packets and testing AMI
commands. It's Freeware:
http://www.voip-info.org/wiki-Asterisk+GUI#OperatorManagerInterfaces
Look for Manager API Test Utility
or download it directly from our site:
http://www.datatrakpos.com/pos/datatalk/dpdownload.aspx
I use it all the time when write apps for AMI.
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door to
door." |
|
Back to top |
|
|
sanjay.rajdev at feath... Guest
|
Posted: Fri Mar 14, 2008 4:22 pm Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
Thanks Lee, Will try to match on Parameter received in message.
Regards,
Sanjay.
----- Original Message -----
From: "Lee Jenkins" <lee at datatrakpos.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Sent: Friday, March 14, 2008 11:27:51 PM (GMT+0530) Asia/Calcutta
Subject: Re: [asterisk-users] Logs for Call generated by Manager API
sanjay.rajdev at featherstoneinformatics.com wrote:
Quote: | I am generating an outbound call through the Manager API and bridging it to an internal Extension, my problem is I am not able to find the logs for the call generated by the Manger API, Since on the same Asterisk server there are many users connected and I am receiving lot of Events back, not able to recognize which was the call generated by me as same time multiple users are dialing out.
|
Also, I wrote a Windows based utility for viewing AMI packets and testing AMI
commands. It's Freeware:
http://www.voip-info.org/wiki-Asterisk+GUI#OperatorManagerInterfaces
Look for Manager API Test Utility
or download it directly from our site:
http://www.datatrakpos.com/pos/datatalk/dpdownload.aspx
I use it all the time when write apps for AMI.
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door to
door."
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
mark.h at cage151.com Guest
|
Posted: Fri Mar 14, 2008 4:41 pm Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
I don't think the link that Lee gave works.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
sanjay.rajdev at featherstoneinformatics.com
Sent: March 14, 2008 5:23 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Logs for Call generated by Manager API
Thanks Lee, Will try to match on Parameter received in message.
Regards,
Sanjay.
----- Original Message -----
From: "Lee Jenkins" <lee at datatrakpos.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Friday, March 14, 2008 11:27:51 PM (GMT+0530) Asia/Calcutta
Subject: Re: [asterisk-users] Logs for Call generated by Manager API
sanjay.rajdev at featherstoneinformatics.com wrote:
Quote: | I am generating an outbound call through the Manager API and bridging it
| to an internal Extension, my problem is I am not able to find the logs for
the call generated by the Manger API, Since on the same Asterisk server
there are many users connected and I am receiving lot of Events back, not
able to recognize which was the call generated by me as same time multiple
users are dialing out.
Also, I wrote a Windows based utility for viewing AMI packets and testing
AMI
commands. It's Freeware:
http://www.voip-info.org/wiki-Asterisk+GUI#OperatorManagerInterfaces
Look for Manager API Test Utility
or download it directly from our site:
http://www.datatrakpos.com/pos/datatalk/dpdownload.aspx
I use it all the time when write apps for AMI.
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door
to
door."
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
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 --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
sanjay.rajdev at feath... Guest
|
Posted: Fri Mar 14, 2008 4:52 pm Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
I would just try parsing the message in my code to make it work. I know this is not a full proof solution but is ok for now, till I get something better.
Regards,
Sanjay.
----- Original Message -----
From: "Mark Hamilton" <mark.h at cage151.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Sent: Saturday, March 15, 2008 3:11:25 AM (GMT+0530) Asia/Calcutta
Subject: Re: [asterisk-users] Logs for Call generated by Manager API
I don't think the link that Lee gave works.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
sanjay.rajdev at featherstoneinformatics.com
Sent: March 14, 2008 5:23 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Logs for Call generated by Manager API
Thanks Lee, Will try to match on Parameter received in message.
Regards,
Sanjay.
----- Original Message -----
From: "Lee Jenkins" <lee at datatrakpos.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Friday, March 14, 2008 11:27:51 PM (GMT+0530) Asia/Calcutta
Subject: Re: [asterisk-users] Logs for Call generated by Manager API
sanjay.rajdev at featherstoneinformatics.com wrote:
Quote: | I am generating an outbound call through the Manager API and bridging it
| to an internal Extension, my problem is I am not able to find the logs for
the call generated by the Manger API, Since on the same Asterisk server
there are many users connected and I am receiving lot of Events back, not
able to recognize which was the call generated by me as same time multiple
users are dialing out.
Also, I wrote a Windows based utility for viewing AMI packets and testing
AMI
commands. It's Freeware:
http://www.voip-info.org/wiki-Asterisk+GUI#OperatorManagerInterfaces
Look for Manager API Test Utility
or download it directly from our site:
http://www.datatrakpos.com/pos/datatalk/dpdownload.aspx
I use it all the time when write apps for AMI.
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door
to
door."
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
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 --
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 --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
lee at datatrakpos.com Guest
|
Posted: Fri Mar 14, 2008 6:27 pm Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
Mark Hamilton wrote:
Both links work. Our website page that I linked to was changed recently which
means .net compiles the page the first time its visited after its changed. I
just tried it, both work
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door to
door." |
|
Back to top |
|
|
lee at datatrakpos.com Guest
|
Posted: Fri Mar 14, 2008 6:36 pm Post subject: [asterisk-users] Logs for Call generated by Manager API |
|
|
Mark Hamilton wrote:
Quote: | I don't think the link that Lee gave works.
|
Oh boy, you were talking about the link to download the software and I
completely misunderstood. My mistake, the link is fixed to download the software.
Here's the direct link:
http://www.datatrakpos.com/pos/datatalk/downloads/astmantest.zip
--
Warm Regards,
Lee
"Everything I needed to learn in life, I learned selling encyclopedias door to
door." |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|