[asterisk-users] How to tie orders taken to specific CDR records
Bharat Lalcheta
bharatlalcheta at gmail.com
Sat Oct 27 04:26:37 CDT 2012
Its depends on dialplan and the way you treat the call.
On Fri, Oct 26, 2012 at 7:54 PM, Mitch Claborn <mitch_ml at claborn.net> wrote:
> Looking at the uniqueid, I get multiple records for some of them. Am I
> getting more than one CDR record per call in some cases?
>
> SELECT uniqueid, COUNT(*) FROM asterisk_cdr
> GROUP BY uniqueid
> HAVING COUNT(*) > 2
>
>
> Mitch
>
>
> On 10/26/2012 08:34 AM, Bharat Lalcheta wrote:
>
>>
>> Every CDR has uniqueid/callid generated and unique between all records.
>> This callid generated when call arrives on system. And logged in CDR
>> record as well. You can use it in your dialplan to bind with your order
>> like
>> exten => s,1,Set(ORDERID=${UNIQUEID})
>>
>
> --
> ______________________________**______________________________**_________
> -- 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>
>
--
Bharat Lalcheta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121027/a15accfa/attachment.htm>
More information about the asterisk-users
mailing list