Re: [OpenSIPS-Users] pn push notifications

2024-01-22 Thread Liviu Chircu

On 15.01.2024 20:28, r...@rvgeerligs.nl wrote:

for your information:
*Sending a push notification to an iOS device using a Bash script*
https://medium.com/@egzon.arifi/sending-a-push-notification-to-an-ios-device-using-a-bash-script-96c056c1544c

I hope the pn in opensips only requires the route to the apn:
https://api.development.push.apple.com/. dev
https://api.push.apple.com/ opp


Hello Ronald,

Indeed, the /PN_SEND /route will most likely invoke a shell script 
(Bash, Go, Python, etc.) which triggers the notification for that 
/specific /SIP device via APNS, using your app developer API 
credentials.  As this logic is not only specific to the mobile 
developer's platform (APNS or Firebase?), but it's also subject to 
change and often depends on the OS as well (Android 11 or 14 API?  iOS 
14 or 16? etc.), we decided to not officially maintain such scripts and 
leave this part to the VoIP platform developer.


Best regards,

--
Liviu Chircu
www.twitter.com/liviuchircu  |www.opensips-solutions.com
OpenSIPS Summit 2024 Valencia, May 14-17 |www.opensips.org/events
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] pn push notifications

2024-01-15 Thread rvg
hi all,

for your information:
**Sending a push notification to an iOS device using a Bash script**
https://medium.com/@egzon.arifi/sending-a-push-notification-to-an-ios-device-using-a-bash-script-96c056c1544c

I hope the pn in opensips only requires the route to the apn:
https://api.development.push.apple.com/. dev
https://api.push.apple.com/ opp

but I fear it does not.

Regards,

Ronald



January 15, 2024 at 10:57 AM, "Alexey"  wrote:


> 
> Hello,
> 
> there are two tutorials in the official blog:
> 
> part I : 
> https://blog.opensips.org/2020/05/07/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-i/
> 
> part II : 
> https://blog.opensips.org/2020/06/03/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-ii/
> 
> -- 
> best regards, Alexey
> https://alexeyka.zantsev.com/
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] pn push notifications

2024-01-15 Thread rvg
Adrian, thank you for the explanation. It is clear to me now. I will firstly go 
with a solution completely within openSIPS.

Regards,

Ronald



January 15, 2024 at 8:59 AM, "Adrian Georgescu"  wrote:


> 
> OpenSIPS handles the SIP traffic, of course. The push server just handles 
> multiple combinations of apps/ push services in an easier way. You could do a 
> lot or all that its needed just from within OpenSIPS but as the number of 
> combinations of apps and services grow another layer of abstraction make it 
> easier to manage, plus you eliminate another possible blocking item from your 
> routes as the works are down asynchronously outside OpenSIPS.
>  
> 
> —
> Adrian
> 
> > 
> > On 14 Jan 2024, at 20:33, r...@rvgeerligs.nl wrote:
> > 
> > Thank you very much, Adrian, 
> > 
> > I noticed it allready. It seems this is a dedicated push server.
> > Does it handle the normal SIP traffic as well?
> > 
> > Regards,
> > 
> > Ronald
> > 
> > January 14, 2024 at 3:13 PM, "Adrian Georgescu"  
> > wrote:
> > 
> > > 
> > > There are many ways of implementing push notifications with OpenSIPS. 
> > > This is how we implemented it.
> > > 
> > > https://github.com/AGProjects/sylk-pushserver/blob/master/config/opensips.cfg
> > > 
> > > —
> > > Adrian
> > > 
> > > > 
> > > > On 13 Jan 2024, at 17:37, r...@rvgeerligs.nl wrote:
> > > >  
> > > >  Hi All,
> > > >  
> > > >  
> > > >  I am trying to implement an opensips server 3.4 with pn support. 
> > > > Primarily apple push notifications. Later I will try google.
> > > >  
> > > >  Does any one have this implemented yet?
> > > >  
> > > >  Where can I find an example cfg for opensips?
> > > >  
> > > >  Any help is appreciated.
> > > >  
> > > >  
> > > >  Regards,
> > > >  
> > > >  
> > > >  Ronald Geerligs
> > > >  ___
> > > >  Users mailing list
> > > >  Users@lists.opensips.org
> > > >  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > > > 
> > > 
> > > ___
> > > Users mailing list
> > > Users@lists.opensips.org
> > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > > 
> > 
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] pn push notifications

2024-01-15 Thread rvg
Hi Alexey,

I noticed those too, but I do not understand the following code:

event_route [E_UL_CONTACT_REFRESH]
{
 route(PN_SEND, $(param(uri){param.value,pn-provider}),
 $(param(uri){param.value,pn-prid}),
 $(param(uri){param.value,pn-param}));
}

