def __send_sip_trying(self): ''' send SIP TRYING to endpoint. ''' logger.debug('<<-- [sip] [%s] <<%s>> <TRYING>' % (self.name, self.tag)) sip_packet = convert_to_sip_packet(SIP_TRYING, self.sip_datagram) self._socket.sendto(sip_packet, self.sip_endpoint) if self.verbose: dissect_packet(sip_packet, self.tag)
def __send_sip_cancel(self): ''' send SIP CANCEL to endpoint. ''' logger.debug('<<-- [sip] [%s] <<%s>> <CANCEL>' % (self.name, self.tag)) sip_packet = convert_to_sip_packet(SIP_CANCEL, self.sip_datagram) self._socket.sendto(sip_packet, self.sip_endpoint) if self.verbose: dissect_packet(sip_packet, self.tag)
def __send_sip_options(self): ''' send SIP OPTIONS to endpoint. ''' logger.debug('<<-- [sip] [%s] <<%s>> <OPTIONS>' % (self.name, self.tag)) sip_packet = convert_to_sip_packet(SIP_OPTIONS, self.sip_datagram) self._socket.sendto(sip_packet, self.sip_endpoint) if self.verbose: dissect_packet(sip_packet, self.tag)