script for sip? or pjsip #5
Replies: 13 comments 18 replies
-
No. I use pjsip now and have for a long time. This script was never functional for chan_sip.
Yes. |
Beta Was this translation helpful? Give feedback.
-
Ah, can you show me your dialplan how to use it? As an example... I have a while loop, I send first a curl, then while loop starts, when extension is registerd, it starts dialing... I check the hangup_cause keys in asterisk... The only part missing in my dialplan is to retrieve the pn-tok, I have that now hardcoded Thnx |
Beta Was this translation helpful? Give feedback.
-
also a part of the script is not clear to me... when i register with linhome ... i dont see a pn-tok when i do a "database show register"
|
Beta Was this translation helpful? Give feedback.
-
Hi, thn for feedback |
Beta Was this translation helpful? Give feedback.
-
i tried registering a linphone and a linhome, both dont show the pn-prid , i dont get it why you see it
|
Beta Was this translation helpful? Give feedback.
-
Yes, I have the token in the app, I can send a push method to it.. very strange I don't see it , thnx for updating the repo, will have a look later! |
Beta Was this translation helpful? Give feedback.
-
ok, indeed push was not enabled on linphone, now i see the token (pn-prid) :-) If i take the token from the app and do below: (using my own google-services.json)
the app is then registering... .... damn, thats a big update on your script, didnt have a chance to look at it :-) |
Beta Was this translation helpful? Give feedback.
-
Well, that's confusing me, how do you send the push if you don't know the token... So what I do I dialplan, when device is unregistered, I send the push curl anyway, indeed call fails, I check that with the hangupcause keys in asterisk, but I start a while loop, if call fails, I try calling again for xx loops... So I need to store that token somewhere :+) |
Beta Was this translation helpful? Give feedback.
-
Also, you say you are sending the push, if you see it registered in the database.. if it's registered, then normal no push is needed anyway?? I have turned on the qualify setting, so when app closes, I see the registered device going away from the database Basically, my database is always empty... That's why I do that curl... Wait for register and then dial |
Beta Was this translation helpful? Give feedback.
-
Ok @brianjmurrell , thnx for all feedback, appreciated! I'm also testing another road, i register my linphone/linhome clients, on the free flexisip server Advantage: |
Beta Was this translation helpful? Give feedback.
-
i was also testing more with linhome, and the behaviour is different, there is indeed no pn-prid token What linhome does, as soon you register on asterisk, it uses sip.linhome.org as proxy, so when you unregister, you still see proxy registered on the system |
Beta Was this translation helpful? Give feedback.
-
hey, here is what i do, i first register an account 'aaaaa' on subscribe.linhome.org, but if you use linphone, then use: subscribe.linphone.org
afterwards, i create extra accouns for my softphone users, i register them , but you need to use the playstore version or the google-services.json they forgot to exclude on their github :-)
no fancy scripts needed, no port forward needed to asterisk, just using the push from their free flexisip server |
Beta Was this translation helpful? Give feedback.
-
Yes, I know all about sip.linphone.org. I am not interested in having a third party handle my phone calls though. I don't want to be at the mercy of somebody else keeping a service running. |
Beta Was this translation helpful? Give feedback.
-
Hey @brianjmurrell
Am i correct that your script is based on chan_sip and not pjsip?
I'm unable to find the pn-tok anymore, i'm not sure if it saved again in asterisk?
do you still use your script?
Beta Was this translation helpful? Give feedback.
All reactions