Called failed in Linphone iPhone - iphone

I have successfully compiled (according to readme file provided by Linphone) and installed Linphone client on simulator and it is successfully registered to local sip server. But it shows "Call failed, Cannot call xxxxxxxxx, Reason was: no response" if I dial any number. I checked captured packet using WireShark, it only shows register sip request, but no invite request.
Any idea whats wrong? Kindly share your valuable knowledge on that.

Because may be you are dialling wrong number OR the number you are dialling is not yet registered on your SIP server.
You should also log in with other number to make call. Means on different PC run linphone on simulator or device. Then try to make call.

Related

Connect to C++ REST sdk SERVER on Windows from LAN

I have a server written on C++ REST SDK.
There's http_listener which listens to "http://localhost:34568".
When I try to send a request in browser or from the client to localhost it works fine and I get the responses from my server. But the point is to use the application in network. And here where the problem comes.
When I try to request the server from the other PC using IP(192.168.1.103:34568) I get "HTTP Error 400. The request hostname is invalid."
I'm aware that that could be some firewall issues but it's turned off. Also I tried to set port rules in brandmauer and it didn't help.
And even more! I got XAMPP running Apache server and when I do the same thing but with (192.168.1.103:80) I do get the response from Apache and have an access.
Anybody had something similar or somebody knows what the problem is about?
Listen to local ip address or to your network name (dns):
"http://xxx.xxx.xxx.xxx:34568" or
"http://your_network_name:34568"
So, if you have multiple network adapters, you can choose which one.

Mobicents presence server. How to register softphone?

I have installed the Mobicents Presence server following the guide.
The server is installed but now I am not able to proceed further. I mean now how to test the presence or register the devices with XDM, PS and RLS. How do I find on which port the services are running?
I am able to see register messages received to the server but on the softphones request timeouts.
Is there any documentation which I am missing?
Please help.
The Mobicents SIP Presence Server is not supported anymore.
There is an issue on GitHub currently in development about presence. Take a look at: https://github.com/Mobicents/RestComm/issues/380

"connection refused" when my play app makes http call to itself

I am implementing a heartbeat endpoint/route using play 2.2.1 built with Scala 2.10.2 (running Java 1.7.0_45). When
the heartbeat endpoint is called, I want the controller to make http calls to localhost. If all of those
calls are ok, then the heartbeat endpoint will return an OK http response.
When I execute the following url from curl, I get the expected 200 response:
http://localhost:9000/oauth2/token. I am also able to telnet to localhost 9000.
I am also able to use WS successfully with an external URL:
WS.url("http://www.example.com").withHeaders("Content-Type" -> "application/json").get()
However, when I execute it from within my play app, I get a 500 tcp_error response.
WS.url("http://localhost:9000/oauth2/token").withHeaders("Content-Type" -> "application/json").get()
WS.url("http://127.0.0.1:9000/oauth2/token").withHeaders("Content-Type" -> "application/json").get()
WS.url("http://HostName:9000/oauth2/token").withHeaders("Content-Type" -> "application/json").get()
Here is the exact error message I receive:
Network Error (tcp_error)
A communication error occurred: "Connection refused"
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
For assistance, contact your network support team.
Do I need to configure something to allow a play application to make calls to itself? Is this a network problem on
my box? If so, why do curl and telnet work? If a network issue, then it must be a jvm specific networking issue?
Could it be a security problem with play calling to itself? Not sure where to go next.

Apple Push Notification not working on shared server

I want to send APN (Apple Push Notification) from PHP script. My PHP script is working fine and I receive notification in the iphone device as well when sending from localhost but when I upload the same script with same .pem file to the shared server it returns error...
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection refused) in /mypath/SendPushNotification.php on line 28 Failed to connect: 111 Connection refused
From some source I get to know that to send APN port 2195 must be open which is not possible in the shared server plan. So I tried using dedicated server and it's working perfectly and I receive the notification on the device. I tried hard to find the solution for shared server but didn't find any solution.
My question: is it possible send APN without opening port 2195 from shared server? if Yes give some guidance.
No, Its not possible to send APN message without using 2195 port.
If you want to send push notification message from shared server, try using some third party tools like http://urbanairship.com/.
Some time ago I got the same error, and then I found that it ocurres because of the server, the proxy is blocking that port, because most of servers doesn't use that port as a common one(80 or 21).
In this case you could try asking for support on your server reseller , they can open that port (2195) for you, If your take this solution I would recommend also asking to open the port 2196 that port is used for feedback.
Another solution is to use a free push notification provider, like Parse which is really easy to use and implement on your app, also you can use UrbanAirship, but I preffer Parse ;)
Hope it helps
This is irritating and definitely port 2195 issue. Chat with your hosting provider and ask them to open the port. I also had same issue. My Local code was running peacefully in every condition like sandbox and production but it was failing on the server.
Dont get confused about .pem file path and that would be simple corresponding to your code. For me i put my certificates (.pem) in a directory named certs and gave path like this:
$apnsCert = 'certs/cert_prod.pem';
The code was not working on my apps production server. I wasted one and a half day on this but that ran great on first run when i put that on application's staging server. Reason!!!! Definitely port 2195 issue.
All the beat.

How we can check that our IP is blocked by apple from using APNS service

My apns was fine till yesterday. But today onwards am getting this error.
.Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection timed out)
I didn't change anything. I am using an adhoc distribution profile.I used apns service too many times for testing. So i am confused about whether apple blocked my ip.How we can check that our IP is blocked by apple from using APNS service ?
Which version you are using? If it is 5.2, please test with 5.3
If you are using 5.3, then please make sure whether SSL is on or off (enabled or not).
While I can't help you check your IP addresses (well, aside from trying a new IP, or proxy), here are some things you can try to restore your APNS ability.
I would check your push certificate. It may have expired.
Also, look into Urban Airship. UA is a great service that helps you with using APNS. I have seen them mention Sandbox control specifically to avoid your problem of pushing the limit. (pun intended.)
EDIT:
Based on the last part of your error, (Connection Timeout), it does not look like an IP block. It would say (Connection refused).