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

Mykola Zaika mzaika at voiptime.net
Mon Jan 19 05:51:40 EST 2015


Hi,
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.

Also i make a configuration like in manual:












*Configuring Emergency Numbers is also done via Rewrite Rules.For Emergency
Calls from a subscriber to the platform, you need to define an Inbound
Rewrite Rule For Callee, which adds aprefix emergency_ to the number (and
can rewrite the number completely as well at the same time). If the proxy
detects a callto a SIP URI starting with emergency_ , it will enter a
special routing logic bypassing various checks which might make a
normalcall fail (e.g. due to locked or blocked numbers, insufficient
credits or exceeding the max. amount of parallel calls).T AG AN E MERGENCY
C ALL• Match Pattern: ˆ(911|112)$• Replacement Pattern: emergency_\1•
Description: Tag Emergency NumbersTo route an Emergency Call to a Peer, you
can select a specific peering group by adding a peering rule with a callee
prefix set toemergency_ to a peering group.*

Log:
Jan 19 11:39:34 spce /usr/sbin/kamailio[16078]: INFO: <script>: New request
- M=INVITE R=sip:911 at 10.110.10.55 F=sip:5555 at 10.110.10.43 T=
sip:911 at 10.110.10.55 IP=10.110.10.43:5060 (10.110.10.55:5060)
ID=27a860496ea813781d
e8a0d3731f11af at 10.110.10.43
Jan 19 11:39:34 spce /usr/sbin/kamailio[16078]: INFO: <script>:
Authentication failed, no credentials - 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>: New request
- M=INVITE R=sip:911 at 10.110.10.55 F=sip:5555 at 10.110.10.43 T=
sip:911 at 10.110.10.55 IP=10.110.10.43:5060 (10.110.10.55:5060)
ID=27a860496ea813781d
e8a0d3731f11af at 10.110.10.43
Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Clear
caller preferences - 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>: Load caller
preferences for uuid '81731cfd-36fa-4ed8-9bd5-495286c4bcae' and domain part
of uri 'sip:5555 at 10.110.10.43' - R=sip:911 at 10.110.10.55 ID=27a86049
6ea813781de8a0d3731f11af at 10.110.10.43
Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Load
dialplan IDs for user '81731cfd-36fa-4ed8-9bd5-495286c4bcae' - 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>: Fetched
dialplan IDs caller_in='9', callee_in='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>: Use
'P-NGCP-Src-Ip' for CDR IP - 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>: Dialog set
total - 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>: Dialog set
user, userout, account, accountout to
'81731cfd-36fa-4ed8-9bd5-495286c4bcae/8' - R=sip:911 at 10.110.10.55
ID=27a860496ea813781de8a0d3731f11af at 10.1
10.10.43
Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: IP
authorization for caller not provisioned, allow call - 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>:
User-Provided CLI '5555' taken from From-User - 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>: Applying
caller-in domain rewrite rules on user-provided CLI using dpid '9' - 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 '5555' found - 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>: Checking
User-provided CLI against allowed CLIs - 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>:
User-provided CLI '5555' accepted - 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>: Setting '
5555 at 10.110.10.43' as initiating user-provided CLI - 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>: Setting '
3803225555 at 10.110.10.43' as initiating network-provided CLI - 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>: Searching
for callee - 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>: 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
Jan 19 11:39:34 spce /usr/sbin/kamailio[16077]: INFO: <script>: Clear
callee preferences - 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>: Callee is
not local - R=sip:911 at 10.110.10.55 ID=
27a860496ea813781de8a0d3731f11af at 10.110.10.43




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

2015-01-16 18:31 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com>:

>  Hi,
> you can user subscriber's preferences "emergency_prefix" for example.
> Just set a prefix there like "peerA_" to all the susbcribers that are
> using PeerA
>
> Then you can intercept all call from that subscriber on your peerA, by
> setting a peering rules like:
>
> callee prefix
> peerA_
>
>
> now, in the peerA's OUTBOUND rewrite rule for callee, just remove the
> prefix "peerA_".
>
>
> Daniel
>
>
>
> On 01/16/2015 04:13 PM, Mykola Zaika wrote:
>
>
>    Hello,
>  Could You help me?
>  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.
>  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.
>
>  Thanks
>
>
> _______________________________________________
> Spce-user mailing listSpce-user at lists.sipwise.comhttps://lists.sipwise.com/listinfo/spce-user
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150119/f47a6b0e/attachment-0001.html>


More information about the Spce-user mailing list