I have a problem with UAC sending RPID in 200 OK response which is then copied by Freeswitch to A-leg. All methods I've tried so far allowed for removal or modification of RPID header in outgoing INVITE on B-leg, but when B-leg sends 200 OK response, it contains RPID header which is copied and passed down to A-leg, messing up with caller id displayed on the phone. Is there a way to stop this behaviour? Below is a diagram of an example call.
UAC A FS UAC B
| INVITE | |
| contains RPID | |
|----------------------------------->| INVITE |
| | no RPID (correct) |
| | ------------------------------->|
| | |
| | 200 OK |
| | contains RPID |
| 200 OK |<--------------------------------|
| contains RPID, copied from B-leg | |
| I want this RPID removed | |
|<-----------------------------------| |