Summary:ASTERISK-02056: callerid restriction list
Reporter:marlow (marlow)Labels:
Date Opened:2004-07-18 19:37:18Date Closed:2011-06-07 14:05:12
Versions:Frequency of
Description:The following feature could be neat for sip, iax, etc. peers/friends:

Like in ISDN, there can be a need for restricting the callerid's of certain IAX/SIP accounts, but also ZAP channels to an amount of numbers.

Let's say i have one customer, that has 10 phonenumbers
(204398[0-9]) or 10 numbers that are completely detached.

It would be nice to let himself set the callerid, so that he only needs one account for terminating his calls, but only be able to set the allowed callerid's. If he doesn't set a callerid or sets one, that isn't allowed, the system should default to the default callerid for his account (which could be none (CID restricted) or one default main number.


sample, how this could look like:

callerid = ("User 1" <2043986>)
callerid-allow = ("User 1" <2043986>)
callerid-allow = ("User 2" <2043987>)
[...] <-- and of course all the other regular iax/sip/etc. options

In this example the user has 2 callerids (2043986 and 2043987). If he doesn't specify the callerid or does specify an invalid one, 2043986 will be shown.

Another example:
callerid-allow = (<204398[0-9]>)
[...] <-- and of course all the other regular iax/sip/etc. options

In this case the user would have the numbers 2043980-2043989. If he doesn't specify any callerid or an invalid one, callerid will be restricted.

In case that callerid-disallow=none or no callerid options are specified, the customer would be able to set any callerid he wishes to.
Comments:By: marlow (marlow) 2004-07-18 19:43:48

of course ..

callerid-disallow=none could also be callid-allow=all instead ... just to let it be like everything else in Asterisk :o)

By: marlow (marlow) 2004-07-18 19:45:32



edited on: 07-18-04 19:41

By: Brian West (bkw918) 2004-07-18 23:51:05

Do you realize that if you set callerid= in the iax/sip/mgcp/sccp.conf files it will lock it down to that.

By: Brian West (bkw918) 2004-07-18 23:52:41

This can be done with dialplan logic and the astdb.  It should be very simple.