android SIP and asterisk 1.10 - Android Q&A, Help & Troubleshooting

Hi all,
im new to this forum, and not sure if this is the place to post this question. im currently developing a SIP client to work with my Asterisk 1.10 SIP server on linux fedora in vmware.
i've tried testing the connection with a softphone on my host machine(WIN7), and seems like the connection is able to reach the Asterisk server.
but when i test it with an android app (CSipSimple, Sipdroid, SipDemo) the connect does not seems to be established and i keep getting a "registration timeout" response.
do anyone know what would be the problem?
the solutions that i have tried:
- port forwarding on my router (allow all ports)
- allowing all ports on the linux server
the android phone that im currently testing on is HTC DHD 2.3.5 and connected to my personal router.
your help will be greatly appreciated! thanks!

Related

VPN problems, XDA to Cisco PIX

Using XDA VPN client to make PPTP tunnel to a Cisco PIX via the O2 GPRS network. PIX is set-up for PPTP and works when I use a Windows XP client. Using XDA, the tunnel connects but won't pass traffic. Cause seems to be that XDA and PIX endlessly have a PPP negotiation argument about MPPE compression standard. Tried 40 bit and 128 bit, no luck. Anybody ever succeed with XDA VPN client at all please?
Colin
I wonder if you are having the same routing confilct I have. I can email you a fix for this if you like.
Hi Martin, thanks for reply. We don't have a 10.x.x.x subnet, although it is possible that somewhere they may have a 192.168.x.x conflicting with us. I see evidence of 10.x.x.x and 172.x.x.x by probing. As the tunnel gets set up and authenticated, I supposed it wasn't routing causing my problem. From the PIX I see the PPP negotiation problem. Have you had success with the XDA VPN client?
Yes I have, but I was using an MS RAS server on the other end (and GPRS as the carrier network).
Hi Martin,
OK, it looks like the PPP negotiation problems have gone away, no clue why. Now I do have a routing problem it seems. Traceroute on XDA to my target 192.168.1.74 shows the following, up to a point where ICMP gets denied:-
172.26.248.210 (PRIVATE)
193.113.199.59 (GENIE/BT)
193.113.235.161 (Genie/BT)
193.113.199.130 (BT)
62.7.239.1 (BT)
*.*.*.* no response
Looks like BT have a 192.168.x.x subnet ot there beyond 62.7.239.1. Is this similar to the routing problem you found a fix for? If so, what did you do please?
martinlong1978 said:
I wonder if you are having the same routing confilct I have. I can email you a fix for this if you like.
Click to expand...
Click to collapse
hi same here, i establish the VPN connection but then no use as nothing works no remote desktop, no intranet site. Please let me know the fix. my email is [email protected]
I tested the WM5/6 PPTP VPN Client on the Wizard with a PIX running 6.3(5) and had problems with MPPE - like you the VPN would connect however I couldn't pass any traffic. I debugged the PIX and it was pointing to the encryption. I disabled encryption on the PIX and it worked, obviously though this isn't acceptable. I tested the same but using a Windows 2003 Server as the VPN device and this worked so it is some incompatiblity between the PIX implementation of MPPE and the WM5/6 PPTP client (XP client worked OK with the PIX).
I ended up getting L2TP/IPSec working and have used this since, there is more to configure on the PIX side but it's still achievable and its more secure than PPTP, plus this is where the technology is moving to anyway. PIX version 7 doesn't support PPTP anymore either.
Andy

Any get VPN working with DCD 3.2.5?

Has anyone got VPN connectivity working with DCD 3.2.5? I have been trying for hours with no luck. Every time I try to connect I just get the generic unable to connect message (VPN Server problems. Verify your username and password..... I do know its not a user name / password issue. I set the VPN up and administer it. Its a ClarkConnect Community Edition Firewall Router 4.3.
I can however use the phone with Internet Sharing and connect to the same VPN end point with my laptop. I know the VPN is working.
Any one have any experience with this?
scrosler said:
Has anyone got VPN connectivity working with DCD 3.2.5? I have been trying for hours with no luck. Every time I try to connect I just get the generic unable to connect message (VPN Server problems. Verify your username and password..... I do know its not a user name / password issue. I set the VPN up and administer it. Its a ClarkConnect Community Edition Firewall Router 4.3.
I can however use the phone with Internet Sharing and connect to the same VPN end point with my laptop. I know the VPN is working.
Any one have any experience with this?
Click to expand...
Click to collapse
I'll be honest. I haven't really tried yet, but I am interested in getting this working myself, as I need to set it up; in addition to somehow getting this damn thing to connect to my school's network - which it has refused to for many weeks now.
scrosler said:
Has anyone got VPN connectivity working with DCD 3.2.5? I have been trying for hours with no luck. Every time I try to connect I just get the generic unable to connect message (VPN Server problems. Verify your username and password..... I do know its not a user name / password issue. I set the VPN up and administer it. Its a ClarkConnect Community Edition Firewall Router 4.3.
I can however use the phone with Internet Sharing and connect to the same VPN end point with my laptop. I know the VPN is working.
Any one have any experience with this?
Click to expand...
Click to collapse
Did you try using the kitchen and enabling the Enterprise IPSEC checkbox? It's the first item on the list. I assumed this was for those who needed VPN connections, so have not used it myself personally.
BTC
BillThyCat said:
Did you try using the kitchen and enabling the Enterprise IPSEC checkbox? It's the first item on the list. I assumed this was for those who needed VPN connections, so have not used it myself personally.
BTC
Click to expand...
Click to collapse
yep you need that for IPSEC vpn, but PPTP vpn would work without it.
BillThyCat said:
Did you try using the kitchen and enabling the Enterprise IPSEC checkbox? It's the first item on the list. I assumed this was for those who needed VPN connections, so have not used it myself personally.
BTC
Click to expand...
Click to collapse
Yes. Im going to flash back to a stock ROM later today and test.
I'll post the results.
DCD have you ever got PPTP to work?
scrosler said:
Yes. Im going to flash back to a stock ROM later today and test.
I'll post the results.
DCD have you ever got PPTP to work?
Click to expand...
Click to collapse
Telus ROM can authenticate just fine. Hmmmm. DCD Any thoughts?
PPTP VPN works
Here is what I did:
Configured the VPN connection.
Create a nework exception for a valid DNS name or use wildcards:
*.myvpnconnection.com
Anything you go to in that domain will use the VPN. IE seems to be the only thing that will initiate the connection.
It sounds like you might have something wrong on the server side.
MM
I just setup mine to use the vpn into my office and it worked slick as "stuff"... but we use a MS VPN server with AD...
I'm able to use VPN on 3.2.5 (stock, not cooked in kitchen) It works, but often time I have to soft reset before it will let me connect. Windows even suggests it... I haven't figured out a way around this when it happens, other then to soft reset.
Also I'm having a problem where VPN locks up the phone if I leave it connected, and the phone goes into lower power mode. It won't wake up with power. I have to soft reset.
Lastly, I'm trying to figure out the fastest way to actually launch the connection. It seems horribly buried / inefficent, the way I'm doing it:
I'm going to Start -> Settings -> Connections Tab -> Connections Icon -> Under the VPN Connection hitting "Manage Existing Connections -> VPN Tab -> Selecting the VPN Connection and "right clicking (hold until context menu pops up) and hitting "Connect".
Anyone know of a faster way?
Thanks in advance!!
PPTP and L2TP work fine here. I do have an issue where if I leave the connection live and the device goes to sleep it doesn't wake up and requires a soft reset. It's been like that for a number of revisions. Other than that it works fine.

[SOLVED] Help! TCPClient via Wifi .NET Compact Framework

SOLVED - But I'm not sure how, I was redesgning the app so that I could put it up here for other leo owners to test and gave it one last go to take a screenshot of the error to show people what I was looking for and viola it starts working (I never changed the TCP code) sorry anyone who finds this who has the same issue but it just randomly started working!!
Hi fellow devs,
After a massive googling session I have not been able to find an answer to the following issue:
I am writing a TCP client/server app with my PC as the server and the client being my HD2.
I am writing the app in VB.net using the .net compact framework 3.5 and the windows mobile 6 sdk.
I just cannot get the following code on the client side to work over wifi:
Code:
Dim ParsedIPAddress As IPAddress = IPAddress.Parse("192.168.1.10")
Dim client As New TcpClient()
client.Connect(ParsedIPAddress, 7209)
I get the following exception:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Click to expand...
Click to collapse
If I connect the phone via active sync it will work and I can send and recieve data ok so it appears there is no issue with the code itself.
While connected via active sync - if I turn off the server side app I get the following exception:
No connection could be made because the target machine actively refused it
Click to expand...
Click to collapse
However the exception message remains as the original if I do the above but using wifi so it just is not able to establish a link at all (or not even trying) using wifi??
-----------------
I have tried:
1. Ensuring that windows firewall on the server is off and not getting in the way of anything
2. Ensured that my mobile has got an active wifi connection and can see the machine (wifi remote control apps such as GRemotePro work ok)
3. Turned off all other types of data connection (GPRS,3G) to make sure my mobile has only one route out
------------------
Is there anyone out there who has successfully got TCP to work with the .net compact framework and if so how???
Should I be using another class rather than TCPClient maybe the underlying Sockets class?
Any help would be greatly appreciated.
Cheers,
Prime.
P.S. I don't mind if people only have a solution in C# I'm happy to do any translation etc...
Socket class also fails
Ok so I've tried the socket class now as well and that fails in exactly the same way over wifi, ensured that I can ping my device and ping my pc from the device so clearly the underlying hardware is working just not for the TCPClient or Socket... Any ideas anyone?
Have you enabled port forwarding for the relevant port and IP address in your wireless router?
That's the only thing that springs to mind for me.
Thanks for the reply but...
Hey John,
Thanks for trying to help although unfortunately this does not bear any consquence in this particular situation, you only need to do port forwarding if Network Address Translation is going on between you and the end point. In this case the endpoint (IP + Port) is on the internal LAN with no address translation in between. It appears the the internal WIFI adapter is not being accessed correctly from the application i.e. this is an internal issue on the phone not an issue with the network in general as I can run the same code via active sync and it works also I can convert the project to a standard windows pc app and run the same code from a pc and it works. Oh and of course every other damn (this is really wierd) wifi app I've got works so something with the .net cf and wifi maybe??
Cheers,
Tony.
A development...
Ok so I have dug out my old Orbit II just to see if this was device related and low and behold it is ARGGGHHH!!! The app works just fine on the Orbit II over wifi.
Does anyone know of any policies, security or otherwise, that would stop the HD2 (leo) from being able to use wifi from the .net cf?
<<--delete-->>
Generic reasons for communication failures
Hi
This is a pretty generic problem, I'm afraid you can't give an exact idea of where is the problem so I can't give also an exact solution.
Usually a communication problem is due to one of this three
1) The server does not listen or does not receive
2) There is a problem with the network
3) The client does not make the call
Type 1 should be checked trying to connect to the server with a PC or a laptop. You should be able to make the client run in a PC.
Usually when a (web) server has a (web) tcp service stopped, when you try to connect to it it rejects the connection (this is what that of "the target machine refused it" sounds to me). Start then the (web) service on the server. Change (web) for your application.
My advice is that you should have something in the server side where you could run a wireshark sniffer. Then you would see all the traffic coming from the PDA and see if your client is sending packets.
Type 2 are the ones that can be checked with a ping. Maybe there is a firewall somewhere dropping the packets.
Type 3 may be due to several things
a wrong code (I don't know, there is a lot of time since I made programs)
you're trying to connect to a dns name that can't be resolved. Try with IP address.
You have a wrong network configuration. The server should be in the same network but client is not able to get the server's (or the router's) MAC with the ARP protocol. So it doesn't make the call.
I hope it helps.
Regards

[GUIDE] Creating infrastructure Wi-Fi with Windows 7

So I just got my touchpad today, and was made aware that it doesn't support ad-hoc networks, which I use somewhat frequently to share a wired connection via my laptop. I just bypassed it by using my phone as a hotspot (android creates infrastructure), but after a little searching I found a nice little video on youtube about how to create an infrastructure network from Windows 7.
http://www.youtube.com/watch?v=klHzMyYFGeQ
Lets all give this guy some thanks.
For those of you that can't/won't go to youtube, the general gist of it is that you need an unused wifi network adapter and an internet connection. You then set up the network by running as administrator:
Code:
netsh wlan set hostednetwork mode=allow ssid=testwifi key="123456789012"
Then you share the internet connection with the (maybe new) Microsoft virtual WiFi Miniport Adapter. Now you're ready to start it with:
Code:
netsh wlan start hostednetwork
And you can check its status via:
Code:
netsh wlan show hostednetwork
cannot create Microsoft virtual WiFi Miniport Adapter
dorsai3d, thanks for the information. I had been trying to use my Sprint TP2 as a wifi router, and was getting really frustrated. If this would have worked, it would have been awesome.
So what I am trying to do is use USB to theter to my Windows 7 64bit laptop, and use the Wireless adapter on the laptop in infructure mode to theter to Touchpad.
When I run the
"netsh wlan set hostednetwork mode=allow ssid=testwifi key="123456789012" command, it runs fine (as admin).
"The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed. "
++
This is the error I get when I run "netsh wlan start hostednetwork"
"The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation."
++
output for
"netsh wlan show hostednetwork"
Hosted network settings
-----------------------
Mode : Allowed
SSID name : "testwifi"
Max number of clients : 100
Authentication : WPA2-Personal
Cipher : CCMP
Hosted network status
---------------------
Status : Not available
+++
No virtual adapters were created, like in the video, nor was there one to begin with.
So I am guessing that is the crux of my problem
I use Ad-hoc mode quite often, I have Intel 4965AGN for my wifi adapter on this laptop.
and I use my 3G on the Touch Pro 2 at my primary internet at home
Anybody running into similar issue, or might know whats going on. Will appreciate any help, thanks.
loving my touchpad btw
As this is a relatively new feature, you may need to reinstall/update the drivers for your current wifi adapter. I'm not a big networking person, so I'm afraid I won't be too terribly much help, but maybe we can get this all headed in the right direction. I'm afraid it looks like there won't be a solution for getting windows mobile to create an infrastructure hotspot if it's one of the new selling points in Windows 7.
For reference, I'm using the Intel WiFi link 1000 BGN and the virtualized adapter was already there for me.
Yup, driver issue. Looks like I might have to buy a second wireless nic that supports this feature. Just knowing that this is possible it a great start
now to find a cheap usb wifi nic that dose support this. I have a Intel 5300AGN on my work laptop, I think that is supported.
thanks for your help though.
edit:
lookes like even Intel 5300AGN dose not support VWIFI
I made the infrastracture Wi-Fi with windows 7 and it works perfectly with my Android S3 phone and tablet but when I try to connect my Iphone with it....My lan connection frezees and I am unable to access internet at all .....
Then I have to disconnect my Router and restart it...
I surfed and I guess I have o connect to the hotspot through VPN.....But I dont know the details to fill in....
The Iphone 4s ask the following details for VPN connection
L2TP PPTP IPsec
Please help me !!!!!!

