Hello Liviu,
May I send few screen shot of sip flow for this call ?
volga629.
On 3/24/21 8:57 AM, volga629 via Users
wrote:
Hello Liviu,
We use topology hiding edge proxy for end point.
Here are example
of contact header
Contact: <sip:112%40domain.com@10.30.100.61:5060>
that call is inbound from PBX to opensips and opensips forward to
end point.
if(is_method("INVITE|UPDATE|ACK|BYE|CANCEL|NOTIFY|INFO|OPTIONS")
&& $rU=~"%40") {
xlog("[RELAY] [$rm] testing original
[$ru]\n");
route(CONTACT_LOOKUP);
# We want exclude ACK rewrite toward Bria Push
Server
} else if(!isflagset("FLAG_BRIA_PUSH")) {
xlog("[RELAY] [$rm] didn't match R-URI
schema [$ru] correcting\n");
$ru = "sip:" + $tU + "%40" + $td + "@" +
$td;
route(CONTACT_LOOKUP);
}
volga629
On 3/24/21 5:04 AM, Liviu Chircu
wrote:
On 24.03.2021 05:04, volga629 via
Users wrote:
But then arrive the ACK and
that where start the problems lookup only find first
contact and not second.
Hi Volga,
So you're doing a lookup() on the ACK
Request-URI? Typically, the ACK R-URI will contain a
contact header, which is not meant to be searchable. I'm
surprised you even get 1 result, I would expect such a
lookup() to return -1.
Can you explain what you are trying to
achieve? Why not just route the ACK using loose_route(),
just like all other mid-dialog requests, and be done with
it?
--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
|
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users