[asterisk-bugs] [JIRA] (ASTERISK-27696) PJSIP accepts UDP register for TCP endpoint

snuffy (JIRA) noreply at issues.asterisk.org
Mon Mar 26 18:49:39 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242835#comment-242835 ] 

snuffy edited comment on ASTERISK-27696 at 3/26/18 6:49 PM:
------------------------------------------------------------

Hello,

My issue was that if the TRANSPORT for the ENDPOINT is TCP.

Asterisk SHOULD NOT reply to its UDP REGISTER with OK on UDP, As seen in the pjsip output instead it should either pretend it didn't get the message or respond with a NOT AUTHORIZED as it does for further REGISTER attempts via UDP.

.



was (Author: snuffy):
Hello,

My issue was that if the TRANSPORT for the ENDPOINT is TCP.

Asterisk SHOULD NOT reply to its REGISTER with OK on UDP, As seen in the pjsip output

.


> 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: Unassigned
>            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