Hi,
First of all I would like to mention, that I'm very new to Kamailio. :) My target is to create simple load-balancing similar what have Kazoo, basically 2 servers will share same domain name. I installed 2 Kamailio 4.3 servers and configured this 2 servers with one domain address. I used almost default config with:
#!define WITH_MYSQL #!define WITH_AUTH #!define WITH_USRLOCDB #!define WITH_MULTIDOMAIN #!define WITH_NAT #!define WITH_NATSIPPING
Calls are going through if I register both clients to one server.
But all my calls are failing, when clients are registered to different servers with error "404 Not Found". Maybe somebody can give me a hint how to make this work.
Thank you!
With kind regards,
Jurijs
On Monday 20 July 2015 13:48:30 Jurijs Ivolga wrote:
But all my calls are failing, when clients are registered to different servers with error "404 Not Found". Maybe somebody can give me a hint how to make this work.
Use Path:
http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html
Hi,
I'm very sorry. :)
But could you please provide more info?
Should I add add_path() before if (!save("location"))?
With kind regards,
Jurijs
2015-07-20 14:04 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Monday 20 July 2015 13:48:30 Jurijs Ivolga wrote:
But all my calls are failing, when clients are registered to different servers with error "404 Not Found". Maybe somebody can give me a hint how to make this work.
Use Path:
http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html
--
Telefoon: 088 0100 700 Sales: sales@pocos.nl | Service: servicedesk@pocos.nl http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel 17097024
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Monday 20 July 2015 16:02:00 Jurijs Ivolga wrote:
But could you please provide more info?
Should I add add_path() before if (!save("location"))?
Path is a module you can use for user lookups/registration http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.matchin... http://kamailio.org/docs/modules/stable/modules/registrar.html#registrar.p.u...
Depending on how you register on a registrater server you'll need to add the Path header (in my previuos supplied URL, clients which register directly to a register server don't have any Path headers, so I added them manually (because add_path doesn't work in that place/time of routing/handling). If you are using a loadbalancer that adds Path headers then ofcourse adding Path headers before save() isn't neccessary.
My guess is your question is kind of the same as the one I asked (I don't know what Kazoo is/does): http://lists.sip-router.org/pipermail/sr-users/2015-April/087867.html
Hi,
Thank you for your help!
In my case i have 2 servers: 192.168.100.1 & 192.168.100.2 Both of this servers have one domain name voip.bla.com
No load-balancer is used.
I can register to any of this server with user 100@voip.bla.com and 200@voip.bla.com
Call is failing when I'm trying to call from 100@voip.bla.com to 200@voip.bla.com, when user 100@voip.bla.com registered to 192.168.100.1 and 200@voip.bla.com registered to 192.168.100.2.
As far as I understood I need to add path header.
Could you please let me know where exactly I need to add path header? I'm using default config, with almost no changes.
Additionally it is little bit confusing about parameters what I should add.
Should I add following parameters to config file or not?
modparam("usrloc", "matching_mode", 1) modparam("registrar", "use_path", 1)
Thank you!
2015-07-20 16:31 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Monday 20 July 2015 16:02:00 Jurijs Ivolga wrote:
But could you please provide more info?
Should I add add_path() before if (!save("location"))?
Path is a module you can use for user lookups/registration
http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.matchin...
http://kamailio.org/docs/modules/stable/modules/registrar.html#registrar.p.u...
Depending on how you register on a registrater server you'll need to add the Path header (in my previuos supplied URL, clients which register directly to a register server don't have any Path headers, so I added them manually (because add_path doesn't work in that place/time of routing/handling). If you are using a loadbalancer that adds Path headers then ofcourse adding Path headers before save() isn't neccessary.
My guess is your question is kind of the same as the one I asked (I don't know what Kazoo is/does): http://lists.sip-router.org/pipermail/sr-users/2015-April/087867.html
--
Telefoon: 088 0100 700 Sales: sales@pocos.nl | Service: servicedesk@pocos.nl http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel 17097024
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Monday 20 July 2015 17:11:38 Jurijs Ivolga wrote:
Could you please let me know where exactly I need to add path header? I'm using default config, with almost no changes.
Just before the save() like in http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html
Additionally it is little bit confusing about parameters what I should add.
Should I add following parameters to config file or not?
modparam("usrloc", "matching_mode", 1) modparam("registrar", "use_path", 1)
modparam("usrloc", "matching_mode", 2) modparam("registrar", "use_path", 1) modparam("registrar", "path_mode", 1)
Hi Daniel,
Does this assume that both Kamailios are connected to the same MySQL database?
I must admit I don't understand how it should work. What's the background behind this technique with "path"?
Best regards, Adam Romanek
On 20.07.2015 18:15, Daniel Tryba wrote:
On Monday 20 July 2015 17:11:38 Jurijs Ivolga wrote:
Could you please let me know where exactly I need to add path header? I'm using default config, with almost no changes.
Just before the save() like in http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html
Additionally it is little bit confusing about parameters what I should add.
Should I add following parameters to config file or not?
modparam("usrloc", "matching_mode", 1) modparam("registrar", "use_path", 1)
modparam("usrloc", "matching_mode", 2) modparam("registrar", "use_path", 1) modparam("registrar", "path_mode", 1)
Hi Daniel & Adam,
First of all I would like to apologies for mess.
My set-up is working as it is with default settings, when 2 servers share same DB in case if our subscribers do not use NAT.
If subscribers are behind NAT, then in this case such set-up will not work, as described here:
http://kb.smartvox.co.uk/opensips/clustering-opensips-part-2/
Please check diagram under "Far-end NAT traversal on multi-homed or clustered servers".
I believe in my case solution will be only when I will have one more Kamailio in front of my servers and it will dispatch all request to 2 servers, in this case I will eliminate this NAT issue.
With kind regards,
Jurijs
2015-07-21 9:36 GMT+03:00 Adam Romanek a.romanek@fibargroup.com:
Hi Daniel,
Does this assume that both Kamailios are connected to the same MySQL database?
I must admit I don't understand how it should work. What's the background behind this technique with "path"?
Best regards, Adam Romanek
On 20.07.2015 18:15, Daniel Tryba wrote:
On Monday 20 July 2015 17:11:38 Jurijs Ivolga wrote:
Could you please let me know where exactly I need to add path header? I'm using default config, with almost no changes.
Just before the save() like in http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html
Additionally it is little bit confusing about parameters what I should add.
Should I add following parameters to config file or not?
modparam("usrloc", "matching_mode", 1) modparam("registrar", "use_path", 1)
modparam("usrloc", "matching_mode", 2) modparam("registrar", "use_path", 1) modparam("registrar", "path_mode", 1)
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tuesday 21 July 2015 11:13:15 Jurijs Ivolga wrote:
My set-up is working as it is with default settings, when 2 servers share same DB in case if our subscribers do not use NAT.
If subscribers are behind NAT, then in this case such set-up will not work, as described here:
http://kb.smartvox.co.uk/opensips/clustering-opensips-part-2/
Please check diagram under "Far-end NAT traversal on multi-homed or clustered servers".
Adding the Path header on save() should solve this problem. The top most path is either the register server itself or the other one. If it is the otherone the INVITE should be send there. But like I said in http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html I hate NAT :(
I didn't look further into my routing problems but solved it with loadbalancers.
I believe in my case solution will be only when I will have one more Kamailio in front of my servers and it will dispatch all request to 2 servers, in this case I will eliminate this NAT issue.
This solved my problem. Path points to loadbalancer and received in path to the external received address/port.
UA1 registered to register1 via loadbalancer1 UA2 registered to register2 via loadbalancer2
if UA1 calls UA2, the call will go: UA1->LB1->random register->LB2 (based on path)->UA2 (based on path)
These loadbalancers are very simple and essentially stateless.
modparam("path", "use_received", 1)
...
request_route { route(NATDETECT); route(WITHINDLG);
if (is_method("INVITE|SUBSCRIBE")) { record_route(); }
if(!is_in_subnet($si, "myvoicesubnet")) { add_path_received("vialoadalancers"); $rd="mydomain";
ds_select_dst(1, 0); t_on_failure("RTF_DISPATCH"); } else { add_path("fromregistrars");
remove_hf("Route");
loose_route(); }
route(RELAY); }
Hi Daniel,
Maybe you can share with me full config of your load-balancer? It will be really nice if I can take a look on it. I'm very new in kamailio and for me is very difficult to complile working config from short code snippets. :)
You mentioned that you have 2 load-balancer. Does this 2 load-balancers share one domain-name?
I was thinking to use dispatcher module for load balancing. Do you use dispatcher module in your config?
With kind regards,
Jurijs
2015-07-21 12:25 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Tuesday 21 July 2015 11:13:15 Jurijs Ivolga wrote:
My set-up is working as it is with default settings, when 2 servers share same DB in case if our subscribers do not use NAT.
If subscribers are behind NAT, then in this case such set-up will not
work,
as described here:
http://kb.smartvox.co.uk/opensips/clustering-opensips-part-2/
Please check diagram under "Far-end NAT traversal on multi-homed or clustered servers".
Adding the Path header on save() should solve this problem. The top most path is either the register server itself or the other one. If it is the otherone the INVITE should be send there. But like I said in http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html I hate NAT :(
I didn't look further into my routing problems but solved it with loadbalancers.
I believe in my case solution will be only when I will have one more Kamailio in front of my servers and it will dispatch all request to 2 servers, in this case I will eliminate this NAT issue.
This solved my problem. Path points to loadbalancer and received in path to the external received address/port.
UA1 registered to register1 via loadbalancer1 UA2 registered to register2 via loadbalancer2
if UA1 calls UA2, the call will go: UA1->LB1->random register->LB2 (based on path)->UA2 (based on path)
These loadbalancers are very simple and essentially stateless.
modparam("path", "use_received", 1)
...
request_route { route(NATDETECT); route(WITHINDLG);
if (is_method("INVITE|SUBSCRIBE")) { record_route(); } if(!is_in_subnet($si, "myvoicesubnet")) { add_path_received("vialoadalancers"); $rd="mydomain"; ds_select_dst(1, 0); t_on_failure("RTF_DISPATCH"); } else { add_path("fromregistrars"); remove_hf("Route"); loose_route(); } route(RELAY);
}
--
Telefoon: 088 0100 700 Sales: sales@pocos.nl | Service: servicedesk@pocos.nl http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel 17097024
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tuesday 21 July 2015 12:45:02 Jurijs Ivolga wrote:
Maybe you can share with me full config of your load-balancer? It will be really nice if I can take a look on it. I'm very new in kamailio and for me is very difficult to complile working config from short code snippets. :)
See attachment. It is essentially the default config with some shortcuts for nat detection based on subnet and path support added.
You mentioned that you have 2 load-balancer. Does this 2 load-balancers share one domain-name?
Yes. The idea is that: -smart user agents can use SRV DNS records to do failover -not so smart user agents use the A DNS record (short ttl, maybe round robin) -stupid user agents use the ip adress of a loadbalancer by default and the other as backup
The actual domain is rewritten before sending to backends.
I was thinking to use dispatcher module for load balancing. Do you use dispatcher module in your config?
Yes, you need to loadbalance with dispatcher that the same callid is always routed to the same backend server.
Hi Daniel,
Thank you a lot!
I believe I need to add some config to my Kamailio servers what are behind Load-balancer too, so all communication should be send via Loadbalancer.
Maybe you can give me a hint about this part too?
Thank you a lot!
With kind regards,
Jurijs
2015-07-21 13:12 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Tuesday 21 July 2015 12:45:02 Jurijs Ivolga wrote:
Maybe you can share with me full config of your load-balancer? It will be really nice if I can take a look on it. I'm very new in kamailio and for
me
is very difficult to complile working config from short code snippets. :)
See attachment. It is essentially the default config with some shortcuts for nat detection based on subnet and path support added.
You mentioned that you have 2 load-balancer. Does this 2 load-balancers share one domain-name?
Yes. The idea is that: -smart user agents can use SRV DNS records to do failover -not so smart user agents use the A DNS record (short ttl, maybe round robin) -stupid user agents use the ip adress of a loadbalancer by default and the other as backup
The actual domain is rewritten before sending to backends.
I was thinking to use dispatcher module for load balancing. Do you use dispatcher module in your config?
Yes, you need to loadbalance with dispatcher that the same callid is always routed to the same backend server.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tuesday 21 July 2015 14:14:29 Jurijs Ivolga wrote:
I believe I need to add some config to my Kamailio servers what are behind Load-balancer too, so all communication should be send via Loadbalancer.
Maybe you can give me a hint about this part too?
There you need to use path for register and ursloc:
modparam("registrar", "use_path", 1) modparam("registrar", "path_mode", 1) modparam("registrar", "path_use_received", 1)
modparam("usrloc", "matching_mode", 2)
The rest is unaltered from my usual config, apart from custom business logic the only alteration is to force rtpproxy for all calls.
But beware, I'm not using any of this loadbalancing setup yet in production. I want to do more testing (but haven't gotten around to it yet)
Hi Daniel,
I'm still not able to make a call, now I'm getting "SIP/2.0 407 Proxy Authentication Required" from Kamailio server which is behind Load-balancer server.
So basically extension 100 sends invite to LB, LB then send invite to Kamailio server and Kamailio server replies with 407 error.
Do you have any ideas why?
Maybe you can give me more details about config on Kamailio server behind LB?
Additionally I can see that path details are written to DB, so this part is working. :)
Thank you in advance!
With kind regards,
Jurijs
2015-07-21 14:32 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Tuesday 21 July 2015 14:14:29 Jurijs Ivolga wrote:
I believe I need to add some config to my Kamailio servers what are
behind
Load-balancer too, so all communication should be send via Loadbalancer.
Maybe you can give me a hint about this part too?
There you need to use path for register and ursloc:
modparam("registrar", "use_path", 1) modparam("registrar", "path_mode", 1) modparam("registrar", "path_use_received", 1)
modparam("usrloc", "matching_mode", 2)
The rest is unaltered from my usual config, apart from custom business logic the only alteration is to force rtpproxy for all calls.
But beware, I'm not using any of this loadbalancing setup yet in production. I want to do more testing (but haven't gotten around to it yet)
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
So basically extension 100 sends invite to LB, LB then send invite to Kamailio server and Kamailio server replies with 407 error.
Do you have any ideas why?
No, you'll have to debug this the usual way. Run kamailio at a highe debug level to see what it is doing and log queries to the database. You'll have to make captures to see how the flow op sip messages is and who is requiring authentication.
Maybe you can give me more details about config on Kamailio server behind LB?
The config is equal to standard in this regard. Show us your config for the backend regarding authentication and registration.
Hi,
Please find my config in attachment. I'm using default config, with minor changes.
Please let me know if you need any additional info for debugging this issue.
With kind regards,
Jurijs
2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
So basically extension 100 sends invite to LB, LB then send invite to Kamailio server and Kamailio server replies with 407 error.
Do you have any ideas why?
No, you'll have to debug this the usual way. Run kamailio at a highe debug level to see what it is doing and log queries to the database. You'll have to make captures to see how the flow op sip messages is and who is requiring authentication.
Maybe you can give me more details about config on Kamailio server behind LB?
The config is equal to standard in this regard. Show us your config for the backend regarding authentication and registration.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
And attachment. :)
With kind regards,
Jurijs
2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
So basically extension 100 sends invite to LB, LB then send invite to Kamailio server and Kamailio server replies with 407 error.
Do you have any ideas why?
No, you'll have to debug this the usual way. Run kamailio at a highe debug level to see what it is doing and log queries to the database. You'll have to make captures to see how the flow op sip messages is and who is requiring authentication.
Maybe you can give me more details about config on Kamailio server behind LB?
The config is equal to standard in this regard. Show us your config for the backend regarding authentication and registration.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel,
First of all, thank you for your help!
Below you can find more detailed info:
I have following infrastructure:
22@10.50.210.9:6574 - UAC 11@10.50.210.9:50365 - UAC
10.101.237.133 - Loadbalancer Kamailio 10.101.241.55 - Kamailio Proxy, where UACs are registered
So this is how Invite travels
Invite (1)22@10.50.210.9:6574 => 10.101.237.133 - Loadbalancer Invite (2)10.101.237.133 - Loadbalancer => 10.101.241.55 - Kamailio Proxy Invite (3)10.101.241.55 - Kamailio Proxy => 10.101.237.133 - Loadbalancer Invite (4)10.101.237.133 - Loadbalancer => 10.101.241.55 - Kamailio Proxy 407 Error (5)10.101.241.55 - Kamailio Proxy => 10.101.237.133 - Loadbalancer
So invite get stuck at LB 10.101.237.133, it should send invite to 11@10.50.210.9:50365 at step (4) but it sends to Proxy back instead. After this proxy replies with 407 error.
Please find full SIP trace in attachment.
Thank you!
With kind regards,
Jurijs
2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
So basically extension 100 sends invite to LB, LB then send invite to Kamailio server and Kamailio server replies with 407 error.
Do you have any ideas why?
No, you'll have to debug this the usual way. Run kamailio at a highe debug level to see what it is doing and log queries to the database. You'll have to make captures to see how the flow op sip messages is and who is requiring authentication.
Maybe you can give me more details about config on Kamailio server behind LB?
The config is equal to standard in this regard. Show us your config for the backend regarding authentication and registration.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
Strange part that my LB receives invite with Route header:
U 2015/07/22 10:46:19.531380 10.101.241.55:5060 -> 10.101.237.133:5060 INVITE sip:11 at 10.50.210.9 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users:50365 SIP/2.0. Record-Route: sip:10.101.241.55;lr;nat=yes. Record-Route: sip:10.101.237.133;lr;nat=yes. Via: SIP/2.0/UDP 10.101.241.55;branch=z9hG4bK9f82.ae0b52341a6aa41d8f28e7f65ed9fd55.0.*Route: <sip:loadbalancer at 10.101.237.133 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users;lr;received=sip:10.50.210.9:50365 http://10.50.210.9:50365>*. Via: SIP/2.0/UDP 10.101.237.133;rport=5060;branch=z9hG4bK9f82.68623c2d6329f689d3ab43fdd3cf83c5.0. Via: SIP/2.0/UDP 192.168.5.148:55529;received=10.50.210.9;branch=z9hG4bK.jWzhtRBsW;rport=6574. From: <sip:22 at voipdev.mydomain.net http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>;tag=AZWk8e87s. To: sip:11 at voipdev.mydomain.net. http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users CSeq: 21 INVITE. Call-ID: LJoKbYM0YY. Max-Forwards: 69. Supported: outbound. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE. Content-Type: application/sdp. Content-Length: 577. Contact: <sip:22 at 10.50.210.9 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users:6574>;+sip.instance="urn:uuid:c1c7dbe5-7dac-4d3f-a496-af9fde38a0e7". User-Agent: LinphoneAndroid/2.4.1 (belle-sip/1.4.1). Path: <sip:loadbalancer at 10.101.237.133 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users;lr;received=sip:10.50.210.9:6574>. . v=0. o=22 4026 1869 IN IP4 10.101.254.33. s=Talk. c=IN IP4 10.101.254.33. b=AS:380. t=0 0. a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics. m=audio 46696 RTP/AVP 96 97 98 99 0 8 101 100 102. a=rtpmap:96 opus/48000/2. a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0. a=rtpmap:97 SILK/16000. a=rtpmap:98 speex/16000. a=fmtp:98 vbr=on. a=rtpmap:99 speex/8000. a=fmtp:99 vbr=on. a=rtpmap:101 telephone-event/48000. a=rtpm
But instead of sending this Invite to: received=sip:10.50.210.9:50365 it sends back to Kamailio Proxy(10.101.241.55), even if I have following line in my config.
modparam("path", "use_received", 1)
Maybe somebody have any idea why?
Thank you in advance!
With kind regards,
Jurijs
2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
So basically extension 100 sends invite to LB, LB then send invite to Kamailio server and Kamailio server replies with 407 error.
Do you have any ideas why?
No, you'll have to debug this the usual way. Run kamailio at a highe debug level to see what it is doing and log queries to the database. You'll have to make captures to see how the flow op sip messages is and who is requiring authentication.
Maybe you can give me more details about config on Kamailio server behind LB?
The config is equal to standard in this regard. Show us your config for the backend regarding authentication and registration.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tuesday 21 July 2015 08:36:49 Adam Romanek wrote:
Does this assume that both Kamailios are connected to the same MySQL database?
Yes.
I must admit I don't understand how it should work. What's the background behind this technique with "path"?
RTF RFC: https://tools.ietf.org/html/rfc3327
The Path extension header field allows accumulating and transmitting the list of proxies between UA1 and REGISTRAR. Intermediate nodes such as P1 may statefully retain Path information if needed by operational policy. This mechanism is in many ways similar to the operation of Record-Route in dialog-initiating requests. The routing established by the Path header field mechanism applies only to requests transiting or originating in the home domain.
But maybe http://kamailio.org/docs/modules/stable/modules/path.html#idp1638096 is more to the point and a much much shorter read :)
It coul be used to solve problems like Jurijs pointed out as the far end nat problem of http://kb.smartvox.co.uk/opensips/clustering-opensips-part-2/