Commit 56af7dde authored by Michael Proestler's avatar Michael Proestler
Browse files

Add Base Version of ESRP_FIND_SERVICE_BV_01

parent 90623f7a
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
echo "Sending ECRF Request"
curl --location --request POST 'http://127.0.0.1:8080' \
--header 'Content-Type: application/lost+xml' \
--data-raw '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<findService xmlns="urn:ietf:params:xml:ns:lost1" recursive='\''true'\''>
	<location id="6020688f1ce1896d" profile="geodetic-2d">
		<gml:Point xmlns:gml="http://www.opengis.net/gml" gml:id="point1" srsName="urn:ogc:def:crs:EPSG::4326">
	        <gml:pos>43.582070 6.974516</gml:pos>
        </gml:Point>
	</location>
	<path>
		<via source="ecrf1.gridgears.plugtests.net"/>
	</path>
	<service>urn:service:sos.police</service>
</findService>'
+57 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use [call_id] keyword.                -->
  
  <send>
    <![CDATA[

      INVITE sip:[service]@127.0.0.1:5080 SIP/2.0
      Via: SIP/2.0/TCP [local_ip]:[local_port]
      From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
      To: sut <sip:[service]@127.0.0.1:5080>
      Call-ID: [call_id]
      Cseq: 1 INVITE
      Contact: sip:sipp@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Type: application/sdp
      Content-Length: [len]

      v=0
      o=FAST_V2R1 2006 2007 IN IP4 155.11.49.64
      s=-
      t=0 0
      m=audio 10500 RTP/AVP 8 0 18 4 96 97
      c=IN IP4 conftest.plugtests.net
      a=rtpmap:0 PCMU/8000
      a=rtpmap:18 G729/8000
      a=rtpmap:4 G723/8000
      a=rtpmap:96 AMR/8000
      a=rtpmap:97 telephone-event/8000
      a=fmtp:97 0-15
      a=sendrecv
    ]]>
  </send>  
</scenario>
+34 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use [call_id] keyword.                -->
  
  <recv request="INVITE">
      <action>          
          <exec command="./FindServiceRequest.sh"></exec>
      </action>
  </recv>

  <pause milliseconds="1500"/>
</scenario>
+3 −2
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ module AtsESRP_Functions {
    import from LibItsHttp_XmlMessageBodyTypes all;
    import from LibItsHttp_MessageBodyTypes all;
    import from LibItsHttp_Functions all;
    import from LibItsHttp_Pics all;

    import from LibSip_SIPTypesAndValues all;
        
@@ -46,7 +47,7 @@ module AtsESRP_Functions {
        }
    }

    function awaitingRequest_sendReply(template LibItsHttp_TypesAndValues.Request p_request, template (value) XmlBody p_reply) runs on HttpComponent {
    function awaitingRequest_sendReply(template LibItsHttp_TypesAndValues.Request p_request, template (value) XmlBody p_reply, in charstring p_content_type := PICS_HEADER_CONTENT_TYPE ) runs on HttpComponent {
        var Headers v_headers;
        
        alt {
@@ -54,7 +55,7 @@ module AtsESRP_Functions {
            tc_ac.stop;
            
            // Send the response
            f_init_default_headers_list(-, -, v_headers);
            f_init_default_headers_list(p_content_type, -, v_headers);
            httpPort.send(
                            m_http_response(
                                            m_http_response_ok(
+20 −1
Original line number Diff line number Diff line
module AtsESRP_Pixits {
  
  import from XSD all;
  import from http_www_opengis_net_gml all;

  // Dequeue Registration  
  modulepar charstring PX_ESRP_DEQUEUE_REGISTRATION_URI := "/esrp";
@@ -12,6 +13,24 @@ module AtsESRP_Pixits {
  modulepar integer     PX_ESRP_DEQUEUE_REGISTRATION_EXPIRATION := 3600;
  modulepar integer     PX_ESRP_DEQUEUE_REGISTRATION_PREFERENCE := 5;

  // PX_CIRCLE_IN_G1
  modulepar DoubleList PX_CIRCLE_IN_G1_CENTER := { 43.58206959563555, 6.974515914916991 };
  modulepar XSD.Double PX_CIRCLE_IN_G1_RADIUS := 200.000;
  modulepar XSD.AnyURI PX_CIRCLE_IN_G1_UOM := "urn:ogc:def:uom:EPSG::9001";

  // Downstream Element
  modulepar XSD.AnyURI PX_URI_POLICE_G1 := "sip:police@g1.esinet.io";


  // ECRF Test System Defaults
  modulepar XSD.String    PX_PATH                   := "ecrf.testcomponent.esinet.io";  
  modulepar XSD.DateTime  PX_MAPPING_EXPIRATION     := "2099-03-03T09:36:53+00:00";
  modulepar XSD.DateTime  PX_MAPPING_LAST_UPDATED   := "2021-03-03T09:36:53+00:00";
  modulepar XSD.String    PX_MAPPING_SOURCE         := "ecrf.testcomponent.esinet.io"; 
  modulepar XSD.AnyURI    PX_MAPPING_SOURCE_ID      := "1d2af31b-4f75-4277-871a-dd3fad15b002";
  modulepar XSD.String    PX_MAPPING_DISPLAY_NAME   := "Police";
  

  // Debug
  modulepar boolean PX_ADD_TC_NAME_HTTP_HEADER := false;

Loading