No response from asterisk

Yes, after dialling the user 8714691684 will woken up and registered. For sending the push notification and notify the client I am using opensips.

That doesn’t change my statement. At the time you have tried to dial it, it’s not registered in Asterisk. Asterisk can’t send an INVITE to it because it has no idea where it is. That attempt therefore fails.

oh! ok.

any suggestion to solve this. i cannot put the application in the backend in mobile.

You may want to define what exactly is trying to be solved. From a mobile perspective, I have no experience or knowledge of OpenSIPS for use as a push server or that stuff in general.

I’ve a web client as 1 user and android mobile client as another user. In the web client the browser phone application will be running in the background. In the mobile phone, the browser phone app will not be running. When a web client application dials to a mobile user, the mobile user will notified through push notifcation and the call will be connected once the mobile user gets registered. For sending the push, I am using opensips as there is no solution available in asterisk.

Is there any possibilty to delay the Dial app till the user is registered?

The Dial is what will be causing the proxy to trigger the push, so you would need to delay the INVITE in the proxy.

If you shell out to something that does the push on the Asterisk machine, you could loop on reads of DEVICE_STATE, until it indicates a suitably available state. Put a delay in the loop, otherwise it will be 100% CPU.

I’ve done the changes in the dialplan as per your suggestion and its working.Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.