[asterisk-bugs] [JIRA] (ASTERISK-30224) Outbound proxy 'Route:' doubled in OPTIONS

Igor Goncharovsky (JIRA) noreply at issues.asterisk.org
Mon Sep 12 22:59:09 CDT 2022


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

Igor Goncharovsky commented on ASTERISK-30224:
----------------------------------------------

As described at https://wiki.asterisk.org/wiki/display/AST/PJSIP+with+Proxies:
- "aor: In order for Asterisk to send OPTIONS requests to the ITSP via the proxy, the outbound_proxy parameter needs to be added here as well.  All other aor parameters, including contact should be left just as though there were no proxy" - so I think aor outbound_proxy option should be independent from endpoint settings
- "registration:  Same as aor.  The client and server URIs should remain as they were for the non-proxy situation and the outbound_proxy parameter should be added" - behaviour of outbound_proxy for aor and registration should be the same. Currently registaration outbound_proxy setting does not depend on endpoint setting.

I am goint to look deeper and create patch, but maybe later (I do not work before with pjsip code). Currently I see that:
- Endpoint proxy set in create_out_of_dialog_request() (using ast_sip_set_outbound_proxy())
- When OPTIONS sent proxy first time set in ast_sip_create_request() that calls create_out_of_dialog_request(). Secont time - by calling ast_sip_set_outbound_proxy() directly
- Registrations in res_pjsip_outbound_registration.c do not use ast_sip_create_request() and duplicate code from ast_sip_set_outbound_proxy() to handle proxy addition.


> Outbound proxy 'Route:' doubled in OPTIONS
> ------------------------------------------
>
>                 Key: ASTERISK-30224
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30224
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 16.28.0
>            Reporter: Igor Goncharovsky
>            Assignee: Igor Goncharovsky
>            Severity: Major
>
> In case of specifying outbound proxy in both endpoint and aor OPTION requset sent with both options used in Route: headers (first from endpoint and second from aor):
> Call-ID: 9fc278ae-f1d8-4fe7-94e5-7b9919253a75
> CSeq: 55705 OPTIONS
> Route: <sip:demo.iqtek.ru:7000;lr>
> Route: <sip:78.24.220.116:7000;lr>
> Max-Forwards: 70
> Content-Length:  0



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



More information about the asterisk-bugs mailing list