[Serusers] calling rewriteuser and rewriteuri from a module?
Miklos Tirpak
miklos at iptel.org
Fri Apr 4 12:16:48 CEST 2008
#include "../../action.h"
struct action act;
struct run_act_ctx ra_ctx;
memset(&act, 0, sizeof(act));
act.type = SET_USER_T;
/* check route_struct.h" for the possible action types */
act.val[0].type = STRING_ST;
act.val[0].u.string = "new_user_name";
init_run_actions_ctx(&ra_ctx);
if (do_action(&ra_ctx, &act, msg) < 0) {
/* ERROR */
}
Miklos
p.s. Please post the development related questions to serdev instead of
serusers.
On 04/02/2008 11:09 PM, lin9k at yahoo.com wrote:
> Hi,
>
> I want to provide a module of our own. How do I call rewriteuser and rewriteuri functions from a module?
>
> Thanks in advance,
> Ling
>
>
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
> ____________________________________________________________________________________
> You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list