Pin number database & account code field

neeek

Member
Mar 12, 2021
35
4
8
41
I was testing the use of the Pin number app recently and was unable to make a successful call when using "pin_number=database"
when I replaced "database" with a few pin numbers, calls were successful.

After checking logs, and reading the pin_number.lua script, I realised that what was happening was the accountcode variable which
I set in domain_variables dialplan, was being cleared by the script, so the billing engine could not match that call to a client account.
Adding the same account code to a pin number in the pin number app allowed me to make calls successfully using "pin_number=database".

I always assumed that if a variable field was blank then fusion would not make any changes to that variable ?

I know I could always edit the lua script so that it respects whatever is already set if the field is left blank under the pin number
but I would rather not, so that I dont have to remember to update the script everytime I update fusion.