[Spce-user] SPCE as an SBC between proxy and trunk

Manu Raghavan manu at voxology.co
Sat Mar 21 13:25:53 EDT 2015


Hello Daniel,

Thanks for your prompt response, and that too over the weekend.
Rtpengine is not the problem; in fact I have that setup working. With transcoding, I was only referring to encoding RTP traffic to SRTP, which I’ve verified to work as expected in a non-peering setup.

I went ahead and enabled that setting in config.yml, and restarted services with `ngcpcfg apply`

It appears from the logs (pasted here after redacting real hostnames and IPs), that the peering rules are indeed recognized, but the request keeps getting forwarded back into the proxy again and again, rather than onward to a peer.

Am I missing something obvious?


==> /var/log/ngcp/kamailio-proxy.log <==
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: New request on proxy - M=INVITE R=sip:+13475667041 at sipwise.example.com F=sip:+16173987193 at sip.trunk.com T=sip:+13475667041 at sipwise.example.com;user=phone IP=xx.xx.xx.2:5060 (127.0.0.1:5060) ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Authentication failed, no credentials - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Allow unauthenticated request from domain 'sip.trunk.com' to local domain 'sipwise.example.com' - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: User-Provided CLI '+16173987193' taken from From-User - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: User-provided CLI '+16173987193' rejected, using network-provided CLI '+16173987193' - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Setting '+16173987193 at sip.trunk.com' as initiating user-provided CLI - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Setting '+16173987193 at sip.trunk.com' as initiating network-provided CLI - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Callee is local, uuid='4beb56d0-b4f1-4710-9b82-4481a8b9ed3e' - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Callee forced to outbound peer by preference - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Call to unknown local user from unauthenticated foreign domain - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Setting acc source-leg for uuid '0': '0|+16173987193|sip.trunk.com|+16173987193|||0|||0|call|xx.xx.xx.2|1426958226.555901|||||||||||' - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8616]: NOTICE: <script>: Setting acc destination-leg for uuid '4beb56d0-b4f1-4710-9b82-4481a8b9ed3e': '0|||2|+13475667041|4beb56d0-b4f1-4710-9b82-4481a8b9ed3e|+13475667041|sipwise.example.com|+13475667041|sipwise.example.com|0|||||||||||' - R=sip:+13475667041 at sipwise.example.com ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8617]: NOTICE: <script>: New request on proxy - M=ACK R=sip:+13475667041 at sipwise.example.com F=sip:+16173987193 at sip.trunk.com T=sip:+13475667041 at sipwise.example.com;user=phone IP=xx.xx.xx.2:5060 (127.0.0.1:5060) ID=de3b4e85f949199d6a7b6127ae084952 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: New request on proxy - M=INVITE R=sip:+13475667041 at sipwise.example.com F=sip:+16173987193 at sip.trunk.com T=sip:+13475667041 at sipwise.example.com;user=phone IP=xx.xx.xx.1:5060 (127.0.0.1:5060) ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Authentication failed, no credentials - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Allow unauthenticated request from domain 'sip.trunk.com' to local domain 'sipwise.example.com' - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: User-Provided CLI '+16173987193' taken from From-User - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: User-provided CLI '+16173987193' rejected, using network-provided CLI '+16173987193' - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Setting '+16173987193 at sip.trunk.com' as initiating user-provided CLI - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Setting '+16173987193 at sip.trunk.com' as initiating network-provided CLI - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Callee is local, uuid='4beb56d0-b4f1-4710-9b82-4481a8b9ed3e' - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Callee forced to outbound peer by preference - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Call to unknown local user from unauthenticated foreign domain - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Setting acc source-leg for uuid '0': '0|+16173987193|sip.trunk.com|+16173987193|||0|||0|call|xx.xx.xx.1|1426958226.994063|||||||||||' - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0
Mar 21 17:17:06 ip-10-187-137-114 proxy[8618]: NOTICE: <script>: Setting acc destination-leg for uuid '4beb56d0-b4f1-4710-9b82-4481a8b9ed3e': '0|||2|+13475667041|4beb56d0-b4f1-4710-9b82-4481a8b9ed3e|+13475667041|sipwise.example.com|+13475667041|sipwise.example.com|0|||||||||||' - R=sip:+13475667041 at sipwise.example.com ID=fe9a01e64b054f82eb9ec28e2fb0c481 at 0.0.0.0



On Sunday, March 22, 2015 at 12:38 AM, Daniel Grotti wrote:  
> Hi,
> Rtpengine does not provide any transcoding between codecs.  
> Anyway, speaking about your issue looks like you are calling from pstn a nn local subscriber so the call dies in ngcp unless you enable the peer_relay in the config.yml.
>  
> Daniel
> On 21 Mar 2015 16:04, Manu Raghavan <manu at voxology.co (mailto:manu at voxology.co)> wrote:
> >  
> > Hello,
> >  
> > I’m having trouble setting up Sipwise as an SBC between a SIP trunk, and another SIP proxy.
> > The goal is to have spce’s rtpengine transcode media between 2 peers, a trunk and a proxy.
> >  
> > I’ve tried multiple configurations, including peerings, domains, and subscribers with permanent registrations, but nothing seems to work quite right. In most cases, the call gets routed inwards, but never onward to a peer. I’m not quite sure if I do at all need to set up (A) a domain, and (B) subscribers, since all I’m really trying to do is set transcoding rules between 2 SIP peers.
> >  
> > Past discussions on your mailing list seem to indicate that I only need 2 peering servers, and rules to match them. The trouble seems to be that no calls never leave the kamailio proxy, with something to the tune of “Callee is not local” followed by "Call to unknown local user from unauthenticated foreign domain.” Really, I don’t need or want any users (i.e. subscribers) at all.
> >  
> > Any guidance would me much appreciated.
> >  
> > Thanks in advance.
> >  
> > Manu  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150322/3c9df55f/attachment-0001.html>


More information about the Spce-user mailing list