SIP not working #662

Closed
greatuser2 opened this Issue Jul 7, 2017 · 12 comments

Comments

Projects
None yet
3 participants
@greatuser2

greatuser2 commented Jul 7, 2017

I tried sip calling in the default phone app and in ring over udp on Nexus 5x. The phone app gives me a "Server error. Try again later." error when calling and Ring can't register (with sip). I used a sip account that works great on my computer and other computers. I first experienced this issue on June the 9th (it may have appeared earlier) and sip was working on previous versions of Copperhead os.

@mke208

This comment has been minimized.

Show comment Hide comment
@mke208

mke208 Jul 7, 2017

It works fine for me on copperheados-nougat-mr2-release built from source.
Android native SIP client is quite dumb (cannot choose codecs, it does not seem to support SIP SRV records, etc) but integration is nice ... Have you tried Linphone sip client ?

mke208 commented Jul 7, 2017

It works fine for me on copperheados-nougat-mr2-release built from source.
Android native SIP client is quite dumb (cannot choose codecs, it does not seem to support SIP SRV records, etc) but integration is nice ... Have you tried Linphone sip client ?

@mke208

This comment has been minimized.

Show comment Hide comment
@mke208

mke208 Jul 7, 2017

My device is Pixel XL, you said you have the issue on N5X. Different devices might experience different issues ...

mke208 commented Jul 7, 2017

My device is Pixel XL, you said you have the issue on N5X. Different devices might experience different issues ...

@greatuser2

This comment has been minimized.

Show comment Hide comment
@greatuser2

greatuser2 Jul 8, 2017

I have tested it again.
I tried to use Linphone with a Linphone SIP account. It worked with TLS transport. However, with TCP or UDP transport, I had a "failed to register error". I had the same result with another UDP-only account.

greatuser2 commented Jul 8, 2017

I have tested it again.
I tried to use Linphone with a Linphone SIP account. It worked with TLS transport. However, with TCP or UDP transport, I had a "failed to register error". I had the same result with another UDP-only account.

@mke208

This comment has been minimized.

Show comment Hide comment
@mke208

mke208 Jul 8, 2017

In Linphone you can go to Settings - Network and toggle 'use random ports'.
If it uses port 5060 it conflicts with the native SIP client ...

mke208 commented Jul 8, 2017

In Linphone you can go to Settings - Network and toggle 'use random ports'.
If it uses port 5060 it conflicts with the native SIP client ...

@greatuser2

This comment has been minimized.

Show comment Hide comment
@greatuser2

greatuser2 Jul 8, 2017

This option was already enabled. Disabling it didn't make things better.

This option was already enabled. Disabling it didn't make things better.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Jul 8, 2017

Contributor

If you have a VPN enabled (including a non-VPN app based on intercepting traffic / DNS via VPN service), try turning it off.

Contributor

thestinger commented Jul 8, 2017

If you have a VPN enabled (including a non-VPN app based on intercepting traffic / DNS via VPN service), try turning it off.

@mke208

This comment has been minimized.

Show comment Hide comment
@mke208

mke208 Jul 8, 2017

So the SIP client registers with the server, but you cannot call ?

mke208 commented Jul 8, 2017

So the SIP client registers with the server, but you cannot call ?

@greatuser2

This comment has been minimized.

Show comment Hide comment
@greatuser2

greatuser2 Jul 9, 2017

I have no VPN or similar app enabled.
As far as I know, the default phone app doesn't indicate if it is registered (I think that it registers only when calling). Linphone and Ring don't register.

greatuser2 commented Jul 9, 2017

I have no VPN or similar app enabled.
As far as I know, the default phone app doesn't indicate if it is registered (I think that it registers only when calling). Linphone and Ring don't register.

@mke208

This comment has been minimized.

Show comment Hide comment
@mke208

mke208 Jul 9, 2017

It does register if you enable "Receive incoming calls". When you enable this option and go to "Sip Accounts",it should say "Receiving calls" under the account if registered, or some error if not.
Does your SIP provider by any chance use SIP SRV records, and did you try to put the SIP server's IP address instead of domain name under the account settings ?

mke208 commented Jul 9, 2017

It does register if you enable "Receive incoming calls". When you enable this option and go to "Sip Accounts",it should say "Receiving calls" under the account if registered, or some error if not.
Does your SIP provider by any chance use SIP SRV records, and did you try to put the SIP server's IP address instead of domain name under the account settings ?

@greatuser2

This comment has been minimized.

Show comment Hide comment
@greatuser2

greatuser2 Jul 9, 2017

I have enabled "Receive incoming calls" and it registered successfully and I could even make and receive calls! It still doesn't work without incoming calls enabled.
For some reason, Linphone now registers with the Linphone sip account but not on the other one whose server has no domain name but only an ip address.

I have enabled "Receive incoming calls" and it registered successfully and I could even make and receive calls! It still doesn't work without incoming calls enabled.
For some reason, Linphone now registers with the Linphone sip account but not on the other one whose server has no domain name but only an ip address.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Jul 9, 2017

Contributor

I don't think this is a CopperheadOS issue. It would need to be confirmed that this doesn't occur for you on a fresh install of stock Android but does on a fresh install of CopperheadOS.

Contributor

thestinger commented Jul 9, 2017

I don't think this is a CopperheadOS issue. It would need to be confirmed that this doesn't occur for you on a fresh install of stock Android but does on a fresh install of CopperheadOS.

@thestinger thestinger closed this Jul 9, 2017

@mke208

This comment has been minimized.

Show comment Hide comment
@mke208

mke208 Jul 10, 2017

Correct, it might be an issue with the OP's sip server or setup. SIP takes into account a lot of things, like router/firewall set-up, different authentication schemes, some providers blocking it, etc. Maybe at some point Google will improve Android's native sip calling to add SRV, ZRTP and other features, but that's beyond the scope of this project.

mke208 commented Jul 10, 2017

Correct, it might be an issue with the OP's sip server or setup. SIP takes into account a lot of things, like router/firewall set-up, different authentication schemes, some providers blocking it, etc. Maybe at some point Google will improve Android's native sip calling to add SRV, ZRTP and other features, but that's beyond the scope of this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment