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

Daniel Grotti dgrotti at sipwise.com
Mon Jan 19 08:23:23 EST 2015


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/221138ff/attachment-0001.html>


More information about the Spce-user mailing list