Dear List
In the last week I try to figure out how I can put in place a
configuration that use an edge proxy and a register by using
kamailio 5.6, but i am facing some issues.
Scenario:
We are using on ubuntu 20.04, HAproxy and Kamailio 5.6.
We have configured a Kamailio register that, in the following
case, perfectly works.
______ __
__________
TLS | | TLS
| |
Client ------------------ > | NAT
|-----------> | Kamalio |
in |_HAProxy | out
in | Register |
|_________|
| |
|________ _|
Now we want to put a kamailio edge proxy before the kamailio
Register, please take a look to the below picture
HAproxy -> sip-test.example.com
Kamailio edge proxy -> 192.168.58.1
Kamailio Register -> 192.168.58.15
The kamailio Edge has been configured as indicated in the outbound module example.
When a transaction such as REGISTER or SUBSCRIBE reach the
"Kamailio Register" the Record-Route and Via headers are correct
and it works.
When the transaction such as MESSAGE or INVITE reach the
"Kamailio Register" it does not work and below you can see the
message and the error.
Note that the Record-Route and Via headers are the same as the
previous message REGISTER and SUBSCRIBE.
Dec 6 11:57:09 qcast-webserver-dev /usr/sbin/kamailio[15340]: INFO: {1 40742 MESSAGE YsfZ7Rq-WGw33NUn9AFMWEuurzryvzET} <script>: SIPMessage-in-request = 192.168.58.1:53606-sip:s-user.02@sip-dev.example.com-MESSAGE sip:s-user.02@sip-dev.example.com SIP/2.0
Record-Route: <sip:192.168.58.1:15006;transport=tcp;r2=on;lr>
based on what we have understood in the message headers "Via" and Record-Route" there are the right information to reach back the proxy Edge, but looking to the error message it seems that the kamailio register try to reach back the proxy edge through the TLS instead of using the TCP.
Could someone put me in the right direction.
Thanks
Regards
Ing. Giovanni
Iamonte
Developments and technologies area
Quintetto Srl
Via Monte Navale, 1
10015 - Ivrea (TO)
mobile: +39 393 9196310
tel: +39 0165 1845290
e-mail: giovanni.iamonte@quintetto.it
web: www.quintetto.it