[OpenSIPS-Users] sl question.
johan
johan at democon.be
Mon Sep 12 14:24:43 UTC 2022
Hi,
setup : opensips acts as a client of a remote server (i.e. opensips
registers itself towards a provider) and handles the OPTIONS being
sent. On the same pc I have a sipp instance that generates traffic.
hence
provider <- udp 5060 -> opensips <-udp 5062-> sipp
The issue is now that the provider changes the contact in 200 ok.
Hence in sipp I take the contact from the received 200 and then I put in
the request uri of the ACK.
the problem si opensips rewrites the contact.
How can I avoid that ?
route{
# ASYNC PROCESSING => opensips handles it
if (is_method("OPTIONS|NOTIFY|SUBSCRIBE")) {
send_reply(200,"OK");
drop();
}
if ($sp==IADPORT)
{
xlog("from iad sp==$sp==IADPORT, we rewrite to sipp listening
port SIPPPORT and we forward to SIPPIP");
sethostport("SIPPIP:SIPPPORT");
forward("SIPPIP:SIPPPORT");
}
else if ($sp==SIPPPORT)
{
xlog("from sipp sp==$sp==SIPPPORT, we rewrite to iad listening
port IADPORT and we forward to IADIP");
sethostport("IADIP:IADPORT");
forward("IADIP:IADPORT");
}
else
{
xlog("sp==$sp!=[IADPORT,SIPPPORT], we drop the packet");
drop();
}
}
More information about the Users
mailing list