def send_invite(params): i = create_invite(params, sdp(params)) print("sent=============>") print(i.replace('\r\n', '\n')) transport.open_socket(params) transport.send_tcp(params, i)
def send_bye(params): b = create_bye(params) log_sip_send(params, b) transport.send_tcp(params, b) r = transport.recv_tcp(params) log_sip_recv(params, r) transport.close_socket(params)
def send_bye(params): b = create_bye(params) print("sent======>") print(b.replace('\r\n', '\n')) transport.send_tcp(params, b) r = transport.recv_tcp(params) print("<=============recv") print(r.replace('\r\n', '\n')) transport.close_socket(params)
def send_ack(params): a = create_ack(params) print("sent=============>") print(a.replace('\r\n', '\n')) transport.send_tcp(params, a)
def send_re_invite(params, sdp): i = create_re_invite(params, sdp) print("sent=============>") print(i.replace('\r\n', '\n')) transport.send_tcp(params, i)
def send_ack(params): a = create_ack(params) log_sip_send(params, a) transport.send_tcp(params, a)
def send_re_invite(params, sdp): i = create_re_invite(params, sdp) log_sip_send(params, i) transport.send_tcp(params, i)
def send_invite(params): i = create_invite(params, sdp(params)) log_sip_send(params, i) transport.open_socket(params) transport.send_tcp(params, i)