[OpenSIPS-Users] Freeswitch integration

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Mar 20 13:56:05 UTC 2024


Hi,

Who's generating the 407 reply? OpenSIPS or FS ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 15.03.2024 13:03, Dragan, Calin via Users wrote:
>
> Hi,
>
> I’m trying to use Freeswitch as a media server with Opensips as a load 
> balancer, I need something very basic for a POC. (I configured the 
> load balancer and dispatcher based on old information found here: 
> https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Enterprise-Deployment/Enterprise-deployment-OpenSIPS_13173169/#freeswitch-configuration, 
> here: 
> https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Auxiliary-Knowledge-and-Utilities/OpenSIPS-configuration-for-2-or-more-FreeSWITCH-installs_13173462/ 
> and here: 
> https://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegration)
>
> I’m adding the X-Auth-IP header to the requests like this (this is 
> based on the config that ships with the 3.4.x release in the docker 
> image, so I guessed that this is where I should add the header):
>
> route[relay] {
>
>                # for INVITEs enable some additional helper routes
>
>                if (is_method("INVITE")) {
>
>  remove_hf("X-Auth-IP");
>
> append_hf("X-Auth-IP: $si\r\n");
>
> append_to_reply("X-Auth-IP: $si\r\n");
>
> xlog("L_INFO", "$ci|log|X-Auth-IP: $si\n");
>
> xlog("L_INFO", "SIP Message: $mb");
>
> t_on_failure("missed_call");
>
> t_on_branch("per_branch_ops");
>
> t_on_reply("handle_nat");
>
>                }
>
>                if (!t_relay()) {
>
> send_reply(500,"Internal Error");
>
>                }
>
>                exit;
>
> }
>
> On the freeswitch side I added the IP set by opensips in the list of 
> allowed addresses.
>
> Now, with or without authentication enabled on the Freeswitch side 
> (i.e. regardless of what I set in the “auth-calls” param, or if I 
> enable the accept-blind-auth), or even whether the Freeswitch is 
> running or not, when I try to place a call from/to some registerd 
> addresses, I get the “407 Proxy authentication required” response.
>
> Could you please give me some hints on what I might be doing wrong, or 
> direct me to a contemporary tutorial?
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240320/e292fa28/attachment-0001.html>


More information about the Users mailing list