MT#8071	fix api subscriber termination

response was handled wrong on patch/put
primary number was not freed in case of pbx