Hi,
I have a setup where in Openser is acting as the registrar and Asterisk handles the media. i.e. the INVITEs are relayed to the Asterisk server by Openser. When I try to make a call from an unregistered user the call goes thru. The user is present in the subscriber table but is not registered with Openser at that instant.
Is this an expected behavior? If not what needs to be done so that an unregistered user is prohibited from making any calls.
Any help would be appreciated.
Thanks in advance.
Regards, Aadil
Hi Aadil,
As much as possible we should isolate the feature we are having trouble with, when we post to the open source community. For example, in this case we didn't need to add the complication of Asterisk.
We could just say that we are using OpenSER as our proxy. How can we restrict un-registered, (but otherwise configured & legimitate) users from making out going calls?
Anyways. only for the next time.. my 2 cents.
Amit.
_____
From: Aadilkhan Maniyar [mailto:amaniyar@velankani.com] Sent: Tuesday, April 22, 2008 2:42 PM To: users@lists.openser.org Cc: 'Vinod Kumar Singh'; 'Amit Nagpal' Subject: Unregistered users able to make calls
Hi,
I have a setup where in Openser is acting as the registrar and Asterisk handles the media. i.e. the INVITEs are relayed to the Asterisk server by Openser.
When I try to make a call from an unregistered user the call goes thru. The user is present in the subscriber table but is not registered with Openser at that instant.
Is this an expected behavior? If not what needs to be done so that an unregistered user is prohibited from making any calls.
Any help would be appreciated.
Thanks in advance.
Regards,
Aadil
Amit Nagpal writes:
We could just say that we are using OpenSER as our proxy. How can we restrict un-registered, (but otherwise configured & legimitate) users from making out going calls?
you need to write your openser.cfg in such a way that it checks if the user has any registered phones (doing lookups on all uris that this user may have) and let the invite go through if you find one.
-- juha
Hi Juha,
Thanks for your reply.
Our requirement is such that -
Scenario: - OpenSER's subscriber database is setup with credentials for user U1 - Phone P1 and P2 are configured with appropriate credentials for U1 - Phone P1 is registered with OpenSER - Phone P2 is up and running, but NOT registered with OpenSER
What we would like for OpenSER to do: - When U1 attempts an outgoing call from P1, OpenSER should allow. - When U1 attempts an outgoing call from P2, OpenSER should reject.
How can we match the instance of the originating UE with an entry in the Location database?
Regards, Amit.
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Juha Heinanen Sent: Tuesday, April 22, 2008 2:57 PM To: Amit Nagpal Cc: users@lists.openser.org; 'Vinod Kumar Singh' Subject: Re: [OpenSER-Users] Unregistered users able to make calls
Amit Nagpal writes:
We could just say that we are using OpenSER as our proxy. How can we restrict un-registered, (but otherwise configured & legimitate) users
from
making out going calls?
you need to write your openser.cfg in such a way that it checks if the user has any registered phones (doing lookups on all uris that this user may have) and let the invite go through if you find one.
-- juha
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Amit Nagpal writes:
What we would like for OpenSER to do:
- When U1 attempts an outgoing call from P1, OpenSER should allow.
- When U1 attempts an outgoing call from P2, OpenSER should reject.
if p1 and p2 have the same uri, you need to check if the contact uri of the caller matches that of the registered phone in location database.
i personally would not bother to these kinds of checks. why should you care?
-- juha
Amit Nagpal schrieb:
Hi Juha,
Thanks for your reply.
Our requirement is such that -
Scenario:
- OpenSER's subscriber database is setup with credentials for user U1
- Phone P1 and P2 are configured with appropriate credentials for U1
- Phone P1 is registered with OpenSER
- Phone P2 is up and running, but NOT registered with OpenSER
What we would like for OpenSER to do:
- When U1 attempts an outgoing call from P1, OpenSER should allow.
- When U1 attempts an outgoing call from P2, OpenSER should reject.
How can we match the instance of the originating UE with an entry in the Location database?
I do not see an easy solution for this problem. But - why do you need this restriction at all?
regards klaus
El Martes, 22 de Abril de 2008, Aadilkhan Maniyar escribió:
Hi,
I have a setup where in Openser is acting as the registrar and Asterisk handles the media. i.e. the INVITEs are relayed to the Asterisk server by Openser. When I try to make a call from an unregistered user the call goes thru. The user is present in the subscriber table but is not registered with Openser at that instant.
Is this an expected behavior?
Sure, to make calls a user maybe needs to authenticate (digest and so). To receive calls the user needs to register to say the registrar server where it is. In this register process probably the user needs too to authenticate.
Note that "authenticate" != "register".
This is a common confusion, but a little reading of RFC 3261 would make it clear ;)
If not what needs to be done so that an unregistered user is prohibited from making any calls.
Just check if the user is registered (function "is_user_registered" or similar) before allow the call.