The libcurl seems to offer an option for that as well:
-
https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html
So it can be a small patch to the module and support it in the future.
If you look for a solution on current stable, maybe one of the embedded
scripting languages can help, you can execute inline a small script in
Lua/Python/Perl with app_lua_run() & equivalents. In the past I used the
http client from lua to do more complex http api queries (e.g., with
specific headers, ...).
Cheers,
Daniel
On 13.01.20 17:00, Fred Posner wrote:
I'd never had a reason to before, but on a
deployment I need http
messages to go out a specific interface. Curl has an --interface option,
but I don't see how to do the same with http_client. Unless I'm missing
something...
Anyone ever do something like this?
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin --
www.kamailioworld.com