Editing SIP headers

No replies
memed09
Offline
Joined: 02/15/2016

sip=packet.getHeader(sip);
if(sip.fieldValue(Sip.Request.RequestUrl)!=null) {
ReqURL= sip.fieldValue(Sip.Request.RequestUrl);
sip.addField(Sip.Request.RequestUrl, ReqURL.split("@")[0]+"@"+destnIP, 1);
}