[Q] Access home network from my Android phone over 4g

Hello,
First I am able to use simple port forwarding on my router to access each IP cam individually. This is an unsecure method and is exactly the solution I a trying to get away from.
I am a Linux professional. I can handle my own on the Ubuntu side. I am not so much technically savvy on the Android side. I've spent a good amount of time trying various methods mentioned below. The primary problem is that I just don't have beaucoup amount of time debugging to get this to work. Hence my post.
I am looking for the simplest solution to achieve my requirement. I want to securely access multiple services from my Android phone over 4G/3G on my natted home network using my Ubuntu server as the gateway. When i I say securely I mean, using an encrypted protocol to connect to my Ubuntu server, using multiple levels of authentication reaching my final end point application such as my IP webcam.
My phone is a HTC One M8 running Android 4.4.2 rooted using Weaksauce. The server on my internal network is Ubuntu 14.04.
I've unsuccessfully tried using Openvpn v2.3.2 on ubuntu and OpenVPN on my Android. This method and the other listed below I've spent hours trying get it to work. Way too many permutations of configuration and application choices to even attempt to list hear.
I've tried PPTP v1.3.4 on Ubuntu with the Android VPN client unsuccessfully
Again I am looking for the quickest way for my requirements to be met. I am open to the above methods but thinking below is the way to go.
The solution I am leaning towards is using ProxyDroid and SSH Autotunnel on my Android to port forward port 3128 to reach squid v3.3.8 on my Ubuntu.
The current problem I am running into is that SSH Autotunnel complains that it cannot create the port forward because port 3128 is already opened by squid. I've used this solution years ago using Putty on Windows and squid on my Linux system. Technically I am doing the same thing with SSH Autotunnel so I do not understand why I am getting this error this time.
I really appreciate anybody who has a few minutes to help me get up and running.
--Thanks, Chris

Categories

Resources