1. 05 Feb, 2015 1 commit
  2. 04 Feb, 2015 7 commits
  3. 03 Feb, 2015 8 commits
    • Emmanuel Lepage Vallee's avatar
      client: Export account schema · 91704946
      Emmanuel Lepage Vallee authored
      Also rename security.h -> security_const.h
      
      Refs #65314
      
      Change-Id: I1349b63b694c337e88c351a5b2d691145c5ff823
      91704946
    • Stepan Salenikovich's avatar
      upnp: prevent deleting of port mapping · 8adf559e
      Stepan Salenikovich authored
      Prevent DHT port mapping from being deleted when
      doUnregister complete after doRegister
      
      Refs #65266
      
      Change-Id: I7545e48e4c959478283d3d008b4bd0c54b5df3bf
      8adf559e
    • Guillaume Roguez's avatar
      sip: fix SIPVoIPLink destructor · 08cb82bc
      Guillaume Roguez authored
      Reordering implementation of SIPVoIPLink destructor.
      This fix dependencies issues.
      
      Refs #64903
      
      Change-Id: I4f96359bd0708f79592bac325150edf7b149f843
      08cb82bc
    • Guillaume Roguez's avatar
      sip: fix SipIceTransport/SipTransportBroker classes · 0b6192b3
      Guillaume Roguez authored
      Rationale:
      SipIceTranport was not standard-layout but a reinterpret_cast was called
      on one member to retrive the class.
      This "work" on Linux/gcc implementation but it's an undefined behavior
      and not portable.
      This changes the internal destroy transport callback:
      now PJSIP is the unique owner of the SipIceTransport instance and
      should call the destroy callback to delete the instance.
      By the way, we remove shutdown and destroy method as not more used.
      
      Side effect is the re-write of SipTransportBroker on how it handles
      instance of SipIceTransport.
      
      Refs #64903
      
      Change-Id: I58848eca55c421de1883e53793fd58b0e1581d59
      0b6192b3
    • Guillaume Roguez's avatar
      sip: move transport state change C++ trampoline · 4602105d
      Guillaume Roguez authored
      - move tp_state_callback from SipTransportBroker to SIPVoIPLink.
      - install/deinstall it in SIPVoIPLink constructor/destructor.
      
      Rationale:
      It's a endpoint related callback and SIPVoIPLink is the endpoint manager.
      
      Refs
      
      Change-Id: Iea2fdf1a7ce8681bc0cdf732eb6033314cb2cdf9
      4602105d
    • Guillaume Roguez's avatar
      managerimpl: fix finish method · 83e18d59
      Guillaume Roguez authored
      - thread-safe
      - check value during event loop
      
      Refs #64903
      
      Change-Id: I84cb83f3a37fb77e5eff7d21e7f18d67fef7f288
      83e18d59
    • Guillaume Roguez's avatar
      sip: limit SIPVoIPLink respawn to 1 · aea5c49b
      Guillaume Roguez authored
      Also requires to check getSIPVoIPLink return everywhere.
      
      Refs #64903
      
      Change-Id: I8f62a38fd5e26efeb5d64a6a178352b4798dcbfa
      aea5c49b
    • Guillaume Roguez's avatar
      utils: improve getGlobalInstance() · 17846567
      Guillaume Roguez authored
      - thread-safe
      - limit respawn (no limit by default)
      
      Refs #64903
      
      Change-Id: Ie9b2465b6d4b064fa82454d389d4269805f0145d
      17846567
  4. 02 Feb, 2015 1 commit
  5. 01 Feb, 2015 4 commits
    • Guillaume Roguez's avatar
      sip: fix SipTransportBroker transports · 53746f62
      Guillaume Roguez authored
      This patch fixes how the class SipTransportBroker handles
      mapping between our transport classes and the PJSIP transport structure.
      
      - remove unsafe SipIceTransport "onDestroy" callback that
      call invalidated objects (as the mutex) in some conditions.
      - handle ICE transports in the state-change callback.
      - unmap SipTransport before let our transport instances handle events.
      - shutdown remaining mapped transports at destructor.
      - minor changes in logging and indentation rules.
      
      Refs #64903
      
      Change-Id: I975cca4e5cb4e2a5dee623985c956241902a6b92
      53746f62
    • Guillaume Roguez's avatar
      sip: fix SipTransport class · 428ffdb4
      Guillaume Roguez authored
      - use a std::unique_ptr to handle the PJSIP transport (exception-proof).
        Deleter calls pjsip_transport_shutdown() then pjsip_transport_dec_ref().
      - prevent a valid construction with invalid PJSIP transport.
      - use insert than map [] operator to not cause extra memory allocations.
      - minor: postfix private class member with an underscore.
      - minor: using-aliases prefered than typedef.
      - minor: code indentation fixes.
      
      Refs #64903
      
      Change-Id: I1e78d119ca7291928d5148344be5c0258ca2c02e
      428ffdb4
    • Guillaume Roguez's avatar
      sip: remove "add-if-not-found" idiom which not wanted · 2c6b0379
      Guillaume Roguez authored
      This patch changes SipTransportBroker::findTransport() method
      by removing the possibility to map a pjsip transport if not
      found in the mapping.
      
      Rationale:
      This idiom breaks the expected behavior of the method and let unknown
      transports be handled by application.
      Alien transports have not to be handled by us.
      Now an handled transport is shutdown when SipTransport is destroyed,
      and the constructor throw an exception if this transport is given
      again... so impossible to "re-use" a shutdown'ed transport.
      
      Refs #64903
      
      Change-Id: Ib06f8f9d567f1bc84bfe4764f4f6c1252f7dc9ec
      2c6b0379
    • Guillaume Roguez's avatar
      sip: remove unsafe global variable usage in siptransport · 35674a41
      Guillaume Roguez authored
      Refs #64903
      
      Change-Id: I2756df42b50a149645b722ffd64b5676b6c9953a
      35674a41
  6. 31 Jan, 2015 6 commits
  7. 30 Jan, 2015 3 commits
  8. 28 Jan, 2015 7 commits
  9. 27 Jan, 2015 3 commits
    • Stepan Salenikovich's avatar
      upnp: don't use empty upnp address · e4051fbb
      Stepan Salenikovich authored
      In the case that getting the external address
      via UPnP fails, don't try to use the empty
      address to prevent pjsip assert crashes.
      
      Refs #64829
      
      Change-Id: Ibd21dab96a1b79ec852a70506dfe7db587b9add6
      e4051fbb
    • Stepan Salenikovich's avatar
      daemon: add upnp support · 7649d5be
      Stepan Salenikovich authored
      New settings in daemon preferences to use UPnP, default false.
      Currently opens ports for SIP and ip2ip accounts and their calls.
      Opens ports negotiated by SDP sesssion.
      Tries to open ports for ICE candidates and adds ICE candidates
      with the public IP to help ICE negotiation.
      Added miniupnpc to contrib and patched to be able to generate just
      a static lib.
      Supports multiple clients on the same UPnP router. Will select a
      different port at random if the desired port is already taken by
      another client.
      
      Refs #63247
      Refs #63303
      
      Change-Id: I00ae79bc3a24d3e54513a6d299fd9b6a70bcc3c2
      7649d5be
    • Emmanuel Lepage Vallee's avatar
      Fix build on gentoo · e7e98661
      Emmanuel Lepage Vallee authored
      Change-Id: I638ebbea8b8002f32f3004e6374acb90979c4c8f
      e7e98661