Forums Read-only archive

How to: Matching pattern for if(remote party id != from)

3 posts · Brekeke SIP Server Forum

AllstateTelecom Original post
1. Brekeke Product Name and Version: Brekeke SIP Server , Version 2.4.8.6 Advanced

2. Java version: 1.7.0

3. OS type and the version: Centos - Linux kernel 2.6.18-238.19.1.el5

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:

How would I create a matching pattern that is the equivalent to this pseudo code:

if(remote party id != from)


Thanks,
Brian
hope
what is remote party ID?
is it shown in any SIP header?
tuie2
Do you mean "Remote-Party-Id" header?

Try this.
$str.equals($getUri(From), $getUri(Remote-Party-Id)) = false