Hi! alright?
Think of a scenario where it is necessary to charge a DID according to the origin number, that is, the DID is the same, but I need to analyze the origin number to know the tariff.
As in the example below, you can see that the DID is the same but the origin is different, and I need to analyze the origin to have different rates:
If
Source Number 5511980808080 → DID: 558008884081 → Destination 1000
Connection Cost = 0
Cost/Min = $1
Grace Time (Sec.) = 3
Initial Increment = 30
increment = 6
case B
Source Number 5511980808080 → DID: 558008884081 → Destination 1000
Connection Cost = 1
Cost/Min = $2
Grace Time (Sec.) = 0
Initial Increment = 60
increment = 60
Currently I can charge the DID with only one condition.
I don’t see how I can parse the source number and put different rates according to the prefix
^5511.*
^5521.*
Any idea?