Hi there,

Could someone please explain to me the actual difference between Alias= and Listen=. I have read the documentation ( http://www.openser.org/dokuwiki/doku.php?id=openser_core_cookbook#alias and http://www.openser.org/dokuwiki/doku.php?id=openser_core_cookbook#listen ) but still cannot distinguish between what the two functions are doing differently.

Do I need to use both Alias and Listen at the same time in the config?

For example, if I have an openser server responsible for multiple domains sip1.foobar.com , sip2.foobar.com, etc and also listening in on multiple ports (5060, 5061, 5062), would I have to add the following to my openser.cfg?

listen=udp:localhost:5060     /* Loopback */
listen=udp:localhost:5061
listen=udp:localhost:5062
 
listen=udp:192.168.1.101:5060  /* LAN IP of the server */
listen=udp: 192.168.1.101:5061
listen=udp:192.168.1.101:5062
 
listen=udp:sip1.foobar.com:5060  /* Domain 1 */
listen=tcp:sip1.foobar.com:5060
listen=udp:sip1.foobar.com:5061
listen=tcp:sip1.foobar.com:5061
listen=udp:sip1.foobar.com:5062
listen=tcp:sip1.foobar.com:5062
 
listen=udp:sip2.foobar.com:5060   /* Domain 2 */
listen=tcp:sip2.foobar.com:5060
listen=udp:sip2.foobar.com:5061
listen=tcp: sip2.foobar.com:5061
listen=udp:sip2.foobar.com:5062
listen=tcp:sip2.foobar.com:5062
 

alias="sip1.foobar.com:5060"  /* Aliases for Domain 1 */
alias="sip1.foobar.com:5061"
alias=" sip1.foobar.com:5062"

alias="sip2.foobar.com:5060"  /* Aliases for Domain 2 */
alias="sip2.foobar.com:5061"
alias=" sip2.foobar.com:5062"

alias="111.222.333.444>"  /* IP OF SERVER */

Now if I understand correctly then if (uri==myself) { } should now be true for each of these domains.