/* * @author STF 435 * @version $Id$ * @desc This module provides the functions used by the test component * for SIP-SMS over IMS as specified in 3GPP 24.341 tests. */ module LibSip_SMSFunctions { import from LibSip_SMSTypesAndValues all; function f_IA5_2oct(charstring p_ASCII_String) return octetstring { var integer i; var integer k; var integer v_Length := lengthof(p_ASCII_String); var integer v_Temp; var octetstring v_Noctets :=''O; var bitstring v_TempBitSrc := ''B; var bitstring v_TempBitDes := ''B; if ((v_Length<=0) or (v_Length>160) or (((v_Length *7) mod 8) != 0)) { log("Invalid value of input string length."); } for(i:=0; i