(domain, case_type, case_name, user_id,
        contact_phone_number, contact_phone_number_is_verified="1",
        contact_backend_id=None, language_code=None, time_zone=None,
        owner_id=None, contact_ivr_backend_id=None)
return case_id
Creates a messaging case contact by submitting system-generated casexml
Creates a messaging case contact by submitting system-generated casexml
Creates a messaging case contact by submitting system - generated casexml
def register_sms_contact(domain, case_type, case_name, user_id,
        contact_phone_number, contact_phone_number_is_verified="1",
        contact_backend_id=None, language_code=None, time_zone=None,
        owner_id=None, contact_ivr_backend_id=None):
    """
    Creates a messaging case contact by submitting system-generated casexml
    """
    utcnow = str(datetime.datetime.utcnow())
    case_id = str(uuid.uuid3(uuid.NAMESPACE_URL, utcnow))
    if owner_id is None:
        owner_id = user_id
    context = {
        "case_id": case_id,
        "date_modified": json_format_datetime(datetime.datetime.utcnow()),
        "case_type": case_type,
        "case_name": case_name,
        "owner_id": owner_id,
        "user_id": user_id,
        "contact_phone_number": contact_phone_number,
        "contact_phone_number_is_verified": contact_phone_number_is_verified,
        "contact_backend_id": contact_backend_id,
        "language_code": language_code,
        "time_zone": time_zone,
        "contact_ivr_backend_id": contact_ivr_backend_id,
    }
    submit_case_block_from_template(domain, "sms/xml/register_contact.xml", context, user_id=user_id)
    return case_id
def register_sms_contact ( domain , case_type , case_name , user_id , contact_phone_number , contact_phone_number_is_verified = "1" , contact_backend_id = None , language_code = None , time_zone = None , owner_id = None , contact_ivr_backend_id = None ) : utcnow = str ( datetime . datetime . utcnow ( ) ) case_id = str ( uuid . uuid3 ( uuid . NAMESPACE_URL , utcnow ) ) if owner_id is None : owner_id = user_id context = { "case_id" : case_id , "date_modified" : json_format_datetime ( datetime . datetime . utcnow ( ) ) , "case_type" : case_type , "case_name" : case_name , "owner_id" : owner_id , "user_id" : user_id , "contact_phone_number" : contact_phone_number , "contact_phone_number_is_verified" : contact_phone_number_is_verified , "contact_backend_id" : contact_backend_id , "language_code" : language_code , "time_zone" : time_zone , "contact_ivr_backend_id" : contact_ivr_backend_id , } submit_case_block_from_template ( domain , "sms/xml/register_contact.xml" , context , user_id = user_id ) return case_id