<div dir="ltr"><div><div><div>Hi,<br></div>I try to apply your configuration into my server, but it doesn`t work. My prefix like "peerA_" for all the susbcribers that
are using PeerA does not work. <br><br></div>Also i make a configuration like in manual:<br><br><i>Configuring Emergency Numbers is also done via Rewrite Rules.<br>For Emergency Calls from a subscriber to the platform, you need to define an Inbound Rewrite Rule For Callee, which adds a<br>prefix emergency_ to the number (and can rewrite the number completely as well at the same time). If the proxy detects a call<br>to a SIP URI starting with emergency_ , it will enter a special routing logic bypassing various checks which might make a normal<br>call fail (e.g. due to locked or blocked numbers, insufficient credits or exceeding the max. amount of parallel calls).<br><br>T AG AN E MERGENCY C ALL<br>• Match Pattern: ˆ(911|112)$<br>• Replacement Pattern: emergency_\1<br>• Description: Tag Emergency Numbers<br>To route an Emergency Call to a Peer, you can select a specific peering group by adding a peering rule with a callee prefix set to<br>emergency_ to a peering group.</i><br><br></div>Log:<br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16078]: INFO: <script>: New request - M=INVITE R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> F=<a href="mailto:sip%3A5555@10.110.10.43">sip:5555@10.110.10.43</a> T=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> IP=<a href="http://10.110.10.43:5060">10.110.10.43:5060</a> (<a href="http://10.110.10.55:5060">10.110.10.55:5060</a>) ID=27a860496ea813781d<br><a href="mailto:e8a0d3731f11af@10.110.10.43">e8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16078]: INFO: <script>: Authentication failed, no credentials - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: New request - M=INVITE R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> F=<a href="mailto:sip%3A5555@10.110.10.43">sip:5555@10.110.10.43</a> T=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> IP=<a href="http://10.110.10.43:5060">10.110.10.43:5060</a> (<a href="http://10.110.10.55:5060">10.110.10.55:5060</a>) ID=27a860496ea813781d<br><a href="mailto:e8a0d3731f11af@10.110.10.43">e8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Clear caller preferences - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Load caller preferences for uuid '81731cfd-36fa-4ed8-9bd5-495286c4bcae' and domain part of uri '<a href="mailto:sip%3A5555@10.110.10.43">sip:5555@10.110.10.43</a>' - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=27a86049<br><a href="mailto:6ea813781de8a0d3731f11af@10.110.10.43">6ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Load dialplan IDs for user '81731cfd-36fa-4ed8-9bd5-495286c4bcae' - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Fetched dialplan IDs caller_in='9', callee_in='10' - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Use 'P-NGCP-Src-Ip' for CDR IP - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Dialog set total - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Dialog set user, userout, account, accountout to '81731cfd-36fa-4ed8-9bd5-495286c4bcae/8' - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=27a860496ea813781de8a0d3731f11af@10.1<br>10.10.43<br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: IP authorization for caller not provisioned, allow call - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: User-Provided CLI '5555' taken from From-User - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Applying caller-in domain rewrite rules on user-provided CLI using dpid '9' - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: No matching rewrite rules for '5555' found - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Checking User-provided CLI against allowed CLIs - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: User-provided CLI '5555' accepted - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Setting '<a href="mailto:5555@10.110.10.43">5555@10.110.10.43</a>' as initiating user-provided CLI - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Setting '<a href="mailto:3803225555@10.110.10.43">3803225555@10.110.10.43</a>' as initiating network-provided CLI - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Searching for callee - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Applying callee-in domain rewrite rules using dpid '10' - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: No matching rewrite rules for '911' found - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Clear callee preferences - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Callee is not local - R=<a href="mailto:sip%3A911@10.110.10.55">sip:911@10.110.10.55</a> ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br><br><div><br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888">-- <br><div><div dir="ltr"><div>З повагою,</div><div>Микола Заїка<br></div><div>Компанія VoIPTime,</div><div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div><div><span style="color:rgb(0,0,255)"><a href="mailto:ydidukh@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div><div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a></span></div></div></div></font></span></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-01-16 18:31 GMT+02:00 Daniel Grotti <span dir="ltr"><<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
you can user subscriber's preferences "emergency_prefix" for
example.<br>
Just set a prefix there like "peerA_" to all the susbcribers that
are using PeerA<br>
<br>
Then you can intercept all call from that subscriber on your
peerA, by setting a peering rules like:<br>
<br>
callee prefix<br>
peerA_<br>
<br>
<br>
now, in the peerA's OUTBOUND rewrite rule for callee, just remove
the prefix "peerA_".<br>
<br>
<br>
Daniel<div><div class="h5"><br>
<br>
<br>
On 01/16/2015 04:13 PM, Mykola Zaika wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr"><br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><font color="#888888">Hello,<br>
</font></div>
<div><font color="#888888">Could You help me?<br>
</font></div>
<div><font color="#888888">How I can control calls via
Sip Provider CE for subscribers? I need that
subscriber can make a call only via one peer,
other subscriber only via another peer. <br>
</font></div>
<div><font color="#888888">All my peering rules are
available for all subscribers in my system. In the
Asterisk system is things like 'Context' wich
gives us opportunity to control calls.<br>
<br>
</font></div>
<div><font color="#888888">Thanks<br>
</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Spce-user mailing list
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
<br></blockquote></div><br></div>