[SR-Users] Multiple port configuration

Daniel-Constantin Mierla miconda at gmail.com
Sat May 10 00:35:31 CEST 2014


Multiple port=xyz lines is the way, be sure you don't have any listen=...

If doesn't work, give the log messages with debug=3 in kamailio.cfg.

Cheers,
Daniel

On 09/05/14 23:54, Alex Villací­s Lasso wrote:
> 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.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list