HMR to copy a header from Response and add it to Request
Hello;
I am working on an HMR which will copy a specific header "X-Genesys-CallUUID" from a 200 OK (response from a different dialog) and add that to an INVITE (request) going to a server. Both request and response will be handle by same core realm (the INVITE send out via different egress realm) . I was wondering how can I achieve this, should I create two HMR's first to store the "X-Genesys-CallUUID" from 200 OK and another HMR to add the stored value to INVITE and apply that to egress realm for that server ?
SIP/2.0 200 OK
Via: SIP/2.0/UDP 14.155.22.37:5060;branch=z9hG4bKqc0a683050s7ovkvc700.1;received=10.40.250.103