[Spce-user] Authentication
John Murray
john.murray at skyracktelecom.com
Wed Jul 11 17:32:57 EDT 2012
Many thanks for this Andreas,
I have one more problem:
This works great but my one of my MVNO providers is also an outbound provider and configured as a peer so although the IP address and from_pattern field are correct in the trusted table the proxy sees the call as from the peer:
Jul 11 22:16:27 switch /usr/sbin/kamailio[22899]: INFO: <script>: New request - M=INVITE
Jul 11 22:16:27 switch /usr/sbin/kamailio[22899]: INFO: <script>: Reset initial local route - M=INVITE
Jul 11 22:16:27 switch /usr/sbin/kamailio[22899]: INFO: <script>: Call from PSTN - M=INVITE
Is it possible to say check trusted table first for local users before peers?
Best regards
John
-----Original Message-----
From: Andreas Granig [mailto:agranig at sipwise.com]
Sent: 09 July 2012 20:20
To: John Murray
Cc: spce-user at lists.sipwise.com
Subject: Re: [Spce-user] Authentication
Hi John,
On 07/09/2012 08:58 PM, John Murray wrote:
> Wow, this is great. So if I have multiple subscribers on the MVNO matching subscribers in the SPCE could I have multiple entries with the same src_ip the From: field that the MVNO sends for that user and the UUID of the subscriber in SPCE that it should match?
You could use the same source IP for multiple subscribers and distinguish between them by the from_pattern column, e.g. "^sip:user1@"
vs. "^sip:user2@" etc).
See
http://kamailio.org/docs/modules/stable/modules_k/permissions.html#sec-trusted-requests
for the background details.
Andreas
More information about the Spce-user
mailing list