Lab – multidomain support

Follow these steps for multidomain support:

  1. Try to register your phone with the new configuration. You will probably note an error in your phone registration.
  2. The preceding configuration now requires the module, domain.so. Now, to authenticate, the domain has to be in the domain table in the MySQL database.

    To add a domain, use the opensipsctl utility:

    opensipsctl domain add your-ip-address
    opensipsctl domain add your-domain
    

    Repeat the process for every domain.

    Don't forget to reload the module using the following command:

    opensipsctl domain reload
    
  3. Try again to register the phone. Probably, now the register process will work fine.

Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.