Peter,
Peter P GMX wrote:
Hello Christian,
that seems to be a solution in conjunction with the perl module. When will 1.3 be available?
1.3 is planned for November-December time frame.
BTW: I am always wondering why such "normal" things as overwriting vars and general string substutution is so limited in OpenSER. Besides superficial documentation (everyone has to try and error and to reinvent the whole thing by himself), the main job is research ing for tricky workarounds in order to make things running. I am running a number of Asterisk PBX (release version 1.2) -- and there it's so easy!
I'd say asterisk is easier to understand because it follows the traditional PBX model, whereas openser is a real SIP proxy. You need a basic understand of how SIP works in order to deploy openser. One should e.g. be familiar with the differences between SIP transactions, dialogs, and sessions.
I've worked with many different SIP proxy products, commercial and open source, and openser/ser is by far the most flexible one. There is always room for improvements, but you won't find another proxy that provides such low level access to the SIP message routing engine.
Asterisk, on the other hand, works on a much higher layer. All you can do is modifying calls, you don't get access to individual SIP messages. This simplifies the configuration but limits its usefulness.
/Christian
Kind regards Peter
Christian Schlatter schrieb:
Peter P GMX wrote:
Hello,
is there any chance to modify the authorization user name?
I have the following scenario. We do allow only lowercase usernames when users are registering. So the md5 password is created and stored based on lowercase letters. When a user receives his account data he might enter his username in camelcase in his user agent. So when he tries to register, it fails, as the md5 hash based on the camelcased username is different.
I tried to use the perl module, put the username to lowercase and put it back to OpenSER via avp_pushto. But Openser only allows $ru,$du,$br to be modified.
Do I have a chance to modify $au?
The auth module of openser 1.3 (which will be released soon) contains two new authentication functions that take any pseudo variables as username/password input:
pv_www_authorize(realm): http://www.openser.org/docs/modules/1.3.x/auth.html#AEN243
pv_proxy_authorize(realm): http://www.openser.org/docs/modules/1.3.x/auth.html#AEN279
This should enable you to feed the username's uppercase version to the authorize functions.
BTW: It would be nice to have an uppercase/lowercase string transformation available.
/Christian
Best regards Peter
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users