[asterisk-bugs] [JIRA] (ASTERISK-27696) PJSIP accepts UDP register for TCP endpoint
Joshua Colp (JIRA)
noreply at issues.asterisk.org
Mon Mar 12 08:06:13 CDT 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-27696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua Colp updated ASTERISK-27696:
-----------------------------------
Assignee: snuffy
Status: Waiting for Feedback (was: Triage)
What is the actual configuration for this?
A difference between chan_sip and chan_pjsip is that the "transport" option doesn't restrict reception of messages. Instead it explicitly uses the given transport for outgoing messages, which can result in behavior like this - specifically OPTIONS failing because it can't be sent using TCP and the contact becoming unreachable.
> PJSIP accepts UDP register for TCP endpoint
> -------------------------------------------
>
> Key: ASTERISK-27696
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27696
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip
> Affects Versions: GIT
> Environment: Debian 9
> Compile options
> DONT_OPTIMIZE
> BETTER_BACKTRACES
> Reporter: snuffy
> Assignee: snuffy
> Severity: Minor
> Labels: pjsip
> Attachments: pjsip-accepts-udp-register-for-tcp-endpoint-once.txt
>
>
> *Create an Endpoint with TCP as transport
> * Use dynamic registration
> * Set a phone to use UDP instead to register as endpoint
> First registration attempt as UDP will be accepted by Asterisk with 200 OK
> Asterisk then flags AOR as available, then immediately removes the contact as it is UDP.
> From then on phone gets correct 401 - REFUSED to any further attempts to register / call out.
> Will attach test case shortly
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list