[SR-Users] Multiple port configuration

Alex Villací­s Lasso a_villacis at palosanto.com
Fri May 9 23:54:00 CEST 2014


How do I configure kamailio to listen to multiple ports, on all known interfaces?

I have tried "listen=udp:*:5060", "listen=udp:*:5062" on separate lines, but I get the following errors:
Not starting : invalid configuration file!

  0(7806) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file //etc/kamailio/kamailio.cfg, line 190, column 12: syntax error
  0(7806) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file //etc/kamailio/kamailio.cfg, line 190, column 12: ip address, interface name or hostname expected
  0(7806) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file //etc/kamailio/kamailio.cfg, line 190, column 13:
ERROR: bad config file (3 errors)

I have also tried "port=5060", then "port=5062" on separate lines, but kamailio only listens on the port indicated by the last line.

I do not want to have to enumerate every single interface on the configuration file.



More information about the sr-users mailing list