Re: [asterisk-users] CDR Question
Hi, On Sun, Apr 21, 2013 at 9:57 PM, jg webaccou...@jgoettgens.de wrote: lastdata is the argument string of lastapp. Since Hangup() does not have any args, lastdata is empty. If you need to store things that are not already stored, you can either use the userfield or add extra columns to the cdr table, which depends to some degree on how you store the call data. Details can be found here: http://www.asteriskdocs.org/** en/3rd_Edition/asterisk-book-**html-chunk/database_storing-**cdr.htmlhttp://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/database_storing-cdr.html Thank you JG for your advice. I already understand why I am seeing a blank. I was hoping a simple catch all type setting, that I can parse from the CDR file by the script, rather than have to play around in the Dialplan to get some variables in the CDR. Regards HASSAN jg -- __**__**_ -- 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] CDR Question
Yes, I do. I am not sure I understand how that helps. Regards HASSAN On Sun, Apr 21, 2013 at 10:36 AM, jg webaccou...@jgoettgens.de wrote: But you do have a cdr with disposition NO ANSWER, do you? -- __**__**_ -- 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] CDR Question
lastdata is the argument string of lastapp. Since Hangup() does not have any args, lastdata is empty. If you need to store things that are not already stored, you can either use the userfield or add extra columns to the cdr table, which depends to some degree on how you store the call data. Details can be found here: http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/database_storing-cdr.html jg -- _ -- 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] CDR Question
Hi, We have an asterisk box with Digium 4xE1 card running libss7. All is well, except for a CDR issue about incoming calls whose DNID (local numbers) are not valid. In the dialplan, we do a check if the incoming call has a particular prefix for DNID. If it does not, then we hangup the call with 403 or 404, as applicable. For these calls, no lastdata is recorded. What we understand is, this is perhaps the desired behaviour, as the lastapp was Hangup and not Dial. What would be the strategy to correctly store the incoming number for these calls? Regards HASSAN -- _ -- 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] CDR Question
But you do have a cdr with disposition NO ANSWER, do you? -- _ -- 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] cdr question
Hello, I'm using Asterisk 1.6.X version and I'm creating IVR. My question : is it possible create CDR record , before client is exiting from contexts ? My test dialplan is: context Sales { _X. = { Ringing(); Wait(4); Answer(); Playback(tt-monkeys); goto Techs|${EXTEN}|1; } } context Techs { _X. = { Playback(tt-monkeys); Playback(tt-monkeys); goto Manager|${EXTEN}|1; } } context Manager { _X. = { Playback(tt-monkeys); Playback(tt-monkeys); Playback(tt-monkeys); Hangup(); }; }; So is it possible get 3 CDR records with , and each cdr had different dcontext: Sales, Techs and Manager? Thanks for help ___ -- 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] cdr question
Forkcdr may be the thing you need. As I understand it, it does a snapshot cdr record and continues with the call. _ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Giedrius Augys Sent: Tuesday, December 15, 2009 6:08 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] cdr question Hello, I'm using Asterisk 1.6.X version and I'm creating IVR. My question : is it possible create CDR record , before client is exiting from contexts ? My test dialplan is: context Sales { _X. = { Ringing(); Wait(4); Answer(); Playback(tt-monkeys); goto Techs|${EXTEN}|1; } } context Techs { _X. = { Playback(tt-monkeys); Playback(tt-monkeys); goto Manager|${EXTEN}|1; } } context Manager { _X. = { Playback(tt-monkeys); Playback(tt-monkeys); Playback(tt-monkeys); Hangup(); }; }; So is it possible get 3 CDR records with , and each cdr had different dcontext: Sales, Techs and Manager? Thanks for help ___ -- 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] CDR question
Jim-- On Thu, Jun 4, 2009 at 1:40 AM, Jim Boykin boykin...@gmail.com wrote: Hi, Asterisk does not post CDR when dial status is CHANUNAVAIL. CDR's are, at the current time, and always have been attached to the channel struct; so, if you don't create a channel, then there is nowhere to attach a CDR, and no way to process that. Can someone tell me what are the conditions under which CDR is not posted? We try to filter the CDR if a channel were created, but did nothing; an example is where a Dahdi device is taken off hook, and then hung up again. But getting all the conditions right has been tricky to filter this sort of event sequence. I think you'll find that CDR's are one of the least solid parts of Asterisk at the moment. There's brave and creative folks working on fixing the current implementation, but as far as I'm concerned, it's got some fundamental problems, and needs to be overhauled. If you are interested, you can read my spec for a new approach by: svn co http://svn.digium.com/svn/asterisk/team/murf/RFCs and then looking at the pdf in that dir, for my spec for the CEL-CDR proposal. While I have abominated the complexity of the ForkCDR/NoCDR/etc mechanisms of the current solution, I have considered making the spec include them for backward compatibility... Current implementations based on the current mechanisms shouldn't have to be made obsolete, although they usually do depend on a great deal of undocumented behavior, that may be tricky to imitate. murf Thanks Jim -- Steve Murphy ParseTree Corp ___ -- 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
[asterisk-users] CDR question
Hi, Asterisk does not post CDR when dial status is CHANUNAVAIL. Can someone tell me what are the conditions under which CDR is not posted? Thanks Jim ___ -- 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
[asterisk-users] cdr question
Hi, Would just like to ask about cdr, i have an asterisk and i would like to bill only outbound calls not extension to extension, when i'm looking at the CDR, i can't figure out which fields i need to filter all outbound calls only. e.g if i dial 00. or 9XX (for local pstn calls) those are billable, 100 101 or 102 (all local extensions) not billable. *97 for voicemail not billable, but still is being logged on the cdr, can i disable logging to cdr calls like that(*98,*1,etc.)? also, the time the call ended is not logged, is there a way to log that? TIA ron - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.___ -- 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] cdr question
ronald ramos schrieb: Would just like to ask about cdr, i have an asterisk and i would like to bill only outbound calls not extension to extension, when i'm looking at the CDR, i can't figure out which fields i need to filter all outbound calls only. e.g if i dial 00. or 9XX (for local pstn calls) those are billable, 100 101 or 102 (all local extensions) not billable. *97 for voicemail not billable, but still is being logged on the cdr, can i disable logging to cdr calls like that(*98,*1,etc.)? NoCDR() ? Regards, Philipp Kempgen -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? - http://www.das-asterisk-buch.de Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ -- 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
[asterisk-users] CDR question with SIP/IAX trunks
Hi, scenario: Call comes in via ISDN BRI on Asterisk A. Callerid (set by zapata) is let's say 0151123456789. In the incoming context I prepend a 0 to that callerid. My snom correctly displays 00151123456789. The call is also forwarted to Asterisk B. On the incoming context of Asterisk B I prepend yet another prefix 98. The callerid now is 9800151123456789 which is correctly displayed on the SNOM on Asterisk B. So far so good. The CDR on Asterisk B logs the callerid 001511234567890 though and ignores the prepended 98. Any ideas why? Kind regards, JP ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] CDR question with SIP/IAX trunks
Sorry for replying to my own post: I just switch the connection from Asterisk A to Asterisk B from SIP to IAX without changing anything else (dialplans on both system are the same). Now the correct callerID is logged. The behaviour changed from 1.2.9 to 1.2.10 I suppose since this worked without problems in August. After my switch to the new version, this started going wrong... Any ideas? ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] CDR question with SIP/IAX trunks
Ok... I got it. Someone changed the CDRs to reflect CALLERID(ANI) instead of CALLERID(number) in 1.2.10. According to the release notes this was taken back in 1.2.12. I do not know why this was not done for IAX as well so it would have been consistent at least but well... I am either going to set ANI now or upgrade to 1.2.12... :-) ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] CDR question
Hi, i'm trying without success to change the dst (destination) entry of the cdr. I'm using the following: exten=_2006234500254.,2,SetVar(CDR(dst)=${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/${EXTEN:[EMAIL PROTECTED],60,tr) I want to record into the cdr only the called number, but in the cdr appears the prefix 2006234500254. I read this doc: http://digium-cvs.netmonks.ca/viewcvs.cgi/asterisk/doc/README.variables?rev=1.44 Can anybody help me? Thanks in advance -- Marc Patino Gómez Dpto. Sistemas Claranet España. Servicios Internet C/General Almirante 2-28, Torres Cerdá 08014 Barcelona Tel: +34 93 445 26 50 Fax: +34 93 445 19 20 www.claranet.es Claranet Group: United Kingdom - Spain - France - Germany - Portugal - Netherlands - USA ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] CDR question
i'm trying without success to change the dst (destination) entry of the cdr. I'm using the following: exten=_2006234500254.,2,SetVar(CDR(dst)=${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/${EXTEN:[EMAIL PROTECTED],60,tr) I want to record into the cdr only the called number, but in the cdr appears the prefix 2006234500254. Would you try: exten=_2006234500254.,2,Set(destination = ${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/[EMAIL PROTECTED],60,tr) Benchev ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] CDR question
I tried it, it didn't work, and I tried without success the following exten=_2006234500254.,2,SetVar(destination = ${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/[EMAIL PROTECTED],60,tr) Any help will be welcome thanks Benchev wrote: i'm trying without success to change the dst (destination) entry of the cdr. I'm using the following: exten=_2006234500254.,2,SetVar(CDR(dst)=${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/${EXTEN:[EMAIL PROTECTED],60,tr) I want to record into the cdr only the called number, but in the cdr appears the prefix 2006234500254. Would you try: exten=_2006234500254.,2,Set(destination = ${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/[EMAIL PROTECTED],60,tr) Benchev ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Marc Patino Gómez Dpto. Sistemas Claranet España. Servicios Internet C/General Almirante 2-28, Torres Cerdá 08014 Barcelona Tel: +34 93 445 26 50 Fax: +34 93 445 19 20 www.claranet.es Claranet Group: United Kingdom - Spain - France - Germany - Portugal - Netherlands - USA ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] CDR question
On Tuesday 14 March 2006 17:15, Benchev wrote: i'm trying without success to change the dst (destination) entry of the cdr. I'm using the following: exten=_2006234500254.,2,SetVar(CDR(dst)=${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/${EXTEN:[EMAIL PROTECTED],60,tr) I want to record into the cdr only the called number, but in the cdr appears the prefix 2006234500254. Would you try: exten=_2006234500254.,2,Set(destination = ${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/[EMAIL PROTECTED],60,tr) Yep fast end stupid. Sorry, it wont work that way. Benchev ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] CDR question
i'm trying without success to change the dst (destination) entry of the cdr. I'm using the following: exten=_2006234500254.,2,SetVar(CDR(dst)=${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/${EXTEN:[EMAIL PROTECTED],60,tr) I want to record into the cdr only the called number, but in the cdr appears the prefix 2006234500254. But this should do it: exten=_2006234500254.,2,Set(CDR(dst) = ${EXTEN:10}) exten=_2006234500254.,3,Dial(OH323/${EXTEN:[EMAIL PROTECTED],60,tr) Benchev ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] CDR question
There is an extra field in the database called 'userfield' whose value you can set with the SetCDRUserField() command in your dialplan. Personally, I use it for recorded calls; I write the recording file name into that field so I can display it for each recorded call. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Hill Sent: Friday, January 07, 2005 11:13 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] CDR question I use the CDR CVS file for logging my home phone system. Can I force write data to a CDR Field from an extensions macro? Say if the callerid was empty and I dumped the call to put data in the CDR to let me know that is what happened. Thanks --John ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.7 - Release Date: 12/30/2004 -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.7 - Release Date: 12/30/2004 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] CDR question
I use the CDR CVS file for logging my home phone system. Can I force write data to a CDR Field from an extensions macro? Say if the callerid was empty and I dumped the call to put data in the CDR to let me know that is what happened. Thanks --John ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] CDR Question
How can I tell the dialled number from CDR records? We need to be able to bill our provider based on the dialled number. Is this possible? Ben Merrills Griffin Internet T: 0870 8040862 F: 0870 8040805 W: www.griffin.com ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] CDR question
Hi, I would like to know how suppress number for outside dialling in CDR table. For example, if I need press 9 key to make an outside call, I would like that the number in dst field in cdr table was the outside number without 9 key. It's possible? Thanks in advance, srsergio ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users