# SIP Adaptation

SIP Adaptation is done by SIP Proxy between two or more SIP endpoints. When attempting to inter-operate between multiple SIP providers, it is necessary to make changes specific to a particular provider. For example, one provider wants header A in a particular format while another provider wants it in a different format. There are only limited switches and patches that can be made in MBG before support for all possible SIP providers becomes impossible.

The SIP adaptation feature aims to make such support possible to the individual requirements of a customer. This is done by creating a plugin architecture in MBG's core service, that permits these plugins to act on SIP headers in MBG's SIP processing pipeline. An open-source scripting language, Lua, originally intended for embedding in a software application to provide customizable scripting support, is used. Refer to the MBG Lua API document in the Create Pipeline page.

This setting can be applied globally across all SIP trunks, see Update Configuration Settings. Or to specific SIP trunks, see Configure SIP Trunking.