[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
Re: [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 [EMAIL PROTECTED] To: asterisk-users asterisk-users@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 ___ -- 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
Re: [asterisk-users] Logs for Call generated by Manager API
[EMAIL PROTECTED] wrote: 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: 302381 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. ___ -- 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
Re: [asterisk-users] Logs for Call generated by Manager API
[EMAIL PROTECTED] wrote: 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
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 [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@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 [EMAIL PROTECTED] wrote: 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
Re: [asterisk-users] Logs for Call generated by Manager API
I don't think the link that Lee gave works. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] 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 [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@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 [EMAIL PROTECTED] wrote: 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
Re: [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 [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] 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 [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@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 [EMAIL PROTECTED] wrote: 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 ___ -- 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
Re: [asterisk-users] Logs for Call generated by Manager API
Mark Hamilton wrote: I don't think the link that Lee gave works. 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. 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. ___ -- 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
Re: [asterisk-users] Logs for Call generated by Manager API
Mark Hamilton wrote: 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. ___ -- 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