[Spce-user] Control calls via Sip Provider CE for subscribers
Daniel Grotti
dgrotti at sipwise.com
Mon Jan 19 09:15:15 EST 2015
Hi,
it looks good at a first sight.
Daniel
On 01/19/2015 03:13 PM, Mykola Zaika wrote:
> I understand You completely. Here are some examples. What am I doing
> wrong?
>
> 1) set your emergency_prefix in subscriber preferences (ex peerA_)
>
> Вбудоване зображення 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).
>
> Вбудоване зображення 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
>
> Вбудоване зображення 3
>
> 5) remove the prefix using the peering's OUTBOUND rewrite rules for callee
>
> Вбудоване зображення 4
>
> --
> З повагою,
> Микола Заїка
> Компанія VoIPTime,
> Тел: +380 32 2328022 <tel:%2B380%2032%202328022>
> mzaika at voiptime.net <mailto:ydidukh at voiptime.net>
> www.voiptime.net <http://www.voiptime.net>
>
> 2015-01-19 15:23 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com
> <mailto: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 <tel:%2B380%2032%202328022>
>> mzaika at voiptime.net <mailto:ydidukh at voiptime.net>
>> www.voiptime.net <http://www.voiptime.net>
>>
>> 2015-01-19 13:54 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com
>> <mailto: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
>>> <mailto:sip%3A911 at 10.110.10.55>
>>> ID=27a860496ea813781de8a0d3731f11af at 10.110.10.43
>>> <mailto: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 <mailto:sip%3A911 at 10.110.10.55>
>>> ID=27a860496ea813781de8a0d3731f11af at 10.110.10.43
>>> <mailto: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/pipermail/spce-user_lists.sipwise.com/attachments/20150119/7cb1c08b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 28942 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150119/7cb1c08b/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 12348 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150119/7cb1c08b/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 18382 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150119/7cb1c08b/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 13691 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150119/7cb1c08b/attachment-0007.png>
More information about the Spce-user
mailing list