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
0
votes
1 answer

How to limit the number of call record in CDR file

My call records are getting store in /var/log/asterisk/cdr-csv/Master.csv file. i want to limit the number of call to be stored ni this file, after that it should start form the beginning, so for this what could be procedure
0
votes
2 answers

Using lambda with cdr and car in Scheme

I define a list by using quotes. Then, I try to define a lambda operation by using elements of this list which I get with cdr and car. But the defined lambda operation gives an error about its number of parameters. The error message is: ;The…
bo_
  • 35
  • 8
0
votes
4 answers

How to get a pointer to the tail of a list in OCaml?

With lisps (e.g. Scheme), one can test whether or not two list tails are identical: (define ls '(1 2 3)) (define tail1 (cdr ls)) ; Get the tail of the list. (define tail2 (cdr ls)) (eqv? tail1 tail2) ; Check if identical. Returns true. How can…
Flux
  • 9,805
  • 5
  • 46
  • 92
0
votes
2 answers

Call Detail Records (CDR) specifications

My question is about CDR (Call detail Records). I want to know more about that. I searched a lot (in Google and other sites) but unfortunately there is few reference and i couldn't find answere of my questions in none of them (Please share any…
yasz5712
  • 27
  • 1
  • 2
0
votes
2 answers

Asterisk Wrong Billsec

The problem is this: I have an Asterisk server, with a custom context to count and set limit call time to the extensions. I see that the Billsec values on the DB, is wrong, because it is counting since the call is ringing, not when the call is…
0
votes
2 answers

ASTERISK. Adding a header to the CDR

Aterisk 13. Customized diplane. Calls are working, CDR is written. But I need to add my own title to the CDR during the call. Example extensions.conf: exten => _1XX, n, SIPAddHeader (Test-header: 123) exten => _4XX, n, Set (CDR (Test column) = $…
0
votes
1 answer

Why A2billing doesn't charge customer-to-customer calls?

I have installed A2Billing+Asterisk13.18-cert3. Outgoing calls are configured and billed correctly. Once a customer calls another, two CDR records stored, Calltype:DID_Voip and CallType:DID-ALEG, but none of them are charged and the charges are…
0
votes
1 answer

Python function that returns tail of list

Does there exist a python function that returns the tail of a list? For the purposes of doing something succinct like: >>> triplets = [[1,2,3],[1,2,3],[1,2,3]] >>> [cdr(t) for t in triplets] [[2,3],[2,3],[2,3]] N.B. This is a different scenario…
category
  • 2,113
  • 2
  • 22
  • 46
0
votes
2 answers

Get nth cdr of a list without using nthcdr

I'm a Common Lisp beginner struggling with one of my assignment... One of my CS assignment is to create a function which basically works as the built-in nthcdr function of clisp. We will call it ncdr: (ncdr n L) => n being the cdr we want to…
Yoshiki
  • 57
  • 5
0
votes
1 answer

Asterisk abandoned calls

I have some realtime tables, those named cdr and queue_log. I can get reports from that tables. These are "Cdr details" and "Abandoned calls". But i have a problem. I can see who abandoned the queue and do voicemail. But what about other stuffs. If…
0
votes
1 answer

How to configure call detail record (CDR) path asterisk?

I am working with Asterisk. I config Asterisk auto write CDR to SQLite3 and the file is Master.db By default, this file location in "var/log/asterisk/Master.db". But now I want to change this path, I want Asterisk auto write CDR to another…
ThanhLam112358
  • 878
  • 1
  • 20
  • 51
0
votes
1 answer

MariaDB - CONNECT ENGINE - ORDER BY error

I'm trying to get Asterisk CDR records from MySQL table (5.5.45) by CONNECT engine on other server running MariaDB (10.0.29). I can create the connection between table easily: CREATE TABLE `calls` engine=CONNECT…
Jan Pavlik
  • 21
  • 8
0
votes
1 answer

Strings as argument to function Scheme Racket

I want to get two strings as arguments, and check if the first string is the beginning of the second string. I cannot get that since I don't know how to get strings as arguments to my function. (define starts-with( lambda (prefix str) …
mooly
  • 113
  • 1
  • 8
0
votes
1 answer

Scheme Program processing sub lists into one list

I have just started learning scheme, and I find the cons-cdr part a bit hard to understand. I am making a function which takes a list, then displays all the atoms in that list, including in the sub lists as if it were one big list. It would look…
P. Rick
  • 3
  • 4
0
votes
0 answers

Python-uniconvertor: error converting cdr documents

I am trying to use Python-uniconvertor for converting cdr documents to pdf documents. But it is giving me an error. I am on Ubuntu 14.04. $ uniconvertor CDIP_6.cdr CDIP.pdf Cannot list directory /home/rashmi/.uniconvertor:[Errno 2] No such file…