I'm having problems with my To field.
I'm doing an async_route, and afterwards sends the call with auth to a SIP server.
My problem is that in the first invite I see the expected To field sip:004520202020@isp.com
But when the Auto is send the To field is changed to the, To field for the PBX sip:1234@pbx.local
I tried to fix this with uac_replace_to("$ru"), but that ends up in this To field: sip:004520202020@isp.comsip:004520202020@isp.com
It seems like uac_replace_to sometimes appends rather that replaces. If I run it twice, then it for sure appends. Is this expected behaviour.