Skip to main content
Modify Diversion Header with LUA

Modify Diversion Header with LUA

·39 words·1 min
Mike Curtis
Author
Mike Curtis
Maintaining a live technical reference library.

the following LUA script can be used to over write a diversion header from CUCM.

M={}

  function M.outbound_INVITE(msg)

    msg:applyNumberMask("Diversion", "4078222000")

  end

return M

this same script can also be used for other SIP headers as well such as “P-Asserted-Identity”

Related Reading & Resources
For more information about me, check out my bio.