Sometimes we need to manipulate the parameters for a “by Registered User” route.
The usage of this script is that the Registered User number is actually an account number, and under this account, there are the indidivual phones numbers
The caller side will call the Registered account number, but set the individual phones number in the SIP header - X-DESTINOREM
This script will extract the SIP header - X-DESTINOREM from the incoming Invite and replace the Registered account number (original called number )with it
Attachments