[Freeswitch-users] Some help with my post-paid billing project
Diego Viola
diego.viola at gmail.com
Tue Oct 13 14:58:47 PDT 2009
Should I try to pass the whole DNIS and compare with teh rates list/table
and when a prefix from the DNIS matches with the rates list I get hte rate
that way?
On Tue, Oct 13, 2009 at 9:53 PM, Diego Viola <diego.viola at gmail.com> wrote:
> Hello,
>
> I'm trying to write a post-paid billing script, I have the CDR on my
> database and also a "rates" table, the CDR contains fields like
> caller_destination_number, variable_duration, etc. and the rates table
> contains: destination, prefix, rate (cost).
>
> The problem is that I can't just strip the destination number to take the
> prefix from it because I have to deal with destination numbers from
> different countries and they all have different prefix lengths... so I need
> to find another way to take the prefix from the destination number.
>
> Any ideas how to do this?
>
> Thanks,
>
> Diego
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091013/be0985f0/attachment-0002.html
More information about the FreeSWITCH-users
mailing list