[Spce-user] Control calls via Sip Provider CE for subscribers

Mykola Zaika mzaika at voiptime.net
Mon Jan 19 09:13:13 EST 2015


I understand You completely.  Here are some examples. What am I doing
wrong?

1) set your emergency_prefix in subscriber preferences (ex peerA_)

[image: Вбудоване зображення 1]
2) rewrite all the calls from that subscriber and prefix them with that
value peerA_. You have to use the special variable
${caller_emergency_prefix} in the INBOUND rewrite rules for callee
(attached to the subscriber's domain or to the subscriber itself).

[image: Вбудоване зображення 2]

3) now all the calls from that subscriber has destination like: peerA_XXXXXX
4) put the value of "peerA_" in the peering server rules as callee prefix
value

[image: Вбудоване зображення 3]

5) remove the prefix using the peering's OUTBOUND rewrite rules for callee

[image: Вбудоване зображення 4]

-- 
З повагою,
Микола Заїка
Компанія VoIPTime,
Тел: +380 32 2328022
mzaika at voiptime.net <ydidukh at voiptime.net>
www.voiptime.net

2015-01-19 15:23 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com>:

>  Hi,
> so this is how it works:
>
>
> 1) set your emergency_prefix in subscriber preferences (ex peerA_)
> 2) rewrite all the calls from that subscriber and prefix them with that
> value peerA_. You have to use the special variable
> ${caller_emergency_prefix} in the INBOUND rewrite rules for callee
> (attached to the subscriber's domain or to the subscriber itself).
> 3) now all the calls from that subscriber has destination like:
> peerA_XXXXXX
> 4) put the value of "peerA_" in the peering server rules as callee prefix
> value
> 5) remove the prefix using the peering's OUTBOUND rewrite rules for callee
>
>
> hope this is much clear.
>
>
> Daniel
>
>
>
> On 01/19/2015 02:13 PM, Mykola Zaika wrote:
>
>  I checked all my settings. Maybe rewrite rules have to enable in global
> configuration files?
>  In subscribers setting is field "emergency_prefix: (A numeric string
> intended to be used in rewrite rules for emergency numbers.)" When I can
> use that field? Can I use "emergency_prefix" and  "rewrite_rule_set:"
> together?
>
>  Thanks.
>
>    --
>  З повагою,
> Микола Заїка
>  Компанія VoIPTime,
> Тел: +380 32 2328022
> mzaika at voiptime.net <ydidukh at voiptime.net>
> www.voiptime.net
>
> 2015-01-19 13:54 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com>:
>
>>  Please double check you rewrite rules for Callee cause you  got:
>>
>>
>> On 01/19/2015 11:51 AM, Mykola Zaika wrote:
>>
>> Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Applying
>> callee-in domain rewrite rules using dpid '10' - R=sip:911 at 10.110.10.55
>> ID=27a860496ea813781de8a0d3731f11af at 10.110.10.43
>> Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: No
>> matching rewrite rules for '911' found - R=sip:911 at 10.110.10.55 ID=
>> 27a860496ea813781de8a0d3731f11af at 10.110.10.43
>>
>>
>>
>>  so the number is not rewritten into "emergency_911".
>>
>> Daniel
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150119/dfa1106b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 18382 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150119/dfa1106b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 13691 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150119/dfa1106b/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12348 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150119/dfa1106b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 28942 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150119/dfa1106b/attachment-0003.png>


More information about the Spce-user mailing list