Wifi handset hang up

I connected asterisk sip server with wifi handset.And we made gsm voice call via sound card(Dial(Console/dsp)).When Gsm voice connection closed, how does sip server close the handset?Because wifi handset counts as still there is voice call.