|Subject:||RE: Flexisip_push Invalid server response with Invalid token|
|Date:||Sun, 22 Mar 2020 10:13:02 +0000|
I am not 100% certain, but it looks like you have certificate created specifically for “voip” service. You can check by your self. That pem file is a text file containing certificate key and two headers. The (first) header will say you if it was created for voip. In my case it looks like this:
friendlyName: VoIP Services: my.push.example
localKeyID: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX X
subject=/UID=my.push.example.voip/CN=VoIP Services: my.push.example/OU=HNRF442267/O=Smart Home SA/C=US
issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
take notice about this part:
If you have that - your pem file must be like this: my.push.example.voip.dev.pem
If that part looks like this: subject=/UID=my.push.example
without voip part – it is not issued for the voip and than… I guess flexisip (probably) will not work with that certificate.
Sorry I did not notice missing ‘.voip’ part before… my bad.
Also I did see that this error actually is not about “Invalid token”, but rather about “Invalid server” – need to check that in the flexisip code…
Sent from Mail for Windows 10
Ok, I check the "Generate a certificate" part in this page https://wiki.linphone.org/xwiki/wiki/public/view/Flexisip/Configuration/ again.
I re-create the certificate then I have Certificate.P12. and I also have new bundle id is my.push.example.
First I try to find other tool to verify everything is ok. so i found the tool called PushNotifications (https://github.com/onmyway133/PushNotifications/releases/tag/1.7.3) to verify my P12 is correct or not.
After testing, my phone is able to get notification from this tool by using p12 and with modified bundle id my.push.example.voip.
It was very strange that I have to add .voip after my bundle id. or it cannot get any notification by this tool.
so, I think my p12 is ok, then I generate pem, put it into flexisip.
But when I use
./flexisip_pusher --pntype apple --appid my.push.example.dev --pntok 7F6F5DA49A09AE73B483C43E6BFC157F749C39F91224B91FF349E99034EF031C --debug
I know my app is developer version. I only put one pem in /etc/flexisip/apn/my.push.example.dev.pem
But it still return Invalid token to me. Below is error log.
2020-03-21 15:19:29:700 flexisip-debug-Searching push notification client on dir [/etc/flexisip/apn]
I want to know , what is the real error code that return from apn in http response? I think error 8 (Invalid token) is belongs to flexisip error code not apn's error code.
And I check the log from flexisip, I also noticed that my ios app(linphone), which send REGISTER with strange suffixes voip.dev in app-id ?
REGISTER sip:localhost SIP/2.0
Is the error (Invalid token) related to suffixed "voip" ?
Please help me to find out which part of my configuration is not correct.
On Fri, 20 Mar 2020 at 17:47, Mikhail Sviridov <address@hidden> wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|