Wish UnRegister method for SIP library wished

basicall

Member
Licensed User
Longtime User
Yes. It is different.

I made a test with X-Lite the famous sip softphone and Asterisk the open source VOIP PBX. After I register X-Lite to asterisk and then shutdown X-Lite, from asterisk console we could see the following debug information:

B4X:
    -- Unregistered SIP 'cisco1'

<--- Transmitting (NAT) to 192.168.1.9:8668 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.9:8668;branch=z9hG4bK-d8754z-2b6a386a9d37ae1e-1---d8754z-;received=192.168.1.9;rport=8668
From: "8805"<sip:[email protected]>;tag=f9090817
To: "8805"<sip:[email protected]>;tag=as48852509
Call-ID: NGZkN2I0ZDcxZmYxYjBhODhjZTMyMTU2OWJjMTExYjg
CSeq: 4 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Expires: 0
Date: Sun, 13 Oct 2013 09:57:37 GMT
Content-Length: 0

That is to say, the X-Lite sip phone told asterisk voip server to UnRegister it before close.

Now I make a same test with android sip library and asterisk. I call sip object's close method. Nothing could get from asterisk console. That is to say, asterisk the voip sip server has no way to know android application has shutdown. If other softphone call android sip phone it will show "calling" till timeout.
 
Top