Capture SIP Debug Values

Hi there

I have a SIP trunk with my vendor, they are using huawei pabx, they send me modified SIP headers, they send me a “text” field with some value, i want to capture this and handle that call accordingly.
I am making outbound calls.

Is there any way to capture sip trace while making outbound call?

Please support me

Thanks

Sohaib Khan

There is a function, possibly ${SIPHEADER()} that will fetch a single header from a SIP message. It’s normally used on the initial request, but may well actually work on the last message received.