Toggle navigation

SIP Templates configuration

Asterisk Base contains an easy way of creating and managing SIP templates, that integrate well with Odoo and Asterisk at the same time. You can read more about Asterisk’s templates on Asterisk Wiki.

Creating templates

To create a new template, go to PBX -> Settings -> SIP Templates and click on the Create button. You will see a form similar to the one below.

For the template you must introduce:

  • The name of the template
  • The type of the template - either User or Trunk
  • The parameters of the template.

The parameters of the template are each described by four fiels:

  • Param: The parameter name. Must correspond to the parameter name used inside Asterisk.
  • Value: The value attached to the parameter. Please check the Asterisk documentation for the corresponding values. A good resource for SIP parameters is the sample sip.conf file available at Github.
  • Param type: The Common param type will move the parameter into an Asterisk template, while the Individual type will populate the corresponding field inside the form view of the peer. If the template is for a User peer, it will automatically populate the form at PBX -> Applications -> SIP Peers, otherwise when the template is for a Trunk peer, the values created there will populate the form at PBX -> Applications -> Trunks

Whenever you need to add a new line to the template, simply click on the Add a line button below.

The resulting templates are generated in the file sip_odoo_templates.conf.