Hi, I'm struggling with the configuration to use Kamailio as TCP UDP proxy: [SIP Client] <-(TCP)-> [Proxy] <-(UDP)-> [SIP Server] should be the setup. I only have one client and one SIP server.
How do I get Kamailio configured as a proxy so that translation between TCP and UDP works (and vice versa)? I have not yet found any documentation and examples that have caused messages to arrive at my SIP server. I think I've been on the wrong track so far and I'm looking forward to any help.
Thank you in advance, Laqoore
Hi Laqoore,
For a start:
*mhomed=1* *listen=udp:yourip:5060* *listen=tcp:yourip:5060*
On Thu, Oct 4, 2018 at 12:06 PM M K laqoore@outlook.com wrote:
Hi, I'm struggling with the configuration to use Kamailio as TCP UDP proxy: [SIP Client] <-(TCP)-> [Proxy] <-(UDP)-> [SIP Server] should be the setup. I only have one client and one SIP server.
How do I get Kamailio configured as a proxy so that translation between TCP and UDP works (and vice versa)? I have not yet found any documentation and examples that have caused messages to arrive at my SIP server. I think I've been on the wrong track so far and I'm looking forward to any help.
Thank you in advance,
Laqoore
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
just adding a bit more here ...
When changing the transport protocol, kamailio does bridging automatically. For example, if two users call each other and one has registered over UDP and the other over TCP, nothing special is needed, usrloc/registrar/rr and tm will do the job internally.
If the sip server is also the registrar, then the proxy must do Path extension processing (see path module).
If you get traffic over TCP and want to send out over UDP, you can set the dst uri to a UDP address and relay, like next:
$du = "sip:1.2.3.4:5060;transport=udp"; t_relay();
Cheers, Daniel
On 04.10.18 19:45, Sergiu Pojoga wrote:
Hi Laqoore,
For a start:
/mhomed=1/ /listen=*udp*:yourip:5060/ /listen=*tcp*:yourip:5060/
On Thu, Oct 4, 2018 at 12:06 PM M K <laqoore@outlook.com mailto:laqoore@outlook.com> wrote:
Hi, I'm struggling with the configuration to use Kamailio as TCP UDP proxy: [SIP Client] <-(TCP)-> [Proxy] <-(UDP)-> [SIP Server] should be the setup. I only have one client and one SIP server. How do I get Kamailio configured as a proxy so that translation between TCP and UDP works (and vice versa)? I have not yet found any documentation and examples that have caused messages to arrive at my SIP server. I think I've been on the wrong track so far and I'm looking forward to any help. Thank you in advance, Laqoore _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users