[asterisk-dev] [Feature Request]: uniqueid in RDNIS
Domjan Attila
adomjan at tvnet.hu
Mon Mar 13 08:02:32 MST 2006
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
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20060313/51813f48/attachment.pgp
More information about the asterisk-dev
mailing list