[asterisk-dev] Multiple realm in SIP channel

Victor Sergeev sergeevvictor at gmail.com
Wed Nov 21 09:35:47 CST 2007


I'm checking possibility of serving multiple realms with one Asterisk.

When the call comes to Asterisk it responds with authorization request
using specified realm (global_realm in code).


OpenSER for this case has possibility to auto generate realm based on
"From" header:

if (!proxy_authorize("", "subscriber)) {
        proxy_challenge("", "1");  # Realm will be autogenerated
};

proxy_authorize(realm, table)
    * realm - Realm is a opaque string that the user agent
       should present to the user so he can decide what username
       and password to use. Usually this is domain of the host
       the server is running on.
       If an empty string "" is used then the server will
       generate it from the request. From header field domain
       will be used as realm.
       The string may contain pseudo variables.


Is it a good idea to add the same possibility to Asterisk?
E.g. possibility to generate Realm from "From" may be enabled in sip.conf with
additional list of acceptable realms.

Victor



More information about the asterisk-dev mailing list