Example #1
0
def get_context(dom):
    """
    <context>pbxfoo</context>
    """
    return firstElementTextByTagName(dom, "context")
Example #2
0
def get_domain_name(dom):
    """
    <domain_name>pbx.foo.com</domain_name>
    """
    return firstElementTextByTagName(dom, "domain_name")
Example #3
0
def get_account_id(dom):
    """
    <account_id>1</account_id>
    """
    return firstElementTextByTagName(dom, "account_id")
Example #4
0
def get_uuid(dom):
    """
    <uuid>ed18eda4-24bf-11dc-913a-37ac3cdbbaa7</uuid>
    """
    return firstElementTextByTagName(dom, "uuid")
Example #5
0
def get_chan_name(dom):
    """
    <chan_name>sofia/mydomain.com/[email protected]</chan_name>
    """
    return firstElementTextByTagName(dom, "chan_name")
Example #6
0
def get_callerid_number_field(dom):
    """
    <caller_id_number>0000000000</caller_id_number>
    """
    element_text = firstElementTextByTagName(dom, "caller_id_number")
    return element_text
Example #7
0
def get_time_field(dom, field_name):
    """
    <answered_time>1182956765107959</answered_time>
    """
    element_text = firstElementTextByTagName(dom, field_name)
    return msepoch2datetime(int(element_text))
Example #8
0
def get_context(dom):
    """
    <context>pbxfoo</context>
    """
    return firstElementTextByTagName(dom, "context")
Example #9
0
def get_destination_number_field(dom):
    """
    <destination_number>mydomain.com/[email protected]</destination_number>    
    """
    element_text = firstElementTextByTagName(dom, "destination_number")
    return element_text
Example #10
0
def get_domain_name(dom):
    """
    <domain_name>pbx.foo.com</domain_name>
    """
    return firstElementTextByTagName(dom, "domain_name")
Example #11
0
def get_account_id(dom):
    """
    <account_id>1</account_id>
    """
    return firstElementTextByTagName(dom, "account_id")
Example #12
0
def get_chan_name(dom):
    """
    <chan_name>sofia/mydomain.com/[email protected]</chan_name>
    """
    return firstElementTextByTagName(dom, "chan_name")
Example #13
0
def get_uuid(dom):
    """
    <uuid>ed18eda4-24bf-11dc-913a-37ac3cdbbaa7</uuid>
    """
    return firstElementTextByTagName(dom, "uuid")
Example #14
0
def get_time_field(dom, field_name):
    """
    <answered_time>1182956765107959</answered_time>
    """
    element_text = firstElementTextByTagName(dom, field_name)
    return msepoch2datetime(int(element_text))
Example #15
0
def get_callerid_number_field(dom):
    """
    <caller_id_number>0000000000</caller_id_number>
    """
    element_text = firstElementTextByTagName(dom, "caller_id_number")
    return element_text
Example #16
0
def get_destination_number_field(dom):
    """
    <destination_number>mydomain.com/[email protected]</destination_number>    
    """
    element_text = firstElementTextByTagName(dom, "destination_number")
    return element_text