Re: [ASTPP] CallerID list under CustomerProfile ... how does it work?

450 views
Skip to first unread message

Devang Nathwani

unread,
May 24, 2019, 12:54:55 AM5/24/19
to as...@googlegroups.com
Hello Alex,

Thanks for showing interest in ASTPP.
"I noticed that CallerIDs are stored in ani_map table, which seems to be used only for CallingCards (auth_callingcard() -> get_ani())," So its not for the usage which you want to achieve.

- Caller-ID based auth is not there in v3.6, either sip-device based or ip based(as in your case)
- You can use 'force-callerid' field from customer list view; assign the DID to this customer and system will override the caller id whichever came from leg A
- I don't think you are doing anything wrong, your configuration flow seems correct.


On Tue, May 21, 2019 at 6:57 PM AlexIT <a.mo...@fibertelecom.it> wrote:
Hi folks,
for years I used Asterisk solutions (A2Billing + FreePBX) to manage hundreds of VOIP customers, with many PBXs and providers.

Now I'm trying ASTPP 3.6 (installed on a fresh Debian8) for the first time, to decide if my company could take any advantage switching to FreeSwitch solutions (ASTPP + FusionPBX).
I understood almost everything and I succeded in doing what we need, but one thing seems not to work at all, or maybe I'm using it in the wrong way: CALLER IDs assignmento to CUSTOMER profiles.

This is the classic situation I have to address:
 - the customer has his own SIP-PBX in the office
 - he has a static IP 1.2.3.4
 - he has three phone numbers to use as DID and CID +390611111 +39062222 +39063333

So he has to receive calls for those numbers, and make calls (only) FROM those numbers.

I set an account as customer 8264901699 , prepaid with a precofigured RateGroup
Inside customer profile, I set:
- IpSettings to allow from 1.2.3.4
- CallerId to permitt +390611111 +39062222 +39063333
- DID to forward calls for +390611111 +39062222 +39063333 (configured as DirectIP to 1.2.3.4)

The customer can send and receive without problems, but ... I can use any CallerId !!!

I noticed that CallerIDs are stored in ani_map table, which seems to be used only for CallingCards (auth_callingcard() -> get_ani()), so I also enabled ANI-Authentication in Configuration->Setting->CallingCard, but nothing changed, 

Before hacking doauthentication() I'd like to ask you ...
 - how should CallerId-list really work ? 
 - when/where the CallerId-list should be used ?
 - how should I correctly restrict outgoing calls to that CallerID-list?
 - what am I doing wrong ?

I attached here the interesting part of the log

Any advice is well-accepted :)

Thanks for your attention.

--
AlexIT

--
=====================================================================
Documentation: https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/ad069e22-9878-45fb-a876-045277d2b22c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks,
Devang Nathwani

Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

AlexIT

unread,
May 24, 2019, 4:42:57 PM5/24/19
to ASTPP
Hello Devang, 
with "force-callerid" I think I can set only ONE fixed callerid, but I have to allow the customer (with his own FreePbx) to use all the CIDs he owns.
I need to allow (o restrict) the CID from a list, that's why I was thinking to use the ani_map table.

In a IP-AUTH scenario, my idea was to hack the "lua" script, to compare accountID (obtained during authentication process) + callerID (from sip headers) with accountid+number fields from ani_map table.
If a match is found, things go on ... no match means invalid, so drop to unauth 401.

Do you know if there is something similar in upcoming version 4? 
To unsubscribe from this group and stop receiving emails from it, send an email to as...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/ad069e22-9878-45fb-a876-045277d2b22c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages