#1141 closed enhancement (fixed)
Compile and run-time setting to allow printing of port number in URI in To and From header (thanks Marcus Froeschl for the suggestion)
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-1.8.5 |
Component: | pjsip | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description
PJSIP does not put port number in To and From header, because that is explicitly not allowed by RFC 3261. Please have a look at this table, which shows which URI component is allowed to appear at which context: http://tools.ietf.org/html/rfc3261#page-152
However, some servers would still require clients to put the port number in these headers, hence a global configuration to lift this restriction would be beneficial to allow more interoperability.
Change History (2)
comment:1 Changed 14 years ago by bennylp
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 14 years ago by bennylp
There are two ways to allow printing of port number in From/To? header:
- via run-time setting, by using this snippet in the application code:
#include <pjsip/sip_config.h> pjsip_cfg()->endpt.allow_port_in_fromto_hdr = PJ_TRUE;
- via compile time, by declaring this in your <pj/config_site.h> file:
#define PJSIP_ALLOW_PORT_IN_FROMTO_HDR 1
Note: See
TracTickets for help on using
tickets.
(In [3329]) Closed #1141: Compile and run-time setting to allow printing of port number in URI in To and From header (thanks Marcus Froeschl for the suggestion)