[asterisk-bugs] [JIRA] (ASTERISK-25453) user_agent not set in Server header

Ross Beer (JIRA) noreply at issues.asterisk.org
Mon Nov 16 09:05:33 CST 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ross Beer updated ASTERISK-25453:
---------------------------------

    Assignee: Rusty Newton  (was: Ross Beer)
      Status: Triage  (was: Waiting for Feedback)

In the latest GIT version the issue still persists, the below example is on a NOTIFY:


{noformat}
NOTIFY sip:<USERNAME>@<IP Address>:1051 SIP/2.0
Via: SIP/2.0/UDP <IP Address>:5060;rport;branch=z9hG4bKPjdeb29466-1ac7-4132-8dc3-b8a91573ab8f
From: <sip:asterisk@<IP Address>>;tag=fed89603-f378-4bc0-b1c7-8d2ac4409062
To: <sip:<USERNAME>@<IP Address>>
Contact: <sip:asterisk@<IP Address>:5060>
Call-ID: b93c1182-8332-4da5-88c8-a3854097e372
CSeq: 44143 NOTIFY
Subscription-State: terminated
Event: message-summary
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: Asterisk PBX GIT-13-4f43b85M
Content-Type: application/simple-message-summary
Content-Length: 48

Messages-Waiting: no
Voice-Message: 0/0 (0/0)
{noformat}

Its also worth noting that the contact and from are not using the configured custom value.

> user_agent not set in Server header
> -----------------------------------
>
>                 Key: ASTERISK-25453
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25453
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.6.0
>            Reporter: Ross Beer
>            Assignee: Rusty Newton
>            Severity: Minor
>
> user_agent in pjsip.conf is not propagating to the 'server' header in responses.
> {noformat}
> [global]
> user_agent=Custom User Agent
> {noformat}
> {noformat}
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP <IPADDRESS>:5060;rport=5060;received=<IPADDRESS>;branch=z9hG4bK1ed3e105
> Call-ID: 3a30dacd2da58a420e184dda0d8b223f@<IPADDRESS>:5060
> From: "Withheld" <sip:Withheld@<IPADDRESS>>;tag=as58d74c06
> To: <sip:37.157.54.198>;tag=z9hG4bK1ed3e105
> CSeq: 102 OPTIONS
> Accept: application/sdp, application/dialog-info+xml, application/pidf+xml, application/dialog-info+xml, application/xpidf+xml, application/cpim-pidf+xml, application/simple-message-summary, application/pidf+xml, application/simple-message-summary, message/sipfrag;version=2.0
> Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REFER, MESSAGE, REGISTER
> Supported: 100rel, timer, replaces, norefersub
> Accept-Encoding: text/plain
> Accept-Language: en
> Server: Asterisk PBX 13.6.0-rc3
> Content-Length:  0
> {noformat}
> The value is correctly being used in user-agent headers.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list