[OpenSIPS-Devel] [OpenSIPS/opensips] e61a6b: Fix script varibles for providing port and proto (...

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jun 24 10:24:21 CEST 2016


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e61a6b8d54f36f973d6b1523c542946158e14553
      https://github.com/OpenSIPS/opensips/commit/e61a6b8d54f36f973d6b1523c542946158e14553
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-06-24 (Fri, 24 Jun 2016)

  Changed paths:
    M pvar.c

  Log Message:
  -----------
  Fix script varibles for providing port and proto (as part of SIP URI).

If the SIP URI does not have an explicit port or proto, determine the default port/proto in a SIP wise manner (rather than returning 5060 / UDP) (Ex: sip:example.com;transport=tls has default port 5061 and not 5060 ; or sips:example.com has default proto TLS and not UDP).

Affected variables are $dp, $rp, $op and $dP, $rP, $oP

(cherry picked from commit 6cc850e34dcd022f1ed354bd50d9a1809518fa1f)




More information about the Devel mailing list