Günther Starnberger wrote:
in the flow
below, the problem is that the 407 from the remote party
must not be fwded to the client but processed by openser : got via
failure route and applied uac_auth().
basically thats what i already do in failure_route[5].
the incoming INVITEs from the client are handled in route[3]. before i
do any relaying i have a call to consume_credentials() which should
remove the credentials of the client. this works when the INVITE is
relayed for the first time. but when uac_auth() comes into play it
sends the first INVITE to the remote end with the credentials of the
client (instead of the ones which are configured).
at the end of the dump you see the "200 Ok" packets from the
remote-end. there are no replies in the dump as no record-route is
inserted for some reason - the client therefore sends the replies
directly to the remote endpoint.
yes, that's problem - for some hidden reasons, that "User-Agent: (Very
nice Sip Registrar Server)" does not mirror the RR set in the 200 reply,
which is violation of the RFC. The bug is in that UA and you should
report it to them.
regards,
bogdan