Ejemplo n.º 1
0
def get_context(dom):
    """
    <context>pbxfoo</context>
    """
    return firstElementTextByTagName(dom, "context")
Ejemplo n.º 2
0
def get_domain_name(dom):
    """
    <domain_name>pbx.foo.com</domain_name>
    """
    return firstElementTextByTagName(dom, "domain_name")
Ejemplo n.º 3
0
def get_account_id(dom):
    """
    <account_id>1</account_id>
    """
    return firstElementTextByTagName(dom, "account_id")
Ejemplo n.º 4
0
def get_uuid(dom):
    """
    <uuid>ed18eda4-24bf-11dc-913a-37ac3cdbbaa7</uuid>
    """
    return firstElementTextByTagName(dom, "uuid")
Ejemplo n.º 5
0
def get_chan_name(dom):
    """
    <chan_name>sofia/mydomain.com/[email protected]</chan_name>
    """
    return firstElementTextByTagName(dom, "chan_name")
Ejemplo n.º 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
Ejemplo n.º 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))
Ejemplo n.º 8
0
def get_context(dom):
    """
    <context>pbxfoo</context>
    """
    return firstElementTextByTagName(dom, "context")
Ejemplo n.º 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
Ejemplo n.º 10
0
def get_domain_name(dom):
    """
    <domain_name>pbx.foo.com</domain_name>
    """
    return firstElementTextByTagName(dom, "domain_name")
Ejemplo n.º 11
0
def get_account_id(dom):
    """
    <account_id>1</account_id>
    """
    return firstElementTextByTagName(dom, "account_id")
Ejemplo n.º 12
0
def get_chan_name(dom):
    """
    <chan_name>sofia/mydomain.com/[email protected]</chan_name>
    """
    return firstElementTextByTagName(dom, "chan_name")
Ejemplo n.º 13
0
def get_uuid(dom):
    """
    <uuid>ed18eda4-24bf-11dc-913a-37ac3cdbbaa7</uuid>
    """
    return firstElementTextByTagName(dom, "uuid")
Ejemplo n.º 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))
Ejemplo n.º 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
Ejemplo n.º 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