opentelecoms-org / lumicall

SIP and ENUM dialer for Android with ZRTP/SRTP encryption, SIP over TLS, ICE/TURN for NAT, G.729 and many other features
http://www.lumicall.org
Other
144 stars 88 forks source link

connecting to the registrar on the wrong port number (?) #24

Open csillag opened 9 years ago

csillag commented 9 years ago

I am trying to get Lumicall working with a voip 2 PSTN gateway called "VoipBlaze" (which is a member of the MobileVOIP franchise.)

After I try to configure the account, I get a "Registration Failed (Timeout)" Notification.

Looking at the logs with adb logcat, I see events like this:

I/TransactionClient(18531): Transaction#117: TransactionClient#117: Retransmission timeout expired
I/IntegratedSipProvider(18531): Sending message:
I/IntegratedSipProvider(18531): REGISTER sip:sip.voipblazer.com SIP/2.0
I/IntegratedSipProvider(18531): Via: SIP/2.0/UDP 192.168.1.68:59313;rport;branch=z9hG4bK18981
I/IntegratedSipProvider(18531): Max-Forwards: 70
I/IntegratedSipProvider(18531): To: <sip:myusername@sip.voipblazer.com>
I/IntegratedSipProvider(18531): From: <sip:myusernamef@sip.voipblazer.com>;tag=z9hG4bK53445038
I/IntegratedSipProvider(18531): Call-ID: 332665144368@192.168.1.68
I/IntegratedSipProvider(18531): CSeq: 1 REGISTER
I/IntegratedSipProvider(18531): Expires: 3600
I/IntegratedSipProvider(18531): User-Agent: Lumicall/1.11.10/GT-I9505G
I/IntegratedSipProvider(18531): Contact: <sip:myusername@192.168.1.68:59313;transport=udp>;reg-id=1;+sip.instance="<urn:uuid:32dddd21-2c16-4d62-8f69-6c2bb649c41a>"
I/IntegratedSipProvider(18531): Supported: path, outbound
I/IntegratedSipProvider(18531): Content-Length: 0
I/IntegratedSipProvider(18531): 
I/IntegratedSipProvider(18531): using transport udp
I/IntegratedSipProvider(18531): Resolving host address 'sip.voipblazer.com'
I/SRVRecordHelper(18531): using nameservers:  192.168.1.254, dnsjava refresh took 54ms
I/IntegratedSipProvider(18531): Sending message to udp:77.72.169.131:5061
I/org.zoolu.tools.Timer(18531): Created Timer: Retransmission, timeout = 4000ms
I/AndroidTimer(18531): created an AndroidTimer for 4000 MILLISECONDS, id = siptimer:edc187ff-1a72-459f-80f8-5542498b568e
I/AndroidTimer(18531): onReceive: siptimer:39a8ae86-901d-4da9-aab2-d7f844d233a0
I/AndroidTimer(18531): it's a timeout

Now the interesting thing is this log is that it's trying to send messages to port 5061, which is the default port, but I have manually configured 5060 as the registrar port, since that's what VoipBlazer uses.

Could it be that Lumicall somehow fails to pick up this config option, and tries to connect with the default port number instead?

Thank you for checking this!

csillag commented 9 years ago

One more note: I can use this SIP account with the built-in SIP client found in Cyanogen with no problem. (Except the general lack of settings and advanced features, of course.)

csillag commented 9 years ago

OK, being a VOIP newbie, I was somewhat confused. Let me clear this up.

I don't need registration; I don't want to receive calls via this SIP provider. I only want to make SIP -> PSTN calls using this provider.

This is what actually works with the builtin SIP client, but not with Lumicall.