As I understand haproxy protocol may be used only for `inbound` connections and can't be used for outbound connections. According to` lsof` output, problem connection is outbound ``` [root@sbc-13 ~]# lsof -a -p 56907| grep 3931924 kamailio 56907 kamailio 58u IPv4 3931924 0t0 TCP ip-100-85-118-66.us-west-1.compute.internal:sip->207.244.110.239:11495 (ESTABLISHED) ```
From point of view need to change [this block](https://github.com/kamailio/kamailio/blob/1f751775525fdcdb5a75b45fbf451e2bef...) to avoid enter when Kamailio try to create the outbound connection.