Running php or bash script in dialplan + push notification

I saw the lua script of ring group, indeed it uses its own logic for dialstring creating and bridges with extension, that's why extension dial string does not work in ring group
 
Good to hear, the only reason why I elaborated is a lot of people come here and expect to just be able to install some free SIP app off the store and push to work out of the box and think it's a problem with FusionPBX and they think there's some magic toggle you can enable.

Ah yeh, was going to comment there. Worth testing to make sure it doesn't block both 'Simultaneous' and 'Enterprise' ring groups too, one creates multiple threads and one uses a single thread, I could potentially see a delayed response from the API locking up the calls for the other phones that aren't push notified.
 
@mdriaz As we discussed at the beginning of this thread, the only way to truly catch every scenario is to catch a FreeSWITCH event. Everything else has its own dial string, and it won't work. You should look into that route.
 
@babak I already looked into available resources in this forum as you pointed, but it only adds a script in local_ext dialplan but that won't work as it only triggers on ext to ext call.

@hfoster I have modified ring_group.lua file and just added extra dialstring for the mod_apn module (freeswitch-PushNotificator) and if you add a short timeout to the curl request then calls will be not delay that much.

@pbxgeek I am using the mod_apn module, it uses freeswitch events and uses dailstring to trigger a url request and when device registeres, it originates a call.I have fixed some issues and forked it to my needs.

With dialstring in place for extensions and ring_group.lua file, push notifications are going to Android devices (not sure about apple as using FCM).
The only part remains is the flutter app part.
 
@mdriaz Glad it's working out for you. I'm playing with some FS events right now and wonder why they are not used more. When executed correctly, they are magical when it comes to achieving some goals.

I can't wait to see your app.
 
  • Like
Reactions: mdriaz