when a call is received on our asterisk server, we forward the call to another host which in response returns ‘302 Moved Temporarily’ response along with P-Asserted-Identity header.
We would like to fetch this P-Asserted-Identity-Header from this incoming response and add it the SIP Header and again dial another extension.
Our issue is, when 302 Moved Temporarily response is received, we are unable to preserve it to fetch P-Asserted-Identity header from it and later add it to SIP message.
Can someone help how can we do it.