[SR-Users] Call http service inside config , Push notification TSILO

Sirvan Paraste sirvan at golden-time.co
Wed Apr 27 15:24:55 CEST 2016


Dear Federico,

Thank you very much, I will try them and I hope the problem will be solved
by you help.

Thanks again
Sirvan



On Wed, Apr 27, 2016 at 4:02 PM, Federico Cabiddu <
federico.cabiddu at gmail.com> wrote:

> Hi,
> to send the HTTP query you have several alternatives in kamailio:
>
> 1) use http_query function from utils module
> http://www.kamailio.org/docs/modules/4.4.x/modules/utils.html#utils.f.http_query
> 2) use one of the new http modules http_client
> <http://www.kamailio.org/docs/modules/4.4.x/modules/http_client.html> or
> http_async_client
> <http://www.kamailio.org/docs/modules/4.4.x/modules/http_async_client.html>
>
> Regards,
>
> Federico
>
> On Wed, Apr 27, 2016 at 2:57 PM, Sirvan Paraste <sirvan at golden-time.co>
> wrote:
>
>> Hello All,
>>
>> I am new to kamailio, but I have setup a server that is ok for call
>> functionalities,
>>
>> 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,
>>
>> The problem is this: kamilio send a http request like this :
>>
>>
>> curl http://127.0.0.1:9898/push -d service=myserviceName -d
>> subscriber=6000 -d msg="Hello World"
>> *given 6000 as a kamilio user,*
>>
>> I ask a nice guy and he replied me by using the TSILO as following link:
>>
>>
>> http://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf
>>
>> 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.
>>
>> please help me by example because I am new, I searched a lot but I get
>> confused,
>>  I will make a tutorial for other people to help them.
>>
>> thanks all
>>
>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160427/52ca7265/attachment.html>


More information about the sr-users mailing list