Hi,
I am using PJSIP stack in a softphone application and want to check internet connection before initializing the stack. For this internet connection check, I am planning to send an HTTP GET to a web server and see if it replies with a 200 OK response.
Can I develop such a utility using just PJLIB and PJLIB-UTIL features? If yes, can anyone please provide some pointers on the approach I should take for building this? Is there any similar utility or example code based on PJLIB I can use?
Regards
Girish
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
INFOSYS***** End of Disclaimer *****INFOSYS
On Tue, Sep 9, 2008 at 3:24 PM, girish_kumar girish_kumar@infosys.comwrote:
Hi,
I am using PJSIP stack in a softphone application and want to check
internet connection before initializing the stack. For this internet
connection check, I am planning to send an HTTP GET to a web server and see
if it replies with a 200 OK response.
Can I develop such a utility using just PJLIB and PJLIB-UTIL features? If
yes, can anyone please provide some pointers on the approach I should take
for building this? Is there any similar utility or example code based on
PJLIB I can use?
While we don't have HTTP samples, this would be similar to the usual client
socket programming, so once you know how to do it with using BSD socket API,
it should be trivial to map that API into PJLIB socket API.
-benny
you can also use a http library, e.g. libcurl:
http://curl.haxx.se/lxr/source/docs/examples/simple.c
klaus
girish_kumar schrieb:
Hi,
I am using PJSIP stack in a softphone application and want to check
internet connection before initializing the stack. For this internet
connection check, I am planning to send an HTTP GET to a web server and
see if it replies with a 200 OK response.
Can I develop such a utility using just PJLIB and PJLIB-UTIL features?
If yes, can anyone please provide some pointers on the approach I should
take for building this? Is there any similar utility or example code
based on PJLIB I can use?
Regards
Girish
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
INFOSYS***** End of Disclaimer *****INFOSYS
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hi,
i would be very glad to see a basic http library inside PJLIB-UTIL .
It could be very useful for a lot of automation of voip client
provisioning going across http/https trough GET/POST web services.
Regards,
Fabio Pietrosanti
girish_kumar wrote:
Hi,
I am using PJSIP stack in a softphone application and want to check
internet connection before initializing the stack. For this internet
connection check, I am planning to send an HTTP GET to a web server
and see if it replies with a 200 OK response.
Can I develop such a utility using just PJLIB and PJLIB-UTIL features?
If yes, can anyone please provide some pointers on the approach I
should take for building this? Is there any similar utility or example
code based on PJLIB I can use?
Regards
Girish
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
INFOSYS***** End of Disclaimer *****INFOSYS
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org