[asterisk-dev] [Feature Request]: uniqueid in RDNIS
Christian B
bencokakao at gmail.com
Mon Mar 13 12:19:08 MST 2006
On Mon, 13 Mar 2006 16:02:32 +0100
Domjan Attila <adomjan at tvnet.hu> wrote:
> Hi,
> I think have to implement the CDR(rdnis) and configure it in the
> cdr_custom, it won't brake the fromat of cdr_csv.
> Currently I set the CDR(rdnis) in dialplan when call forward detected.
>
> Regards,
> Attila
>
> On Mon, 2006-03-13 at 15:30 +0100, Christian B wrote:
> > Hello!
> >
> > For billing purpose, i'd like to be able to associate a redirected call to the initiating call-leg.
> > The second call-leg has to be paid by the person the call was targeted at, but who redirected it e.g. to a zap-destination. Since the billseconds are written to the first call-leg, i need to find out which record the second call-leg belongs to.
> > Currently i do this pretty ugly by writing a key(as variables EPOCH & EXTEN) with the value 'uniqueid' to the ast-db and rereading it on the second call-leg by searching the key with the RDNIS-Variable(was EXTEN on first call-leg) in a epoch-range of 60 seconds(with a loop) - Then i can read the uniqueid, write it to the userfield and bill it later.
> > If the uniqueid of the first call-leg was written to the RDNIS-Variable already, this would be a lot easier, cleaner and accurate. Unfortunately i can't code C, maybe someone has the time to add the required code? thanks in advance!
> >
> > regards
> > chris
I'm using cdr_pgsql for billing(and i use userfield for this). also it doesn't help to set the rdnis-variable in the cdr-records as i can only set it for the current record, not an older record the current record is associated with.
regards
christian
More information about the asterisk-dev
mailing list