Hello,
if my SIP client tries to connect ... a server error occured (see below). Could you please help me to figure out the reason? Kamailio is installed on an amazon instance with an elastic IP (52.208.249.214, hostname: synth.ddns.net).
Thanks Hermann
ubuntu@ip-172-31-32-10:~sudo /etc/init.d/kamailio restart * Stopping Kamailio SIP Server: kamailio [ OK ] * Starting Kamailio SIP Server: kamailio loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/ Listening on udp: 127.0.0.1:5060 udp: 172.31.32.10:5060 tcp: 127.0.0.1:5060 tcp: 172.31.32.10:5060 Aliases: tcp: ip-172-31-32-10.eu-west-1.compute.internal:5060 tcp: localhost:5060 udp: ip-172-31-32-10.eu-west-1.compute.internal:5060 udp: localhost:5060 *: synth.ddns.net:*
ubuntu@ip-172-31-32-10:~$ kamctl db show subscriber +----+----------+----------------+----------+---------------+----------------------------------+----------------------------------+------+ | id | username | domain | password | email_address | ha1 | ha1b | rpid | +----+----------+----------------+----------+---------------+----------------------------------+----------------------------------+------+ | 1 | Johanna | synth.ddns.net | 12345 | | 4fa26cedd456d7105c01a48742e71e42 | 1e249ac341d95701f855fce18bec0fba | NULL |
ubuntu@ip-172-31-32-10:~$ sudo ngrep -d any -qt -W byline . port 5060
Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.5ad567803b13610279818912da2fcd81.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6a2baefed6cf4f6b6d34c7563d829e44.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6d74cec9e5f5e46dd9cd67338143127f.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.a3a37d6bd0cd5d68fc786568f587f06e.0. Via: SIP/2.0/UDP 188.174.185.176:5060 ;received=188.174.185.176;rport=5060;branch=z9hG4bKPjAgF18hfvv20KOQ9H8G-fqfIPMjjcu9wq. From: sip:Johanna@synth.ddns.net;tag=vzlAJNNNES67ir6nsLMjvyFh5D0Thy6s. To: sip:Johanna@synth.ddns.net;tag=b27e1a1d33761e85846fc98f5f3a7e58.3300. Call-ID: 9Uj4TSeQAVwaMs3UHf8UKIhuoA4xBEZt. CSeq: 39586 REGISTER. Server: kamailio (4.3.6 (x86_64/linux)). Content-Length: 0. .
U 2016/10/20 13:44:33.727161 52.208.249.214:5060 -> 172.31.32.10:5060 SIP/2.0 500 I'm terribly sorry, server error occurred (1/SL). Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.2605d82fd11bd8f788cfad582884eb6d.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.e425ad98e0436abc4661d1452a49670d.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.2d047656fb9df0edfccd4a40d20237b7.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.f54ab9c35b22814b15acbe16bcae387f.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.db5960988332c2f4899a5e1c2b57e3c6.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.62f1191bd5af8480698ce118984536c0.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.5ad567803b13610279818912da2fcd81.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6a2baefed6cf4f6b6d34c7563d829e44.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6d74cec9e5f5e46dd9cd67338143127f.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.a3a37d6bd0cd5d68fc786568f587f06e.0. Via: SIP/2.0/UDP 188.174.185.176:5060 ;received=188.174.185.176;rport=5060;branch=z9hG4bKPjAgF18hfvv20KOQ9H8G-fqfIPMjjcu9wq. From: sip:Johanna@synth.ddns.net;tag=vzlAJNNNES67ir6nsLMjvyFh5D0Thy6s. To: sip:Johanna@synth.ddns.net;tag=b27e1a1d33761e85846fc98f5f3a7e58.3300. Call-ID: 9Uj4TSeQAVwaMs3UHf8UKIhuoA4xBEZt. CSeq: 39586 REGISTER. Server: kamailio (4.3.6 (x86_64/linux)). Content-Length: 0.
2) My logfile /var/log/kamailio/kamailio.log is empty though
/etc/rsyslog.d/kamailio.conf exists with the entry: local0.* -/var/log/kamailio/kamailio.log
And in /etc/kamailio/kamailio.conf: log_facility=LOG_LOCAL0
Why is the logfile empty?
Thanks Herman
Hello,
this looks like a loop back to the server, causing the sip message size to grow too much. Be sure that the domain you use in the SIP headers is listed as an alias in kamailio.cfg:
alias=mydomain.com
Cheers, Daniel
On 20/10/16 16:39, Hermann Norpois wrote:
Hello,
if my SIP client tries to connect ... a server error occured (see below). Could you please help me to figure out the reason? Kamailio is installed on an amazon instance with an elastic IP (52.208.249.214, hostname: synth.ddns.net http://synth.ddns.net).
Thanks Hermann
ubuntu@ip-172-31-32-10:~sudo /etc/init.d/kamailio restart
- Stopping Kamailio SIP Server:
kamailio [ OK ]
- Starting Kamailio SIP Server:
kamailio loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/ Listening on udp: 127.0.0.1:5060 http://127.0.0.1:5060 udp: 172.31.32.10:5060 http://172.31.32.10:5060 tcp: 127.0.0.1:5060 http://127.0.0.1:5060 tcp: 172.31.32.10:5060 http://172.31.32.10:5060 Aliases: tcp: ip-172-31-32-10.eu-west-1.compute.internal:5060 tcp: localhost:5060 udp: ip-172-31-32-10.eu-west-1.compute.internal:5060 udp: localhost:5060 *: synth.ddns.net:*
ubuntu@ip-172-31-32-10:~$ kamctl db show subscriber +----+----------+----------------+----------+---------------+----------------------------------+----------------------------------+------+ | id | username | domain | password | email_address | ha1 | ha1b | rpid | +----+----------+----------------+----------+---------------+----------------------------------+----------------------------------+------+ | 1 | Johanna | synth.ddns.net http://synth.ddns.net | 12345 | | 4fa26cedd456d7105c01a48742e71e42 | 1e249ac341d95701f855fce18bec0fba | NULL |
ubuntu@ip-172-31-32-10:~$ sudo ngrep -d any -qt -W byline . port 5060
Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.5ad567803b13610279818912da2fcd81.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6a2baefed6cf4f6b6d34c7563d829e44.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6d74cec9e5f5e46dd9cd67338143127f.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.a3a37d6bd0cd5d68fc786568f587f06e.0. Via: SIP/2.0/UDP 188.174.185.176:5060;received=188.174.185.176;rport=5060;branch=z9hG4bKPjAgF18hfvv20KOQ9H8G-fqfIPMjjcu9wq. From: <sip:Johanna@synth.ddns.net mailto:sip%3AJohanna@synth.ddns.net>;tag=vzlAJNNNES67ir6nsLMjvyFh5D0Thy6s. To: <sip:Johanna@synth.ddns.net mailto:sip%3AJohanna@synth.ddns.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.3300. Call-ID: 9Uj4TSeQAVwaMs3UHf8UKIhuoA4xBEZt. CSeq: 39586 REGISTER. Server: kamailio (4.3.6 (x86_64/linux)). Content-Length: 0. .
U 2016/10/20 13:44:33.727161 52.208.249.214:5060 http://52.208.249.214:5060 -> 172.31.32.10:5060 http://172.31.32.10:5060 SIP/2.0 500 I'm terribly sorry, server error occurred (1/SL). Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.2605d82fd11bd8f788cfad582884eb6d.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.e425ad98e0436abc4661d1452a49670d.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.2d047656fb9df0edfccd4a40d20237b7.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.f54ab9c35b22814b15acbe16bcae387f.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.db5960988332c2f4899a5e1c2b57e3c6.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.62f1191bd5af8480698ce118984536c0.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.5ad567803b13610279818912da2fcd81.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6a2baefed6cf4f6b6d34c7563d829e44.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.6d74cec9e5f5e46dd9cd67338143127f.0. Via: SIP/2.0/UDP 172.31.32.10;received=52.208.249.214;branch=z9hG4bK533f.a3a37d6bd0cd5d68fc786568f587f06e.0. Via: SIP/2.0/UDP 188.174.185.176:5060;received=188.174.185.176;rport=5060;branch=z9hG4bKPjAgF18hfvv20KOQ9H8G-fqfIPMjjcu9wq. From: <sip:Johanna@synth.ddns.net mailto:sip%3AJohanna@synth.ddns.net>;tag=vzlAJNNNES67ir6nsLMjvyFh5D0Thy6s. To: <sip:Johanna@synth.ddns.net mailto:sip%3AJohanna@synth.ddns.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.3300. Call-ID: 9Uj4TSeQAVwaMs3UHf8UKIhuoA4xBEZt. CSeq: 39586 REGISTER. Server: kamailio (4.3.6 (x86_64/linux)). Content-Length: 0.
- My logfile /var/log/kamailio/kamailio.log is empty though
/etc/rsyslog.d/kamailio.conf exists with the entry: local0.* -/var/log/kamailio/kamailio.log
And in /etc/kamailio/kamailio.conf: log_facility=LOG_LOCAL0
Why is the logfile empty?
Thanks Herman
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