[Tutorial] ASTPP 4 Tutorial : Local Number

Dear Community Members,

Greetings of the day !!

Here we like to share an ASTPP 4 Tutorial : Local Number

Learn about the addon Local Numbers, how it can be configured and works

This is a great feature but unfortunately it does not work at all in ASTPP version 6.

  1. It tries to bill the call to the original DID provider (if IP authentication is enabled for DIDs from this provider) instead of the end user who the local number was assigned to. However, IP authentication must be used to allow the call through the ACL firewall.
  2. Once assigned to an end user, the number cannot be deleted anymore.

2024-02-29 19:06:27.507700 96.77% [INFO] switch_cpp.cpp:1466 [ASTPP] [Dialplan] Call direction : outbound
2024-02-29 19:06:27.507700 96.77% [DEBUG] switch_cpp.cpp:1466 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON(“22.19.18.17”) BETWEEN(INET_ATON(SUBSTRING_INDEX(ip, ‘/’, 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(ip, ‘/’, -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(ip, ‘/’, 1)) |((0x100000000 >> SUBSTRING_INDEX(ip,‘/’, -1)) -1)) AND “16179999999” LIKE CONCAT(prefix,‘%’) ORDER BY LENGTH(prefix) DESC LIMIT 1
2024-02-29 19:06:27.507700 96.77% [INFO] switch_cpp.cpp:1466 [ASTPP] [Accountcode : 1234567899]

Not sure why you are posting tutorials on such an old version

It probably works on the paid version. most of tutorials are based on that

I did not post the tutorial. I only posted a comment after I tried the feature. It seemed interesting. Would be nice if it actually worked.

I know you did not, and why I replied to the OP about it, and not you

My bad. :grinning: