def get_context(dom): """ <context>pbxfoo</context> """ return firstElementTextByTagName(dom, "context")
def get_domain_name(dom): """ <domain_name>pbx.foo.com</domain_name> """ return firstElementTextByTagName(dom, "domain_name")
def get_account_id(dom): """ <account_id>1</account_id> """ return firstElementTextByTagName(dom, "account_id")
def get_uuid(dom): """ <uuid>ed18eda4-24bf-11dc-913a-37ac3cdbbaa7</uuid> """ return firstElementTextByTagName(dom, "uuid")
def get_chan_name(dom): """ <chan_name>sofia/mydomain.com/[email protected]</chan_name> """ return firstElementTextByTagName(dom, "chan_name")
def get_callerid_number_field(dom): """ <caller_id_number>0000000000</caller_id_number> """ element_text = firstElementTextByTagName(dom, "caller_id_number") return element_text
def get_time_field(dom, field_name): """ <answered_time>1182956765107959</answered_time> """ element_text = firstElementTextByTagName(dom, field_name) return msepoch2datetime(int(element_text))
def get_context(dom): """ <context>pbxfoo</context> """ return firstElementTextByTagName(dom, "context")
def get_destination_number_field(dom): """ <destination_number>mydomain.com/[email protected]</destination_number> """ element_text = firstElementTextByTagName(dom, "destination_number") return element_text
def get_domain_name(dom): """ <domain_name>pbx.foo.com</domain_name> """ return firstElementTextByTagName(dom, "domain_name")
def get_account_id(dom): """ <account_id>1</account_id> """ return firstElementTextByTagName(dom, "account_id")
def get_chan_name(dom): """ <chan_name>sofia/mydomain.com/[email protected]</chan_name> """ return firstElementTextByTagName(dom, "chan_name")
def get_uuid(dom): """ <uuid>ed18eda4-24bf-11dc-913a-37ac3cdbbaa7</uuid> """ return firstElementTextByTagName(dom, "uuid")
def get_time_field(dom, field_name): """ <answered_time>1182956765107959</answered_time> """ element_text = firstElementTextByTagName(dom, field_name) return msepoch2datetime(int(element_text))
def get_callerid_number_field(dom): """ <caller_id_number>0000000000</caller_id_number> """ element_text = firstElementTextByTagName(dom, "caller_id_number") return element_text
def get_destination_number_field(dom): """ <destination_number>mydomain.com/[email protected]</destination_number> """ element_text = firstElementTextByTagName(dom, "destination_number") return element_text