[Spce-user] Local and not local callee

Jon Bonilla (Manwe) jbonilla at sipwise.com
Tue Nov 20 14:27:42 EST 2012


El Tue, 20 Nov 2012 16:32:01 +0100
Imanol Pardavila <imanol.pardavila at ibercom.com> escribió:

> Hi everybody,
> 
> I have the following subscriber:
> 
> root at server:~# ngcp-get_subscriber -i 27
> 
> Subscriber information:
> {
>    ...,
>    'cc' => '34',
>    'sn' => '911920847',
>    'subscriber_id' => '27',
>    ...
>    'uuid' => 'f2883e7b-5642-4bb6-9684-c9525323d3d7',
>    ...
> }
> 
> My problem is that if I call him from another subscriber using "full" 
> number (34911920847), the callee is considered local and the call is 
> sent to him (not to outbound peer):
> 
> INFO: <script>: Searching for callee
> INFO: <script>: Callee was aliased with base '34911920847'
> INFO: <script>: Clear callee preferences
> INFO: <script>: Callee is local, uuid='f2883e7b-5642-4bb6-9684-c9525323d3d7'
> 
> However, If I use only SN (911920847), the callee is considered not 
> local and it's sent to defined peer:
> 
> INFO: <script>: Searching for callee
> INFO: <script>: Clear callee preferences
> INFO: <script>: Callee is not local
> 
> In Spain, SN is more used than CC+SN, so it's important for me that 
> calls between local calls using SN would be routed directly.
> 
> I tried using this Rewrite Rule Set to reach a CC+SN number when a SN 
> one arrived to the server:
> 
> 
>       Inbound Rewrite Rules for Callee
> 
> Macth Pattern: ^([1-9][0-9]+)$
> Replacement Pattern: 34/1
> 
> It works for delivering the call when callee is called from PSTN, but 
> not for considering it local when called from another subscriber.
> 
> What can I do to consider SN number as a local number?
> 
> Thanks
> Best regards
> Imanol


Well, you should set the rule in the peering rule set asigned not only to the
pstn gws but also to the subscribers or the domain.

btw, replacement pattern 34/1 is wrong. It should be 34\1

You can check the dialplan (rewrite rules) in the proxy logs. Just check.


You problem is 100% in the rewrite rule configuration.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20121120/14bb61b2/attachment.asc>


More information about the Spce-user mailing list