python - Get SIP user available status through low-level message -
I am trying to check whether a python application is a definite SIP contact online or not. I have already been found and tested as a medium to send SIP messages with Python. Now I need to understand what message to send.
Unfortunately, I found an example using my high level code and friend / membership functions.
So the SIP protocol is a simple way to ask a registrar (like linphone.org) "User XYZ Online?"? The SIP standard provides those requests that allow the query "original state".
.
In response to an alternative, SIP responsiveness has been created using standard rules, as discussed in section 8.2.6. The selected response code that was selected must have been an INVITE request. That is, if a UAS is ready to accept the call, 200 (OK) will be returned, if the UAS is busy, then 486 (busy here) will come back, etc. This option may be an indication of the status of the default UAS to ULIP requests, which UES will accept an INVITE request.
The only problem is that most SIP servers do not implement option request handling in this way, rather than OTNs requests are generally treated more like ping requests and SIP servers Will answer with 200 organisms that they are alive. You can of course try with the server you are working on, but if you always get the correct 200 answers
In addition to the option, there will be a list of the responses to a successful registrar request available. Contact for a particular SIP address will theoretically allow you to check whether the device is connected to the address at least Was it or not, but it will not tell you anything about the status of the device, whether it was on the call, do not disturb etc. The registered requests must be authorized in the list of contacts in the list of sensitive information which may include the IP address of the SIP device.
There will be another way to subscribe according to the information of the incidents of being present. It is also likely to require membership requests and it is not universally supported by the SIP server or provider.
As an last resort, you can send an INVITE request, but the major disadvantage is that the phone will display the ring or missed call at the other end and end up in their call history. is likely to.
No comments:
Post a Comment