I am looking for an open source sip project to add my android application. I found IMSDroid project, downloaded the source code and build on Android ADT.
But when I install the application on my android phone, I cannot register to sip provider(sip2sip.info). I tried on both 3G and WiFi networks but Sign-in always fails. I followed the instructions at this link https://code.google.com/p/imsdroid/wiki/sip2sip_info but no success
By the way, I downloaded CSipSimple application too. I simply filled the registration settings and it worked! I mean CSipSimple application can register to sip2sip while IMSdroid cannot.
I also tried SIP stack of Android. There is a sample application using sip stack of android, called SIPDemo. I also tried this application but its registration also failed.
What is the issue about? I don't want to use CSipSimple because to me it seems more complex than IMSDroid.
Related
I am following this tutorial Getting started with Azure Notifications Hub for Xamarin.Android
I have everything setup for my app and now I need to send a test notification to see if my configuration is correct but the Debug tab seems to have gone missing.
Can anyone point me in the right direction ? Any help is appreciated.
Thanks!
I don't know if you're using Visual Studio but if so, you can also use the Server Explorer. Add you Azure subscription there and navigate to the Notification Hub.
From there you have all the functionality which is also available from the Debug tab on Azure.
Checking out the new portal, I think this functionality is (not) yet available.
There is however an option to go back to the 'full' Azure portal (which also implicates not everything is available yet).
Another option is to use the Service Bus Explorer, although this application has been giving me some trouble for the past few days.
This option, and all others, are described here.
Debug tab is available in old portal (for now I guess) at: manage.windowsazure.com
You can also create a postman or fiddler request containing sas token, sample here: https://milenppavlov.wordpress.com/2015/12/15/get-shared-access-signature-authentication-for-azure-notification-hub-and-create-push-notification-via-rest-call/ that can send the notifications for you.
I have an android application that is designed to receive push notifications via GCM. When I initially designed the application, I used a "deprecated" tutorial (merely because it was one of the most in-depth I found) and my dev phone was running API 2.4, so I was able to get the service up and running without much issue.
Now, my development device is running Android version 4.4.2, so my goal is to "upgrade" my application to handle GCM properly for all devices (for now, lets ignore the fact that I'll have to differentiate how to handle Push Notifications depending on API level).
I attempted to follow the Android Developer tutorial for creating a demo client app for Google Cloud messaging, which can be found here. https://developer.android.com/google/gcm/client.html
While I hate to sound like I want to ignore to smart coding practices, this official walk through was a little big in terms of scope (My application supports Phonegap, and while I think implementing native GCM is much easier than using the PushPlugin for Phonegap, I don't want to handle more than is absolutely necessary in my Java code)
As a last ditch effort, I simply downloaded the demo gcm code from the source they provided here: https://code.google.com/p/gcm/source/browse/samples/?r=1ca8e646c517310e2d46a6a6eda74106b8084fc5
I attempted to import the gcm-demo-client application, and although I know my SENDER_ID, I don't understand anything about the SERVER_URL. The documentation provided by Android Developers talks very generally about HTTP vs. CCS, and I'm struggling to grasp where this server fits into the grand scheme of all that is Google Cloud Messaging.
Assuming I download the gcm-demo-server project directory they included (which seems to be some kind of Java Project), how do I host it? My previous deprecated GCM simply used a basic android application in which I would submit a form containing the device Registration Id, and a message with a title and context. Unfortunately, I can't figure out how to import their demo-server into Eclipse (since Eclipse doesn't think it contains ANY project files), AND I cannot seem to understand how this server connects with my application in any capacity.
TL/DR Summary of questions:
1.) How can I go about "hosting" the gcm-demo-server from URL #2 above?
2.) If I can just copy the Registration Id from my client app to the clipboard, can I just use my "android server" application to send my messages?
3.) Maybe it's just me, but I don't see anything resembling a Receiver class in the gcm-demo-client project directory, only a GcmIntentService. How can there be an intent when the application can't even properly handle messages?!
Thank you for your patience and help!
(P.S. - I cannot provide any code- however since the code in question is merely the provided Android Developer GCM demo code, this hopefully won't be a big issue)
1) There are many companies that offer server hosting services. You should choose one.
2) If you copy the registration Id manually, and hard code it in an application that serves as a "server", you don't need to host a real server, though that would only work in development. In production, assuming you'll have multiple users who install you app, you'll need a real server that receives and stores the registration IDs of all of them.
3) The demo client project you are referring to is old, and relies on a deprecated library (gcm.jar) which contains a default implementation of the BroadcastReceiver, which receives the messages from GCM server and starts the intent service. If you refer to the current demo app, you'll find a BroadcastReceiver class.
The demo app might not work because it is a gradle project and you should preferably open it in Android Studio. That might be why it could not see it as an Android project at all.
I have recently started implementing GCM myself and it is not difficult at all. I am using AppEngine for holding the backend part of my app. In Android studio, there is a very quick and easy way to generate both the android client and the backend part including the cloud endpoints and even a web interface for sending the messages (you don't need to use it though).
I followed this tutorial https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/GcmEndpoints
Maybe this is not a fully satisfying answer for you, but I found the code very much readable and I understood how this stuff works.
Has anyone made a small basic application using SIP for android? I have tried using CSipSimple app, with SIP account on antisip.com and sip2sip.com but none of them register properly, and it gives a timeout error.
I also tried those accounts with the SipDemo given with Android, and also in Linphone app. Linphone works fine with a SIP account on Linphone itself, but no other SIP accounts works.
If you want to try it out with CSipSimple, Add Account > OSTN
Account name: OSTN
Username:<yourusername>
Password:<yourpassword>
Server: ostel.co
(Register first #ostel.co)
Or you can download SipWise CE and setup your own local Sip Service Provider - you will not face errors like timeout (as long as you are not far from your wi-fi coverage)
I need my android phone and my PC (win-xp-sp3) to be able to communicate with each other.
I am successfully running a xmpp code in my android phone through SL4a/python and it can send and receive communication.Now the communication my phone is sending i want to receive on my pc through a code.(which at present i am receiving thorough my gtalk client)
My questions are: how do i go about it?, is there any pre existing code,script,link that i can refer to? or can i hijack anyway the msgs received by gtalk in my pc?
I tried to use the same android code to listen for the chat from PC by removing the android part of the code, but I was getting error on xmpp module not existing. so i copied the xmpp.py file from google developers website to my lib folder. but now if i try to run it i am getting error "No module named google.appengine.api".
So i did some homework and downloaded gdata-2.0.17.zip from google developers website.
My questions are: am I on the right path? what should i do next? Is there any document/link regrading the same that you know?
I know the question was long but i tried to be specific to what I am looking for.
Please help me.
Google App Engine is Google's cloud computing service. If you're not creating a web application using that, you need to find an XMPP module for Python which doesn't depend on Google App Engine.
https://stackoverflow.com/questions/1081634/which-is-the-most-mature-python-xmpp-library-for-a-gchat-client seems like it's relevant to this question.
There are a wide variety of XMPP client libraries available that will work on Windows in pretty much any language you want to use. Pick one and simply write an app that connects to the gtalk server. You don't need anything google specific to do that.
I have to build a SIP application for my studies, i maked an Asterisk server, testing it with xlite and all is working. However, i wanted to test it in my Android phone(has 2.3 Gingerbread), i installed the SIPDemo app on it, adding the useful informations and nothing happens, it doesn't indicate if you are connected on the server or not. I run the application in the Android emulator and it saids "Registration failed".
Can you please help me? I really have to make this project to have my diploma.
Thank you very much.
from asterisk cli (asterisk -rvvvvvvvvvvv) you should type:
sip set debug on
and then try to register, this will let you debug the situation.
This could be an asterisk configuration problem or wrong SIP registration management on client's side.
If your registration is successful after removing password from asterisk's user then you need to check how SIP handles registration process https://www.rfc-editor.org/rfc/rfc3261#page-56 and stick to those rules with your demo.