Good day. Could you help me please? I don't get any incoming calls on windows phone 8.1 and windows phone 10.
I try to use push notofocations like this
exten => 1001,1,Answer;
exten => 1001,n,Set(location=${DB(SIP/Registry/1001)})
exten => 1001,n,Verbose(0, getting push info ${location} );
exten => 1001,n,Set(regx="X-PUSH-URI=([0-9a-zA-Z\.\:\/\_]+)")
exten => 1001,n,Set(push=$["${location}" =~ ${regx}])
exten => 1001,n,System(/usr/bin/push.sh ${push});
exten => 1001,n,Wait(3);
exten => 1001,n,Dial(SIP/1001);
and all time answer that is everything is ok.
<root>
-e <code>HTTP/1.1 200 OK</code>
-e <X_NotificationStatus>Received</X_NotificationStatus>
-e <X_DeviceConnectionStatus>Connected</X_DeviceConnectionStatus>
-e <X_SubscriptionStatus>Active</X_SubscriptionStatus>
</root>
But dosent work. Any push message i dont see on my phone.
I try to send not this
"<?xml version=\"1.0\" encoding=\"utf-8\"?><root><Value1>Zoiper</Value1><Value2>Incoming</Value2><Value3>Call</Value3></root>"
but this
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" .
"<wp:Notification xmlns:wp=\"WPNotification\">" .
"<wp:Toast>" .
"<wp:Text1>Incoming</wp:Text1>" .
"<wp:Text2>Calls</wp:Text2>" .
"</wp:Toast>" .
"</wp:Notification>"
and this push message i see on my phone, but zoiper dosent start.
Please could you help me please?
My dial plan
[905-5]
exten => 905,1,Answer;
exten => 905,n,Set(location=${DB(SIP/Registry/905)})
exten => 905,n,Verbose(0, getting push info ${location} );
exten => 905,n,Set(regx="X-PUSH-URI=([0-9a-zA-Z\.\:\/\_]+)")
exten => 905,n,Set(push=$["${location}" =~ ${regx}])
exten => 905,n,System(/var/lib/asterisk/agi-bin/push.sh ${push});
exten => 905,n,Wait(5);
exten => 905,n,Dial(SIP/905);
Sorry for my bad english