Menu

#264 DNS SRV + ICE + STUN error

NextRelease
nobody
None
Medium
Defect
2010-10-15
2010-10-07
Anonymous
No

Originally created by: danbor...@gmail.com
Originally owned by: r3gis...@gmail.com

I don't know if the version CSipSimple_0.00-13-05.apk  is for a special device, but after updating my app it no longer register to sip server. All it says "Inactive" .
Tried removing the account, removing the app and installing again. same problem.
So, installed old version(CSipSimple_0.00-13-04.apk) and it works.

Discussion

  • Anonymous

    Anonymous - 2010-10-07

    Originally posted by: r3gis...@gmail.com

    Should not be valid only for one device. The ~only~ thing added in this version should be DNS SRV support.

    Most of the time inactive is shown cause it doesn't try to register. For example you are on 3G and in settings "I'm allowed to use over 3G is not checked". Else we get some red message saying there were a problem while registering.
    Could you send me logs (https://code.google.com/p/csipsimple/wiki/HowToCollectLogs) . There is maybe a regression due to the fact dns request are now done directly using nameservers of android and not fallbacking to the standard dns resolution.

    If you can provide me your logs with 13-05 when you try to deactivate/reactivate an account (click on the status button on the left of the account name in accounts list just before sending logs). It will help me a lot. Thx in advance

    Owner: r3gis.3R
    Status: Accepted

     
  • Anonymous

    Anonymous - 2010-10-08

    Originally posted by: danbor...@gmail.com

    Ok, I updated the vision again to 13-05, and it stopped working, does not register, status inactive, when I tap the icon to force to connect it turns off, yellow light goes off. tap again yellow light comes on, still says inactive.
    Mind that I do not have a Data plan with T-Mobile, I only use WiFi for data, all the options on the csipsimple is set to wifi.

    Log file attached.

     
  • Anonymous

    Anonymous - 2010-10-08

    Originally posted by: r3gis...@gmail.com

    Ok seems to be a problem with the new feature that allow to pjsip to do the DNS resolution (here it tries to resolve an IP address... that's strange).
    In next release I'll add at least an option to activate/deactivate DNS resolution that will allow to workaround the problem but I'll also try to understand why it is trying to resolve the IP in your configuration.
    Thx for the report

     
  • Anonymous

    Anonymous - 2010-10-08

    Originally posted by: r3gis...@gmail.com

    Just a thought, could you try to deactivate ICE and set stun to a server resolved by a nameserver (for example stun.ekiga.net).
    In order to see if things goes better.

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: ometa...@gmail.com

    All of a sudden I had the same problem after updating to -13-05. Inactive all the time.
    I double checked settings make sure I have all 'Use WiFi,3G,GPRS,EDGE' checked.
    It wouldn't work after rebooting too.
    I went back to -13-04 with the same results.
    Then I went back to -13 and after rebooting it worked as before. I'll stay with that version until new one comes out.
    thanx for the great work r3gis.3R

    btw I have htc desire, opendesire 4.0.43, android 2.2.1

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: r3gis...@gmail.com

    Could you try 0.00-13-06?
    That's strange many people has this issue with latest versions some from -05 and not -04. I guess was due to the recent introduction of DNS SRV resolution & SRTP & TLS.
    These options are used in the startup process of pjsip and if it fails somewhere, it can show this kind of behavior.

    Just some precautions : uninstall before installing a new dev version (at least if you use an older version or if you switch between market/dev version).
    Ensure there is not other SIP app running... sometimes other apps use the same ports than CSipSimple... for example if SipDroid is running (even in background and silently listen to a port), CSipSimple will not run at all or sound will be broken.

    If you reproduce with 13-06, I'm interested by logs :) !

    Thx for tests

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: danbor...@gmail.com

    OK, After disabling STUN it register, but it goes back to my original problem (issue 255) I can not hear the other party. (13-05)
    -----------------------------------------------
    OK, I just uninstalled 13-05 and installed 13-06, and I see that you have added the option to Enable / Disable  "Resolve DNS SRV". living it enabled, csipsimple does not register, when I disable it register and works with no problems.

    CSIPSIMPLE is the only SIP app on my phone.

    Thank you.

     

    Related

    Tickets: #255

  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: r3gis...@gmail.com

    Ok make sense with logs.

    So just to be sure that I well understand :
    If Resolve DNS SRV is disabled, you can register with stun activated?

    Could you just make a try with :
    * DNS SRV : activated
    * STUN : activated and set to stun.3cx.com
    * ICE : DISABLED (I think that's the key point).

    I'm wondering if ICE doesn't require TURN to be enabled too.. Or there is something with ICE I have to check. But, just try to disable ICE, and see if things are going better.

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: r3gis...@gmail.com

    Oh, and if you could try with ICE activated and STUN disabled and see if you get sound, I'm also really interested.

    Could help me to choose what should be the default options.

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: danbor...@gmail.com

    OK. Tried all these combinations.

    - ICE Disabled, DNS SRV enabled, STUN Enabled = It registers, but I can not hear the other party.

    - ICE Disabled, DNS SRV Disabled, STUN Enabled = It Registers, but can not hear

    - ICE Enabled, DNS SRV Enabled, STUN Enabled = It does not Register

    - ICE Enabled, DNS SRV Enabled, STUN Disabled = It registers, but can not hear.

    - ICE Enabled, DNS SRV Disabled, STUN Disabled = It Registers, but can not hear

    - ICE Enabled, DNS SRV Disabled, STUN Enabled = It registers, works no problem.

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: r3gis...@gmail.com

    Ok thx for the complete test :)

    Well sounds to be a problem in the native stack (pjsip). I've asked on the mailing list of pjsip if it's a bug or me that don't configure it properly.

    Good news is that we have a work around simply disabling DNS SRV. But I guess there is possibly some users that want to use DNS-SRV records and ICE+STUN...

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: Gianluca...@gmail.com

    The registration to sip account in version 0.00-13-05 and 0.00-13-06b too, is slower than before.
    Also the state change from 'calling...' to 'ringing...' seems slower.
    In my case, it is appropriate to disable DNS SRV, mybe it could be the default state.
    In my configuration STUN and ICE are disable.
    In version 0.00-13-04 registration was istant.
    This speed is very convenient for users using csipsimple only for outgoing calls.

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: Gianluca...@gmail.com

    My note was not related to SGS, my device is HTC Legend.
    Thx

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: ometa...@gmail.com

    I have installed the new version -13-06b.
    It works ok, meaning it registers nice and quick.
    When I use srtp (mandatory) it registers fine but don't seem to get through when I call my number to test it. Works better without it (disabled)
    Same with DNS SRV, don't register (stays inactive) works great without it.
    Same with IPv6 stays inactive when I use it, works great without it.
    ICE and STUN are turned on.
    Not sure if all those settings have to do with the voip service I use really. Not very advanced user. Just hope this info will help.

    htc desire, android 2.2.1, tested with wifi and network connections.
    cheers

     
  • Anonymous

    Anonymous - 2010-10-09

    Originally posted by: r3gis...@gmail.com

    @Gianluca : indeed could be slower since it tries first to resolve DNS SRV before fallbacking to A fields. I think that DNS SRV will be by default disabled in the future. I guess it concern not so much users. And those who are concerned has an advanced skill on sip so, will not be chocking for them to go in DNS SRV and activate it.
    @ometaxas : ok that confirms that DNS SRV + ICE + STUN has a bug. I'm still waiting for feedback from pjsip guys (but the mailing list is not really active the week end)
    For SRTP mandatory : your server/remote contact *must* support SRTP else communication will not be established. There is not so much sip client / server that authorize SRTP however. More support ZRTP... but I'm still investigating to know how to support it.
    For IPv6 : your network and your phone *must* be configured in full IPv6 else nothing will happens (initialization of the stack will simply failed silently as if network were not present or busy).

     
  • Anonymous

    Anonymous - 2010-10-15

    Originally posted by: r3gis...@gmail.com

    @ometaxas : could you try the latest 0.00-13-07? With DNS SRV + ICE + STUN (different from ekiga.net since ekiga has a double CNAME dns forwarding -> it will be fixed in the next release, pjsip guys has taken this bug into account).

    Summary: DNS SRV + ICE + STUN error

     
  • Anonymous

    Anonymous - 2010-10-15

    Originally posted by: ometa...@gmail.com

    hey r3gis.3R

    I have tried with DNS SRV + ICE + STUN on my wifi (and not using ekiga.net) and it did work good!

    Tried the same with the network internet and it was taking a while to register. I have noticed in the past sometimes if you change many settings and try to register it takes long time, like it is too quick to apply the new settings or something. Anyway I decided not to wait and I rebooted the phone and worked good.

    cheers for your hard work.

    htd desire, 2.2.1 android, opendesire .36

     
  • Anonymous

    Anonymous - 2010-10-15

    Originally posted by: r3gis...@gmail.com

    Ok thanks for the test :) and also for the report, it permitted me to fix something in csipsimple and also allow pjsip guys to fix something in their code ;) ...

    Status: NextRelease

     

Log in to post a comment.