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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130421/e605b193/attachment.htm>
But you do have a cdr with disposition "NO ANSWER", do you?
Yes, I do. I am not sure I understand how that helps. Regards HASSAN On Sun, Apr 21, 2013 at 10:36 AM, jg <webaccounts at 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-**users<http://lists.digium.com/mailman/listinfo/asterisk-users> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130421/6444019b/attachment.htm>
"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
Hi, On Sun, Apr 21, 2013 at 9:57 PM, jg <webaccounts at 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.html<http://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-**users<http://lists.digium.com/mailman/listinfo/asterisk-users> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130425/9c7cdc0b/attachment.htm>