# $param(1) - PN provider
# $param(2) - PN PRID
# $param(3) - PN param
What is this doing? Is the contents of this part lacking? Is it the normal 
routing code, but the actual pn send is lacking? How do i write exec(what 
client) or rest_client?

route [PN_SEND]
{
 # send a PN using, for example, **exec** or **rest_client**
}
# how do we actually send the PN?


Regards,

Ronald



January 15, 2024 at 10:57 AM, "Alexey"  wrote:


> 
> Hello,
> 
> there are two tutorials in the official blog:
> 
> part I : 
> https://blog.opensips.org/2020/05/07/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-i/
> 
> part II : 
> https://blog.opensips.org/2020/06/03/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-ii/
> 
> -- 
> best regards, Alexey
> https://alexeyka.zantsev.com/
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] pn push notifications

2024-01-15 Thread Alexey
Hello,

there are two tutorials in the official blog:

part I :  
https://blog.opensips.org/2020/05/07/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-i/

part II : 
https://blog.opensips.org/2020/06/03/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-ii/

-- 
best regards, Alexey
https://alexeyka.zantsev.com/

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] pn push notifications

2024-01-15 Thread Adrian Georgescu
OpenSIPS handles the SIP traffic, of course. The push server just handles 
multiple combinations of apps/ push services in an easier way. You could do a 
lot or all that its needed just from within OpenSIPS but as the number of 
combinations of apps and services grow another layer of abstraction make it 
easier to manage, plus you eliminate another possible blocking item from your 
routes as the works are down asynchronously outside OpenSIPS.
 
—
Adrian




> On 14 Jan 2024, at 20:33, r...@rvgeerligs.nl wrote:
> 
> Thank you very much, Adrian,
> 
> I noticed it allready. It seems this is a dedicated push server.
> Does it handle the normal SIP traffic as well?
> 
> Regards,
> 
> Ronald
> January 14, 2024 at 3:13 PM, "Adrian Georgescu"  >
>  wrote:
> 
> There are many ways of implementing push notifications with OpenSIPS. This is 
> how we implemented it.
> 
> https://github.com/AGProjects/sylk-pushserver/blob/master/config/opensips.cfg
> 
> —
> Adrian
> 
> 
> 
> 
> On 13 Jan 2024, at 17:37, r...@rvgeerligs.nl  
> wrote:
> Hi All,
> I am trying to implement an opensips server 3.4 with pn support. Primarily 
> apple push notifications. Later I will try google.
> Does any one have this implemented yet?
> Where can I find an example cfg for opensips?
> Any help is appreciated.
> Regards,
> Ronald Geerligs
> ___
> Users mailing list
> Users@lists.opensips.org 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> ___
> Users mailing list
> Users@lists.opensips.org 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] pn push notifications

2024-01-14 Thread rvg
Thank you very much, Adrian, 

I noticed it allready. It seems this is a dedicated push server.
Does it handle the normal SIP traffic as well?

Regards,

Ronald


January 14, 2024 at 3:13 PM, "Adrian Georgescu"  wrote:


> 
> There are many ways of implementing push notifications with OpenSIPS. This is 
> how we implemented it.
> 
> https://github.com/AGProjects/sylk-pushserver/blob/master/config/opensips.cfg
> 
> —
> Adrian
> 
> > 
> > On 13 Jan 2024, at 17:37, r...@rvgeerligs.nl wrote:
> >  
> >  Hi All,
> >  
> >  
> >  I am trying to implement an opensips server 3.4 with pn support. Primarily 
> > apple push notifications. Later I will try google.
> >  
> >  Does any one have this implemented yet?
> >  
> >  Where can I find an example cfg for opensips?
> >  
> >  Any help is appreciated.
> >  
> >  
> >  Regards,
> >  
> >  
> >  Ronald Geerligs
> >  ___
> >  Users mailing list
> >  Users@lists.opensips.org
> >  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > 
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] pn push notifications

2024-01-14 Thread Adrian Georgescu
There are many ways of implementing push notifications with OpenSIPS. This is 
how we implemented it.

https://github.com/AGProjects/sylk-pushserver/blob/master/config/opensips.cfg

—
Adrian




> On 13 Jan 2024, at 17:37, r...@rvgeerligs.nl wrote:
> 
> Hi All,
> 
> 
> I am trying to implement an opensips server 3.4 with pn support. Primarily 
> apple push notifications. Later I will try google.
> 
> Does any one have this implemented yet?
> 
> Where can I find an example cfg for opensips?
> 
> Any help is appreciated.
> 
> 
> Regards,
> 
> 
> Ronald Geerligs
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] pn push notifications

2024-01-13 Thread rvg
Hi All,


I am trying to implement an opensips server 3.4 with pn support. Primarily 
apple push notifications. Later I will try google.

Does any one have this implemented yet?

Where can I find an example cfg for opensips?

Any help is appreciated.


Regards,


Ronald Geerligs___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users