Homepage of the Emergency Services Open IMS Core Branch
Scripts for generating an emergency or non-emergency registration and also an emergency call can be found in the 12_em_services branch on the path ser_ims/test/emerg_serv. The scripts are using MD5 authentication. Unfortunately SIPp does not support (yet) the qop parameter.
modparam("scscf","registration_default_algorithm","MD5")
set the qop parameter to ""
modparam("scscf","registration_qop","")
If a LoST server is properly configured and running (including the modification of the LoST database to refer to the open-ims.test domain), a registered or anonymous user can generate an emergency call. Its location will be mapped to the PSAP URI sip:psap_nj@open-ims.test. The common steps to run these scenarios are:
cd ser_ims/cfg ./add-imscore-user_newdb.sh -u psap_nj -t tel:112 -a
cd ser_ims/test/emerg_serv/
sipp -sf non_em_reg_psap_nj.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3062 -m 1
sipp -sf em_reg_alice.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3061 -m 1
sipp -sf uas_a2psap_nj.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3062 -m 1
sipp -sf em_uac_a2b.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3061 -m 1
modparam("pcscf","anonym_em_call_support",1)
sipp -sf non_em_reg_psap_nj.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3062 -m 1
sipp -sf uas_a2psap_nj.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3062 -m 1
sipp -sf em_uac_anonym.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3061 -m 1
The testing scripts include also scripts for running stub LOCSIP server using SIPp. We provide 2 scripts, for the case that the LOCSIP server is aware of the user location (notify_active.xml) or not (notify_terminated.xml).
To run the scripts for the stub LOCSIP server use the general command:
sipp lrf_IP:port -i locsip_ip -p locsip_port -sf locsip_script -inf location.cvs
Where:
sipp -sf em_reg_alice.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3061 -m 1
sipp -sf em_uac_alice_no_loc.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3061 -m 1
When using the notify_active.xml script by default the location will be New Jersey also. Please adjust the IP and port of the user in the location.csv file. So if the call will be forwarded to psap_nj@open-ims.test, as in the case the user includes its location information, see above how to run the scripts referring to the PSAP.
when the stub LOCSIP server is running the notify_terminated script, no location information will be send to the LRF. So the LRF will send an error message to the E-CSCF and the call will be forwarded to the default PSAP, if available at the E-CSCF, see below how to run the scripts referring to the PSAP.
If no PSAP URI is available, a default PSAP URI will be used by the ECSCF, possibly no new user in the HSS databases will be needed.
modparam("ecscf","using_default_psap",1)
modparam("ecscf","default_psap_uri","sip:bob@open-ims.test")
cd ser_ims/test/emerg_test
sipp -sf non_em_reg_bob.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3062 -m 1
sipp -sf em_reg_alice.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3061 -m 1
sipp -sf uas_a2b.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3062 -m 1
sipp -sf em_uac_a2b.xml 127.0.0.1:4060 -i 127.0.0.1 -p 3061 -m 1