[Devel] rewritehostport
Daniel-Constantin Mierla
daniel at voice-system.ro
Fri Oct 7 10:58:40 CEST 2005
On 10/06/05 20:06, Taras Bendik wrote:
> I am trying to use rewritehostport inside a custom module.
> So I use some thing like this :
>
> struct action act;
> act_type = SET_HOST_T;
> memset(&act, 0, sizeof(act));
> act.p1_type = STRING_ST;
> act.p1.string = _host;
> act.type = SET_HOST_T;
> if (do_action(&act, _msg)<0)
> {
> LOG(L_ERR,"ERROR:change_host_port: SET_XXXX_T action
> failed\n");
> return -1;
> }
> return 1;
>
> And it's work ok, however, I there is any other preffered way? Or somu
> ready to use functions?
> Or I should stick to the this one?
this one is preferred, maybe an inline wrapper will shorten some coding
inside many modules.
Cheers,
Daniel
>
> Regards
> Taras
>
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
More information about the Devel
mailing list