Skip to content
Snippets Groups Projects
  1. Sep 12, 2017
  2. Sep 11, 2017
  3. Sep 10, 2017
    • Walter Doekes's avatar
      res/res_pjsip: Fix localnet checks in pjsip, part 2. · 680aba21
      Walter Doekes authored
      In 45744fc5, I mistakenly broke SDP media address rewriting by
      misinterpreting which address was checked in the localnet comparison.
      
      Instead of checking the remote peer address to decide whether we need
      media address rewriting, we check our local media address: if it's
      local, then we rewrite. This feels awkward, but works and even made
      directmedia work properly if you set local_net. (For the record: for
      local peers, the SDP media rewrite code is not called, so the
      comparison does no harm there.)
      
      ASTERISK-27248 #close
      
      Change-Id: I566be1c33f4d0a689567d451ed46bab9c3861d4f
      680aba21
  4. Sep 09, 2017
  5. Sep 08, 2017
  6. Sep 07, 2017
  7. Sep 06, 2017
  8. Sep 05, 2017
    • Ben Ford's avatar
      chan_pjsip: Suppress frame warnings. · bfc29de3
      Ben Ford authored
      When rtp_keepalive is on for a PJSIP endpoint dialing to another
      Asterisk instance also using PJSIP, Asterisk will continue to print
      warning messages about not being able to send frames of a certain
      type. This suppresses that warning message.
      
      Change-Id: I0332a05519d7bda9cacfa26d433909ff1909be67
      bfc29de3
    • Sean Bright's avatar
      formats: Restore previous fread() behavior · c3a6c8fd
      Sean Bright authored
      Some formats are able to handle short reads while others are not, so
      restore the previous behavior for the format modules so that we don't
      have spurious errors when playing back files.
      
      ASTERISK-27232 #close
      Reported by: Jens T.
      
      Change-Id: Iab7f52b25a394f277566c8a2a4b15a692280a300
      c3a6c8fd
    • Walter Doekes's avatar
      res/res_pjsip: Standardize/fix localnet checks across pjsip. · f856d9b4
      Walter Doekes authored
      In 2dee95cc (ASTERISK-27024) and 776ffd77 (ASTERISK-26879) there was
      confusion about whether the transport_state->localnet ACL has ALLOW or
      DENY semantics.
      
      For the record: the localnet has DENY semantics, meaning that "not in
      the list" means ALLOW, and the local nets are in the list.
      
      Therefore, checks like this look wrong, but are right:
      
          /* See if where we are sending this request is local or not, and if
             not that we can get a Contact URI to modify */
          if (ast_apply_ha(transport_state->localnet, &addr) != AST_SENSE_ALLOW) {
              ast_debug(5, "Request is being sent to local address, "
                           "skipping NAT manipulation\n");
      
      (In the list == localnet == DENY == skip NAT manipulation.)
      
      And conversely, other checks that looked right, were wrong.
      
      This change adds two macro's to reduce the confusion and uses those
      instead:
      
          ast_sip_transport_is_nonlocal(transport_state, addr)
          ast_sip_transport_is_local(transport_state, addr)
      
      ASTERISK-27248 #close
      
      Change-Id: Ie7767519eb5a822c4848e531a53c0fd054fae934
      f856d9b4
    • Joshua Colp's avatar
    • Joshua Colp's avatar
      res_pjsip_session: Preserve stream name during renegotiation. · 68bcfccd
      Joshua Colp authored
      Stream names within Asterisk can have meaning so when an externally
      initiated renegotiation occurs we need to preserve the name of
      the stream if it already exists.
      
      Change-Id: I29f50d0cc7f3238287d6d647777e76e1bdf8c596
      68bcfccd
    • George Joseph's avatar
      res_calendar*, res_smdi: Move to "extended" support · 0ec95515
      George Joseph authored
      Change-Id: I31eee8be30c6b0fc3dadb31111dd47742da8892d
      0ec95515
    • Joshua Colp's avatar
      f40b2901
    • George Joseph's avatar
      res_pjsip_t38: Make t38_reinvite_response_cb tolerant of NULL channel · 9b3f6d26
      George Joseph authored
      t38_reinvite_response_cb can get called by res_pjsip_session's
      session_inv_on_tsx_state_changed in situations where session->channel
      is NULL.  If it is, the ast_log warning segfaults because it tries
      to get the channel name from a NULL channel.
      
      * Check session->channel and print "unknown channel" when it's NULL.
      
      ASTERISK-27236
      Reported by: Ross Beer
      
      Change-Id: I4326e288d36327f6c79ab52226d54905cdc87dc7
      9b3f6d26
  9. Sep 01, 2017
Loading