I’m very appreciated if someone can figure out this problem for me.
My aim is to setup HA Kamailio using Dispatcher module in Amazon EC2, system like this:
soft phone 1(Linphone) —————> | Load balancer —————> | Sip Server
huancomputer | private IP: 172.31.11.35 | 172.31.13.113
soft phone 2(Linphone) —————> | public IP: 35.166.179.244 | 35.166.152.104
huannguyen | |
The dispatcher.lst config file in /usr/local/etc/kamailio as below:
User records subscriber table:
———————————————————————————————————————————————————
id | username | domain
———————————————————————————————————————————————————
Location records from location table:
———————————————————————————————————————————————————
username | domain | contact
———————————————————————————————————————————————————
But soft phone 1 cannot make a call to soft phone 2, below is data is extracted from wireshark:
Load balancer:
--------------------------------
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
179 4.463367 172.31.11.35 14.161.41.70 SIP 452 Status: 100 trying -- your call is important to us |
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
1219 32.555588 172.31.13.113 172.31.11.35 SIP 743 Status: 200 OK (1 binding) |
No. Time Source Destination Protocol Length Info
1220 32.555706 172.31.11.35 14.161.41.70 SIP 593 Status: 200 OK (1 binding) |
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
1613 42.605800 172.31.13.113 172.31.11.35 SIP 749 Status: 200 OK (1 binding) |
No. Time Source Destination Protocol Length Info
1614 42.605932 172.31.11.35 14.161.41.70 SIP 599 Status: 200 OK (1 binding) |
No. Time Source Destination Protocol Length Info
1688 44.425237 172.31.11.35 14.161.41.70 SIP 471 Status: 408 Request Timeout |
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
1691 44.426018 172.31.13.113 172.31.11.35 SIP 519 Status: 200 canceling |
Data from Sip Server:
-------------------------------
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
243 6.244409 172.31.13.113 172.31.11.35 SIP 602 Status: 100 trying -- your call is important to us |
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
1312 34.334415 172.31.13.113 172.31.11.35 SIP 743 Status: 200 OK (1 binding) |
No. Time Source Destination Protocol Length Info
No. Time Source Destination Protocol Length Info
Huan Nguyen,
---------------------------------------
Mobile app developer
Phan Thi Company
Sai Gon, VietNam