Hi
I have come across this challenge:
Initial invite (no to_tag) has is authenticated and has credentials. So a lookup for the username is made to determine if the customer needs backhauling, thus rtpengine needs to be engaged.
On a subsequent invite (re-invite to change codec or to refresh session timer) there is a to_tag so it is being routed without sending a challenge and has no auth username.
I don't use dialog on the registrar. This is another transaction. So I don't know, if I need to engage rtpengine on that DSP or not.
What is the best way to find out, if rtpengine is already handling that callid?
if(rtpengine_query_v("j", "$var(dummy)")) { rtpengine_manage(); }
basically works, but generates a couple of ugly error messages in the log as rtpengine_query_v does not find the call.
Is there a nicer way?