A Multi Tenant API for PJSIP
Asterisk has been switching from the legacy chan_sip
channel driver to a new SIP
stack based on the PJSIP library. We have been using
the new SIP stack in Wazo Platform for over a year now. The way we configure the
SIP channel driver as of Wazo Platform 20.03 still relies on the API that existed for
chan_sip
with a translation layer in wazo-confgend to convert the chan_sip
configuration to a chan_pjsip
one.
The translation system we are using at the moment does not deliver all the
values we could get from a properly configured chan_pjsip
. Moreover, the
standard format of the pjsip.conf
file is hard to override without using the
PJSIP Wizard.
We chose to use this change in API to make the SIP configuration as multi tenant as possible.
In this article we will look into the process of making this new API multi tenant.