[Spce-user] Issue with allowed_clis feature in 2.4

Sébastien Cramatte scramatte at gmail.com
Mon Jan 16 09:27:18 EST 2012

Hello Andrew,

After changes various things  in Asterisk it works
You must add following lines into sip.conf

sendrpid=yes ; For Asterisk 1.8 you need sendrpid=pai

On outbound call, in extensions.conf   you need following lines
exten => _X.,1,SIPAddHeader(P-Asserted-Identity: 
exten => _X.,n,SIPAddHeader(Privacy:off)
exten => _X.,n,Dial(...

YOUR_IP value  is required  to get everything working

El 16/01/12 11:02, Andrew Pogrebennyk escribió:
> Sébastien,
> It would really help to see some SIP traces, but I think that's what is
> happening:
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20120116/03afa655/attachment-0001.html>

More information about the Spce-user mailing list