[asterisk-bugs] [JIRA] (ASTERISK-29176) Private REDIRECTING party ID data not used in PJSIP headers

Kris Shaw (JIRA) noreply at issues.asterisk.org
Tue Nov 24 17:00:16 CST 2020


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

Kris Shaw commented on ASTERISK-29176:
--------------------------------------

In my test setup, extensions 1000 and 1001 are defined as PJSIP endpoints with:

{code}send_diversion = yes
send_history_info = yes{code}

The following dialplan is used to setup basic redirecting data

{code}exten = 1002,1,Verbose(0,Test extension)
 same => n,Set(REDIRECTING(from-num,i)=1234)
 same => n,Set(REDIRECTING(priv-from-num,i)=4567)
 same => n,Set(REDIRECTING(reason,i)=cfu)
 same => n,Set(REDIRECTING(count,i)=1)
 same => n,Dial(PJSIP/1001)
 same => n,Hangup{code}

The expected result is that the diversion/history headers sent to 1001 should contain 4567 when 1000 dials 1002, but instead they contain 1234.

> Private REDIRECTING party ID data not used in PJSIP headers
> -----------------------------------------------------------
>
>                 Key: ASTERISK-29176
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29176
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 16.15.0
>            Reporter: Kris Shaw
>            Assignee: Kris Shaw
>            Severity: Minor
>         Attachments: diversion-sip-trace.txt
>
>
> Unlike in chan_sip (and sig_pri), chan_pjsip does not take into account the priv* representations of the orig/from/to redirecting party IDs. When constructing the diversion and history headers via res_pjsip_diversion, the priv* values aren't merged with the standard party IDs to get the effective party IDs.
> Therefore, these headers may not be set as you might expect them to be from the documentation.



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



More information about the asterisk-bugs mailing list