Acme Packet (MOSC)

MOSC Banner

SIP manipulation to reject calls where TO and FROM numbers are the same

This is what I have and it just doesn't work. I also tried storing one of the numbers in a variable and comparing that. What am I missing?

sip-manipulation

    name                  test-scott

    description               

    split-headers              

    join-headers               

    header-rule

        name                  to

        header-name               to

        action                 manipulate

        comparison-type             case-sensitive

        msg-type                request

        methods                 INVITE

        match-value               

        new-value                

        element-rule

            name                  rejectIfMatch

            parameter-name              

            type                  uri-user

            action                 reject

            match-val-type             any

            comparison-type             boolean

            match-value               ($FROM_USER == $TO_USER)

            new-value                401:Denied

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center