fixing bugs

fixed couple of bugs in sip.rb