[asterisk-dev] [Feature Request]: uniqueid in RDNIS

Christian B bencokakao at gmail.com
Mon Mar 13 07:30:41 MST 2006


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



More information about the asterisk-dev mailing list