[Users] newbie - have openser handle 302s
Klaus Darilion
klaus.mailinglists at pernau.at
Mon Jul 24 14:04:41 CEST 2006
Take a look at the README of the uac_redirect module
http://openser.org/docs/
regards
klaus
Eliezer Ramm wrote:
> Hi,
>
> i have a proxy that sends a 302 to my openser.
>
> what do i need to do to have the openser ack the 302
> and send a new invite to the address recieved in the
> 302 ? where would i insert it in my cfg file ?
>
> thanx !!
>
> # ------------------ module loading
> ----------------------------------
>
> # Uncomment this if you want to use SQL database
> #loadmodule "/usr/lib/openser/modules/mysql.so"
>
> loadmodule "/usr/local/openser-1.0.1/modules/sl/sl.so"
> loadmodule "/usr/local/openser-1.0.1/modules/tm/tm.so"
> loadmodule "/usr/local/openser-1.0.1/modules/rr/rr.so"
> loadmodule
> "/usr/local/openser-1.0.1/modules/maxfwd/maxfwd.so"
> loadmodule
> "/usr/local/openser-1.0.1/modules/usrloc/usrloc.so"
> loadmodule
> "/usr/local/openser-1.0.1/modules/registrar/registrar.so"
> loadmodule
> "/usr/local/openser-1.0.1/modules/textops/textops.so"
> loadmodule
> "/usr/local/openser-1.0.1/modules/enum/enum.so"
> loadmodule
> "/usr/local/openser-1.0.1/modules/xlog/xlog.so"
> loadmodule
> "/usr/local/openser-1.0.1/modules/uac_redirect/uac_redirect.so"
>
> # Uncomment this if you want digest authentication
> # mysql.so must be loaded !
> #loadmodule "/usr/lib/openser/modules/auth.so"
> #loadmodule "/usr/lib/openser/modules/auth_db.so"
>
> # ----------------- setting module-specific parameters
> ---------------
> modparam("usrloc", "db_mode", 0)
> modparam("rr", "enable_full_lr", 1)
>
> route {
>
>
> #
> ------------------------------------------------------------------------
> # Sanity Check Section
> #
> ------------------------------------------------------------------------
>
>
>
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483", "Too Many Hops");
> exit;
> };
>
>
>
> if (msg:len > max_len) {
> sl_send_reply("513", "Message Overflow");
> exit;
> };
>
> #
> ------------------------------------------------------------------------
>
> #
> ------------------------------------------------------------------------
> if (method!="REGISTER") {
> record_route();
> };
>
> #
> ------------------------------------------------------------------------
> # Loose Route Section
> #
> ------------------------------------------------------------------------
> if (loose_route()) {
> route(1);
> exit;
> };
>
> #
> ------------------------------------------------------------------------
> # Call Type Processing Section
> #
> ------------------------------------------------------------------------
>
>
> if (uri!=myself) {
> route(1);
> exit;
> };
>
> #
>
> if (method=="ACK") {
> route(1);
> exit;
> }
>
> if (method=="REGISTER") {
> route(2);
> exit;
> };
>
>
>
> lookup("aliases");
> if (uri!=myself) {
> route(1);
> exit;
> };
>
>
> if (!lookup("location")) {
> #sl_send_reply("404", "User Not Found");
> forward( 10.10.10.10, 5060);
>
> exit;
> };
>
> route(1);
> }
>
> route[1] {
> #
> ------------------------------------------------------------------------
> # Default Message Handler
> #
> ------------------------------------------------------------------------
> if (!t_relay()) {
> sl_reply_error();
> };
> }
>
> route[2] {
> #
> ------------------------------------------------------------------------
>
> #
> ------------------------------------------------------------------------
> # simple no-auth registration
>
> if (save("location")) {
> sl_send_reply("200","OK");
> };
>
> if (!save("location")) {
> sl_reply_error();
> };
> }
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list