Questions tagged [cdr]

cdr (/ˈkʌdər/ or /ˈkʊdər/) is primitive operation on cons cells (or "non-atomic S-expressions") introduced in the Lisp programming language.

cdr (/ˈkʌdər/ or /ˈkʊdər/) is primitive operation on cons cells (or "non-atomic S-expressions") introduced in the Lisp programming language. A cons cell is composed of two pointers; The cdr operation extracts the second pointer.

Thus, the expression (cdr (cons x y)) evaluates to y.

For Compact Disc Recordable, use instead.

Source: Wikipedia

103 questions
1
vote
1 answer

How To change CDR logs "Master.csv" , asterisk logs, to Data Wise

Greeting Day to all of you,Hope you are doing well. I have a small questions : I wanted to change my Master.csv file format into date-wise csv file because it will manage easily and will be readable too. Also tell me the process how to change…
Manoj
  • 11
  • 1
  • 7
1
vote
1 answer

What is the difference between `(mcons (mcons '() 25) 16)` and `(mcons 25 (mcons 16 `()))`

I am busy with Structure and Interpretation of Computer Programs exercise 2.18. Here we have to define a procedure reverse to reverse a list. It should do the following: (reverse (list 1 4 9 16 25)) ;; => (25 16 9 4 1) I came up with the following…
user2609980
  • 10,264
  • 15
  • 74
  • 143
1
vote
1 answer

Asterisk 1.8 cdr-adaptive mysql

i'm having a little problem. I'm using Debian and I got asterisk 1.8 and I want to use CDR along with mysql. In Asterisk 1.8 you apparently gotta use cdr-adaptive module instead of the regular. That is just what I did. Now I have 1 error when I…
Joooooom
  • 103
  • 1
  • 8
1
vote
1 answer

How to find substring inside string generated from get_file_contents() on a CDR file

I've been working around a long time trying to solve this problem, but no success until now. I need to grab a string that is passed to a Keywork when saving a CDR file, but as far as I've tried, I have just failed! I can't read the substring even…
Gilberto Albino
  • 2,572
  • 8
  • 38
  • 50
0
votes
2 answers

Why does element retrieving using car and cdr operations cause exception while (append) is not?

Suppose I got this code segment: (defparameter *islands* '((1 9 8 5) (6 4 2 3))) (defun edge-pair (a b) (unless (eql a b) (list (cons a b) (cons b a)))) (defun connected-with-bridges (islands) (when (cdr islands) (append (edge-pair…
Amumu
  • 17,924
  • 31
  • 84
  • 131
0
votes
2 answers

What is the result of this in scheme: (cdr '((a b c d)))

Isn't it supposed to be (a b c d) ?? When I try it on Racket it gives me () .
0
votes
1 answer

Java read .cdr-File

right now I#m trying to write a program which reads a .cdr-File. The Format of the CDR-File looks like this: *************** * File header * *************** File…
0
votes
1 answer

Can a macro be used to make c[...]r combinations with any arbitrary number of car and cdr calls, such as cadaddr?

I recently discovered that all of my implementations of Scheme throw an error when I try to use (cadaddr (list 1 3 (list 5 7) 9)). Apparently, by default Scheme does not allow any car and cdr combinations in the single-function form that use more…
J. Mini
  • 1,868
  • 1
  • 9
  • 38
0
votes
1 answer

AWS Cognito OIDC Customizations

https://consumerdatastandardsaustralia.github.io/standards/#security-profile I am trying to setup AWS Cognito as an OIDC provider. Able to create User pool however there are lots of custom data needed. Such as ".well-known/openid-configuration" of…
Tarun
  • 35
  • 1
  • 1
  • 6
0
votes
1 answer

Kamailio 5.4 Send CDR data to an API endpoint

I wonder if there is a way to send the cdr data from kamailio server to an API endpoint. I have a kamailio server with acc and dialog modules to produce cdr records. I don't want to log the CDR in a database backend after the call terminates. I…
Anis Bedhiafi
  • 185
  • 1
  • 5
  • 22
0
votes
1 answer

Where should transaction records go? Flat file or Database

I'm developing a Java Enterprise Application which needs to write transaction records either to flat files or directly to a relational database. Transaction records are records which show when the transaction starts, ends, transaction status…
sarahTheButterFly
  • 1,894
  • 3
  • 22
  • 36
0
votes
1 answer

calculate subscriber’s frequency of calls SQL Netezza

i'm working on CDR (Call Details Record) data for Telecom company in a report with a billions of rows, I ask for a SQL query that let me analyzing a subscriber’s frequency of calls made to specific MSISDNs, to guide which subscribers should be…
0
votes
1 answer

Error in Insert Value "answer" in CDR Database Asterisk

This error occurs to me sometimes when the call is hung up. The rest is saved normally. I expose a bad record and a good one [Dec 6 19:47:19] ERROR[31348][C-00000045]: cdr_mysql.c:349 mysql_log: Failed to insert into database: (1292) Incorrect…
Gustavo Gil
  • 129
  • 3
0
votes
1 answer

Asterisk Make Menu Select mysql_odbc option is disabled

I am trying to compile asterisk. Version : 13.28.0 I am want to store my CDR into database, So I want to install mysql_odbc addon while compiling/installing asterisk. However when I am compiling it I am getting the MYSQL_ODBC disabled (XXX). How do…
Rajan
  • 2,427
  • 10
  • 51
  • 111
0
votes
1 answer

How to query tables to get cost of call

What Query would I need to do to calculate cost of calls in mysql database? Ive got two tables, one is a call log with call duration, and the other table is the tariff table with peak and offpeak rates, peaktime is 08:00:00 - 19:00:00 offpeak time…
Adnan
  • 1
  • 1