Hi Sakharam,
Thank you for the suggestions but the regex I am tryiung to construct is
one that works in sipp for both cases not only one case at a time.

using your IP address regex and stripping away the unwanted port match I
added that to the regex and it did not provide and error when an IP address
is presented as the hostpart of the URI but neither did it provide a match
:-(

here is what I tried:

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

Here are the log files and the error.log as you canb see the entry is blank.

sipp: The following events occured:
2014-07-07    18:55:25.326222    1404716125.326222: REGISTER 1 TO URI HOST
= example.com.
2014-07-07    18:55:25.326536    1404716125.326536: REGISTER 1 TO URI USER
= 93531265.
2014-07-07    18:55:25.326646    1404716125.326646: REGISTER 1 FROM URI
HOST = example.com.
2014-07-07    18:55:25.326724    1404716125.326724: REGISTER 1 FROM URI
USER = 93531265.
2014-07-07    18:55:25.326838    1404716125.326838: REGISTER 1 CONTACT URI
HOST = .
2014-07-07    18:55:25.327007    1404716125.327007: REGISTER 1 CONTACT URI
USER = 93531265.
2014-07-07    18:55:25.330856    1404716125.330856: REGISTER 2 TO URI HOST
= example.com.
2014-07-07    18:55:25.330987    1404716125.330987: REGISTER 2 TO URI USER
= 93531265.
2014-07-07    18:55:25.331109    1404716125.331109: REGISTER 2 FROM URI
HOST = example.com.
2014-07-07    18:55:25.331186    1404716125.331186: REGISTER 2 FROM URI
USER = 93531265.


and next the log file generated:

REGISTER 1 TO URI HOST = example.com
REGISTER 1 TO URI USER = 93531265
REGISTER 1 FROM URI HOST = example.com
REGISTER 1 FROM URI USER = 93531265
REGISTER 1 CONTACT URI HOST =
REGISTER 1 CONTACT URI USER = 93531265
REGISTER 2 TO URI HOST = example.com
REGISTER 2 TO URI USER = 93531265
REGISTER 2 FROM URI HOST = example.com
REGISTER 2 FROM URI USER = 93531265

Thanks

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