Thanks Sakharam you have put me on the right track with your comments on
the me logging the wrong variable.

I have changed the regex to below and now it always logs to the same
variable and I once again have a discard variable I simply reference and
ignore.

I still think the regex support in sipp is blackart as it is quite
different than others and seems to have some peculiar behaviorism.

For any one else reading this thread in the future this is what I ended up
with (less logging needed as I gain confidence in the matching working)

      <!-- Check host is example.com or an IP address -->
      <ereg regexp="@([0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}|
example.com)"
        search_in="hdr"
        header="Contact:"
        case_indep="true"
        check_it="true"
        assign_to="discardR15,cHostR1"
      />
    <log message="REGISTER 1 CONTACT URI HOST = [$cHostR1]"/>


Cheers

Paul
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to