Hi,
I have an OpenSER DISPATCHER instance successfully forwarding requests to one of four OpenSER "worker" instances. I need to authorize by originating IP on the worker machines but of course requests are only coming from the dispatcher machine.
I had thought of having the dispatcher drop the originating IP in the headers but haven't been able to figure out how to do that. Something like append_hf( "origin: $si\r\n" );?
I had also thought about having the dispatcher send back a 302 Moved Temporarily but can't figure out how to get at the dispatched IP.
Is there a better way to be doing this short of checking for the IP on the dispatcher? I had hoped to avoid that in favor of having the dispatcher handle extreme load.
Thanks.
-Anders
Hello,
On 02/15/06 23:13, Anders Brownworth wrote:
Hi,
I have an OpenSER DISPATCHER instance successfully forwarding requests to one of four OpenSER "worker" instances. I need to authorize by originating IP on the worker machines but of course requests are only coming from the dispatcher machine.
I had thought of having the dispatcher drop the originating IP in the headers but haven't been able to figure out how to do that. Something like append_hf( "origin: $si\r\n" );?
yes, with append_hf() you can add headers to requests.
I had also thought about having the dispatcher send back a 302 Moved Temporarily but can't figure out how to get at the dispatched IP.
you can call ds_select_domain() and then use sl_send_reply("302", "Moved Temporarily"); . In case of redirect replies, the r-uri should be added as contact.
Cheers, Daniel
Is there a better way to be doing this short of checking for the IP on the dispatcher? I had hoped to avoid that in favor of having the dispatcher handle extreme load.
Thanks.
-Anders
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users