<div dir="ltr">Hi,<div>to send the HTTP query you have several alternatives in kamailio:</div><div><br></div><div>1) use http_query function from utils module <a href="http://www.kamailio.org/docs/modules/4.4.x/modules/utils.html#utils.f.http_query">http://www.kamailio.org/docs/modules/4.4.x/modules/utils.html#utils.f.http_query</a></div><div>2) use one of the new http modules <a href="http://www.kamailio.org/docs/modules/4.4.x/modules/http_client.html">http_client</a> or <a href="http://www.kamailio.org/docs/modules/4.4.x/modules/http_async_client.html">http_async_client</a></div><div><br></div><div>Regards,</div><div><br></div><div>Federico</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 2:57 PM, Sirvan Paraste <span dir="ltr"><<a href="mailto:sirvan@golden-time.co" target="_blank">sirvan@golden-time.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello All, <div><br></div><div>I am new to kamailio, but I have setup a server that is ok for call functionalities, </div><div><br></div><div>I have write an android app it I wnat to add push notification ability to the app when it is clised or unregisterd to the sip server. I have done all push notification part using GCM service and a third party server name Uniqush-push that is connected to GCM to handle push notification, anyway the app and push server part all work well now, </div><div><br></div><div>The problem is this: kamilio send a http request like this :</div><div><br></div><div><br><span style="font-size:12.8px;font-weight:bold">curl </span><a href="http://127.0.0.1:9898/push" style="font-size:12.8px;font-weight:bold" target="_blank">http://127.0.0.1:9898/push</a><span style="font-size:12.8px;font-weight:bold"> -d service=myserviceName -d subscriber=6000 -d msg="Hello World"</span><br></div><div><span style="font-size:12.8px"><b>given 6000 as a kamilio user,</b></span></div><div><span style="font-size:12.8px"><b><br></b></span></div><div><span style="font-size:12.8px">I ask a nice guy and he replied me by using the TSILO as following link:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><a href="http://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf" target="_blank">http://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf</a></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">thanks to him it made the process more easier I think. But I dont know how I can congigured kamailio to call my server as I said above in order to send push. </span></div><div><br></div><div>please help me by example because I am new, I searched a lot but I get confused, </div><div> I will make a tutorial for other people to help them. </div><div><br></div><div>thanks all</div><div><span style="font-size:12.8px;font-weight:bold"><br></span></div><div><span style="font-size:12.8px;font-weight:bold"><br></span></div><div><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br> </div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>