VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
alonso at planetfone.c... Guest
|
Posted: Thu Nov 20, 2014 1:11 pm Post subject: [asterisk-users] Error saving cdr at h exten in Asterisk13 |
|
|
Dears,
I need to save some information on userfield when calls end in Asterisk13, but I have two error cases:
1. With endbeforehexten=no in cdr.conf, I have a registry in cdr, but userfield is not set.
2. With endbeforehexten=yes, I have two lines in cdr, one with duration, src e dst correct, and a second line with userfield setting and dst h.
I am using cdr_odbc.conf, with Asterisk11.14.0 it works fine. May be this is a bug in asterisk13's cdr?
pabx=# select calldate,src,dst,duration,billsec,uniqueid,userfield from cdr order by calldate desc limit 2;
calldate | src | dst | duration | billsec | uniqueid | userfield
------------------------+------+------+----------+---------+--------------+-----------
2014-11-20 14:37:03-02 | 1901 | h | 0 | 0 | 1416501411.0 | teste
2014-11-20 14:36:51-02 | 1901 | 1234 | 11 | 9 | 1416501411.0 |
(2 registros)
Atenciosamente,
Alonso Genis
Analista de Desenvolvimento
alonso@planetfone.com.br
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
mjordan at digium.com Guest
|
Posted: Thu Nov 20, 2014 1:18 pm Post subject: [asterisk-users] Error saving cdr at h exten in Asterisk13 |
|
|
On Thu, Nov 20, 2014 at 12:10 PM, Alonso Genis <alonso@planetfone.com.br> wrote:
Quote: | Dears,
I need to save some information on userfield when calls end in Asterisk13, but I have two error cases:
1. With endbeforehexten=no in cdr.conf, I have a registry in cdr, but userfield is not set.
2. With endbeforehexten=yes, I have two lines in cdr, one with duration, src e dst correct, and a second line with userfield setting and dst h.
I am using cdr_odbc.conf, with Asterisk11.14.0 it works fine. May be this is a bug in asterisk13's cdr?
pabx=# select calldate,src,dst,duration,billsec,uniqueid,userfield from cdr order by calldate desc limit 2;
calldate | src | dst | duration | billsec | uniqueid | userfield
------------------------+------+------+----------+---------+--------------+-----------
2014-11-20 14:37:03-02 | 1901 | h | 0 | 0 | 1416501411.0 | teste
2014-11-20 14:36:51-02 | 1901 | 1234 | 11 | 9 | 1416501411.0 |
(2 registros)
|
If you are setting the userfield in the 'h' extension, then this is
what I would expect. CDRs are finalized when the path of communication
between channels is finished; altering the data after that point
updates the next CDR for that channel. It isn't retroactive.
The 'h' extension is special in that 'endbeforehexten' explicitly
ignores updates in 'h' extension. If you disable 'endbeforehexten',
then you will get a CDR for the channel while it updates the hangup
logic - but again, modifications occur on that CDR, not on previous
ones.
If you want the CDR for the channel prior to the 'h' extension to have
a userfield entry, you have to apply it before the channel hangs up.
--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
alonso at planetfone.c... Guest
|
Posted: Fri Nov 21, 2014 5:38 am Post subject: [asterisk-users] Error saving cdr at h exten in Asterisk13 |
|
|
Quote: |
If you are setting the userfield in the 'h' extension, then this is
what I would expect. CDRs are finalized when the path of communication
between channels is finished; altering the data after that point
updates the next CDR for that channel. It isn't retroactive.
The 'h' extension is special in that 'endbeforehexten' explicitly
ignores updates in 'h' extension. If you disable 'endbeforehexten',
then you will get a CDR for the channel while it updates the hangup
logic - but again, modifications occur on that CDR, not on previous
ones.
If you want the CDR for the channel prior to the 'h' extension to have
a userfield entry, you have to apply it before the channel hangs up.
|
I see. Thank you for your answer.
Alonso.
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|