Hello,

I'm having troubles trying to figure out how to work with one of my providers. They require that Contact be the specific address of my server for authorization, however, Contact is always the address of the UAC initiating the call. I've tried to use

subst('/^Contact:(.*)sip:[^@]*@[a-zA-Z0-9.]*:[0-9]+(.*)$/Contact:\1sip:2345550000@1.2.3.4:5060\2/i');


and this works until a reinvite or a BYE is received. Kamailio follows the contact and sends it back to 1.2.3.4 like it's supposed to and loops around and around until max forwards is hit.


Has anybody tackled this before or have any suggestions?

Thanks,

John