close => end
freeswitch mod_dingaling requires the server to tell it what ID it should use
clean up to fit codng style