#NEWLINE# def cancel( self , rtime , req ) : #NEWLINE# #INDENT# self . ua . disconnect_ts = rtime #NEWLINE# self . ua . changeState ( ( UaStateDisconnected , self . ua . disc_cbs , rtime , self . ua . origin ) ) #NEWLINE# event = CCEventDisconnect ( rtime = rtime , origin = self . ua . origin ) #NEWLINE# if ( req != None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# event . reason = req . getHFBody ( 'reason' ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . ua . emitEvent ( self )