[Spce-user] Issue with allowed_clis feature in 2.4

Andrew Pogrebennyk apogrebennyk at sipwise.com
Mon Jan 16 05:02:08 EST 2012

It would really help to see some SIP traces, but I think that's what is

Asterisk is sending either P-Preferred-Identity or P-Asserted-Identity
with the number equal to subscriber's primary E.164 number.
However "Set(CALLERID(num)=xxxxxxxxx)" sets merely the From
display-name, which is less preferred compared to PPI/PAI.

So, you should change P-Preferred-Identity number or omit
P-Preferred-Identity in order to use the From display-name.

The logic for user-provided CLI manipulations in v2.4 is the following:
- The user-provided CLI is taken from, in the order of preference,
P-Preferred-Identity, P-Asserted-Identity and From display-name;

- The user-provided CLI extracted in such a way from SIP headers is
checked against allowed_clis, if match is not found it is rejected and
user_cli preference or network-provided CLI is used as last resort;

- The network-provided CLI is the cli preference set to the primary
E.164 number of the subscriber and it *shall not be removed* (removing
it will break the voicemail and other things):

- If you still remove cli preference the network-provided CLI will
fallback to the From display-name, so that is why you can place a call
using any CLI.

Please retry with updated knowledge. If something doesn't work please
provide the logs because for me it works as expected.

On 01/13/2012 04:49 PM, Sébastien Cramatte wrote:
> Hello,
> We have setup a subscriber account with asterisk 1.8
> We are using E.164 to ruri  allowed_clis preferences
> Considering following Asterisk context to make outgoing calls.
> xxxxxxxxx represent  outbound CLIs
> [outgoing]
> exten => _X.,1,Set(CALLERID(num)=xxxxxxxxx)
> exten => _X.,2,Dial(SIP/${EXTEN}@spce.server.local
> If spce subscriber account CLI is configured  all outgoing calls use
> this CLI
> and don't take care of  asterisk "Set(CALLERID(num)=xxxxxxxxx)".
> If we remove CLI pref,   we can place a call with using any  CLI. 
> allowed_clis preference is totaly ignored by spce.
> What we should use in asterisk to tell to SPCE that we want to use one
> cli or another  and  be sure that  only allowed_clis can be used !
> Regards

More information about the Spce-user mailing list