1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
|
UAC Module
Ramona-Elena Modroiu
Voice System
Edited by
Ramona-Elena Modroiu
Copyright 2005 Voice Sistem
_________________________________________________________
Table of Contents
1. User's Guide
1.1. Overview
1.2. Dependencies
1.2.1. OpenSER Modules
1.2.2. External Libraries or Applications
1.3. Exported Parameters
1.3.1. rr_store_param (string)
1.3.2. from_restore_mode (string)
1.3.3. from_passwd (string)
1.3.4. credential (string)
1.3.5. auth_realm_avp (string)
1.3.6. auth_username_avp (string)
1.3.7. auth_password_avp (string)
1.4. Exported Functions
1.4.1. uac_replace_from(display,uri)
1.4.2. uac_replace_from(uri)
1.4.3. uac_restore_from()
1.4.4. uac_auth()
2. Developer's Guide
3. Frequently Asked Questions
List of Examples
1-1. Set rr_store_param parameter
1-2. Set from_restore_mode parameter
1-3. Set from_passwd parameter
1-4. Set credential parameter
1-5. Set auth_realm_avp parameter
1-6. Set auth_username_avp parameter
1-7. Set auth_password_avp parameter
1-8. uac_replace_from usage
1-9. uac_replace_from usage
1-10. uac_restore_from usage
1-11. uac_auth usage
_________________________________________________________
Chapter 1. User's Guide
1.1. Overview
UAC (User Agent Client) module provides some basic UAC
functionalities like FROM header manipulation (anonymization)
or client authentication.
Known limitations in this version:
* authentication does not support qop;
* CSeq not increased during authentication - the response
may be rejected.
_________________________________________________________
1.2. Dependencies
1.2.1. OpenSER Modules
The following modules must be loaded before this module:
* TM - Transaction Module
* RR - Record-Route Module, but only if restore mode for
FROM URI is set to "auto".
_________________________________________________________
1.2.2. External Libraries or Applications
The following libraries or applications must be installed
before running OpenSER with this module loaded:
* None
_________________________________________________________
1.3. Exported Parameters
1.3.1. rr_store_param (string)
Name of Record-Route header parameter that will be used to
store (encoded) the original FROM URI.
This parameter is optional, it's default value being "vsf".
Example 1-1. Set rr_store_param parameter
...
modparam("uac","rr_store_param","my_param")
...
_________________________________________________________
1.3.2. from_restore_mode (string)
There are 3 mode of restoring the original FROM URI:
* "none" - no information about original URI is stored;
restoretion is not possible.
* "manual" - all following replies will be restored, but not
also the sequential requests - this must be manually
updated based on original URI.
* "auto" - all sequential requests and replies will be
automatically updated based on stored original URI.
This parameter is optional, it's default value being "auto".
Example 1-2. Set from_restore_mode parameter
...
modparam("uac","from_restore_mode","auto")
...
_________________________________________________________
1.3.3. from_passwd (string)
String password to be used to encrypt the RR storing paramter.
If empty, no encryption will be used.
Default value of this parameter is empty.
Example 1-3. Set from_passwd parameter
...
modparam("uac","from_passwd","my_secret_passwd")
...
_________________________________________________________
1.3.4. credential (string)
Contains a multiple definition of credentials used to perform
authentication.
This parameter is required if UAC authentication is used.
Example 1-4. Set credential parameter
...
modparam("uac","credential","username:domain:password")
...
_________________________________________________________
1.3.5. auth_realm_avp (string)
The definition of an AVP that might contain the realm to be
used to perform authentication.
If you define it, you also need to define "auth_username_avp"
(Section 1.3.6) and "auth_username_avp" (Section 1.3.7).
Example 1-5. Set auth_realm_avp parameter
...
modparam("uac","auth_realm_avp","$avp(i:10)")
...
_________________________________________________________
1.3.6. auth_username_avp (string)
The definition of an AVP that might contain the username to be
used to perform authentication.
If you define it, you also need to define "auth_realm_avp"
(Section 1.3.5) and "auth_username_avp" (Section 1.3.7).
Example 1-6. Set auth_username_avp parameter
...
modparam("uac","auth_username_avp","$avp(i:11)")
...
_________________________________________________________
1.3.7. auth_password_avp (string)
The definition of an AVP that might contain the password to be
used to perform authentication.
If you define it, you also need to define "auth_password_avp"
(Section 1.3.7) and "auth_username_avp" (Section 1.3.7).
Example 1-7. Set auth_password_avp parameter
...
modparam("uac","auth_password_avp","$avp(i:12)")
...
_________________________________________________________
1.4. Exported Functions
1.4.1. uac_replace_from(display,uri)
Replace in FROM header the display name and the URI part.
display and URI parameters can include pseudo-variables.
This function can be used from REQUEST_ROUTE.
Example 1-8. uac_replace_from usage
...
# replace both display and uri
uac_replace_from("$avp(s:display)","$avp(s:uri)");
# replace only display and do not touch uri
uac_replace_from("batman","");
# remove display and replace uri
uac_replace_from("","sip:robin@gotham.org");
# remove display and do not touch uri
uac_replace_from("","");
...
_________________________________________________________
1.4.2. uac_replace_from(uri)
Replace in FROM header the the URI part without altering the
display name.
URI parameter can include pseudo-variables.
This function can be used from REQUEST_ROUTE.
Example 1-9. uac_replace_from usage
...
uac_replace_from("sip:batman@gotham.org");
...
_________________________________________________________
1.4.3. uac_restore_from()
This function will check if the FROM URI was modified and will
use the information stored in header parameter to restore the
original FROM URI value.
This function can be used from REQUEST_ROUTE.
Example 1-10. uac_restore_from usage
...
uac_restore_from();
...
_________________________________________________________
1.4.4. uac_auth()
This function can be called only from failure route and will
build the authentication response header and insert it into
the request without sending anything.
This function can be used from FAILURE_ROUTE.
Example 1-11. uac_auth usage
...
uac_auth();
...
_________________________________________________________
Chapter 2. Developer's Guide
The module does not provide any API to use in other OpenSER
modules.
_________________________________________________________
Chapter 3. Frequently Asked Questions
3.1. Where can I find more about OpenSER?
3.2. Where can I post a question about this module?
3.3. How can I report a bug?
3.1. Where can I find more about OpenSER?
Take a look at http://openser.org/.
3.2. Where can I post a question about this module?
First at all check if your question was already answered on
one of our mailing lists:
* User Mailing List -
http://openser.org/cgi-bin/mailman/listinfo/users
* Developer Mailing List -
http://openser.org/cgi-bin/mailman/listinfo/devel
E-mails regarding any stable version should be sent to
<users@openser.org> and e-mail regarding development versions
or CVS snapshots should be send to <devel@openser.org>.
If you want to keep the mail private, send it to
<team@openser.org>.
3.3. How can I report a bug?
Please follow the guidelines provided at:
http://sourceforge.net/tracker/?group_id=139143
|