Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Overview

Sipx CDR Log is a RESTLET plugin which provides a resource whereby one can obtain the
Call Logs for a particular user. Records are sorted by start date in descending
order.

...

https://host:6666/cdr/user?fromdate=yyyymmdd&limit=<max # of records to return>

Optional URL parameters:

fromdate - start date from which call records will be retrieved.
limit - maximum number of call log records to return.

Examples

Using curl, you would initiate a query for the specified user calling records

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Results>
	<Row><caller<Row>
            <caller_aor>"200" &lt;sip:200@domain.com&gt;</caller_aor><calleeaor>
            <callee_aor>&lt;sip:1201@domain.com&gt;</				callee_aor><calleeaor>
            <callee_contact>&lt;sip:202@11.126.12.21:1319&gt;</callee_contact><startcontact>
            <start_time>2011-01-16 09:08:57.713</start_time><duration>0time>
            <duration>0 years 0 mons -2 days -23 hours -59 mins -35.811 secs</duration><termination>C</termination><calleeduration>
            <termination>C</termination>
            <callee_route>INT</callee_route><route>
        </Row>
	<Row><caller<Row>
            <caller_aor>"Alejandro 201" &lt;sip:501@domain.com&gt;</caller_aor><calleeaor>
            <callee_aor>"Buddy 200" &lt;sip:200@external200201.com&gt;</callee_aor><calleeaor>  
            <callee_contact>&lt;sip:200@192.168.3.2:15060&gt;</callee_contact><startcontact>
            <start_time>2011-01-15 14:14:11.853</start_time><duration>0time>
            <duration>0 years 0 mons 0 days 0 hours 0 mins 4.231 secs</duration><termination>C</termination><calleeduration>
            <termination>C</termination>
            <callee_route>null</callee_route><route>
        </Row>
	<Row><caller<Row>
            <caller_aor>"200" &lt;sip:200@domain.com&gt;</caller_aor><calleeaor>
            <callee_aor>&lt;sip:201@domain.com&gt;</callee_aor><calleeaor>
            <callee_contact>&lt;sip:202@11.126.12.21:1319&gt;</callee_contact><startcontact>
            <start_time>2011-01-13 09:08:57.713</start_time><duration>0time>
            <duration>0 years 0 mons 0 days 0 hours 0 mins 24.189 secs</duration><termination>C</termination><calleeduration>
            <termination>C</termination>
            <callee_route>INT</callee_route><route>
        </Row>
	<Row><caller<Row>
            <caller_aor>"asd"&lt;sip:201@domain.com&gt;</caller_aor><calleeaor>
            <callee_aor>"200"&lt;sip:200@domain.com&gt;</callee_aor><calleeaor>
            <callee_contact>&lt;sip:201@11.126.12.21:1320&gt;</callee_contact><startcontact>
            <start_time>2011-01-13 09:08:08.724</start_time><duration>0time>
            <duration>0 years 0 mons 0 days 0 hours 1 mins 28.431 secs</duration><termination>C</termination><calleeduration>
            <termination>C</termination>
            <callee_route>INT</callee_route><route>
        </Row>
	<Row><caller<Row>
            <caller_aor>"200" &lt;sip:200@domain.com&gt;</caller_aor><calleeaor>
            <callee_aor>&lt;sip:201@domain.com&gt;</callee_aor><calleeaor>
            <callee_contact>&lt;sip:201@11.126.12.21:1320&gt;</callee_contact><startcontact>
            <start_time>2011-01-13 09:06:15.806</start_time><duration>0time>
            <duration>0 years 0 mons 0 days 0 hours 0 mins 31.454 secs</duration><termination>C</termination><calleeduration>
            <termination>C</termination>
            <callee_route>null</callee_route><route>
        </Row>
</Results>