[asterisk-bugs] [JIRA] (ASTERISK-29214) ARI: specifying "CALLERID(subaddr)" variables on channel create doesn't work

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Dec 16 12:59:16 CST 2020


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

Asterisk Team commented on ASTERISK-29214:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

> ARI: specifying "CALLERID(subaddr)" variables on channel create doesn't work
> ----------------------------------------------------------------------------
>
>                 Key: ASTERISK-29214
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29214
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi, Resources/res_ari
>    Affects Versions: 16.15.0
>         Environment: Debian 8/9/10
>            Reporter: Marin Odrljin
>
> When originating call (originate: POST /channels) toward DAHDI channels (originate: POST /channels) in order to send caller subaddress I'm setting following variables:
> {code}
> CALLERID(subaddr)=042000111
> CALLERID(subaddr-valid)=1
> CONNECTEDLINE(subaddr)=042000111
> CONNECTEDLINE(subaddr-valid)=1
> {code}
> and this works fine. Subaddress '042000111' is correctly received on the remote ISDN devices.
> With Asterisk 16 we have started to use early bridging and that's why we are using create and dial REST API. We are setting the same variables on channel creation (create: POST /channels/create), but subaddress is not forwarded via DAHDI channel to remote devices. Variables are successfully set on channel with create channel POST, I can read them from channel afterwards.
> Issue is clearly visible in PRI debug where *Calling Party Subaddress* is existing when using originate, but missing when using create/dial.
> *originate:*
> {code}
> ARI debug:
> POST /ari/channels?endpoint=DAHDI%2Fr11%2F339%3A042000222&priority=1&app=AriStart&callerId=%3C1099%3E&timeout=60 HTTP/1.1
> content-type: application/json
> content-length: 149
> host: 127.0.0.1
> connection: close
> authorization: *****
> {"variables":{"CALLERID(subaddr-valid)":"1","CALLERID(subaddr)":"042000111","CONNECTEDLINE(subaddr-valid)":"1","CONNECTEDLINE(subaddr)":"042000111"}}
> -----
> PRI debug:
> PRI Span: 1 > Calling Party Number (len= 8) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> PRI Span: 1 >                                 Presentation: Presentation allowed, User-provided, verified and passed (1)  '1099' ]
> PRI Span: 1 > [6d 0a 80 30 34 32 30 30 30 31 31 31]
> PRI Span: 1 > Calling Party Subaddress (len=12) [ Ext: 1  Type: NSAP (X.213/ISO 8348 AD2) (0)  O: 0  '042000111' ]
> PRI Span: 1 > [70 04 80 33 33 39]
> PRI Span: 1 > Called Party Number (len= 6) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '339' ]
> PRI Span: 1 > [71 0a 80 30 34 32 30 30 30 32 32 32]
> PRI Span: 1 > Called Party Subaddress (len=12) [ Ext: 1  Type: NSAP (X.213/ISO 8348 AD2) (0)  O: 0  '042000222' ]
> {code}
> *create / dial:*
> {code}
> ARI debug:
> POST /ari/channels/create?endpoint=DAHDI%2Fr11%2F339%3A042000222&app=AriStart HTTP/1.1
> content-type: application/json
> content-length: 172
> host: 127.0.0.1
> connection: close
> authorization: *****
> {"variables":{"CALLERID(subaddr-valid)":"1","CALLERID(subaddr)":"042000111","CALLERID(num)":"1099","CONNECTEDLINE(subaddr-valid)":"1","CONNECTEDLINE(subaddr)":"042000111"}}
> POST /ari/channels/1608140359.118/dial?caller=1608140358.117&timeout=0 HTTP/1.1
> host: 127.0.0.1
> connection: close
> authorization: *****
> -----
> PRI debug:
> PRI Span: 1 > Calling Party Number (len= 8) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> PRI Span: 1 >                                 Presentation: Presentation allowed, User-provided, verified and passed (1)  '1099' ]
> PRI Span: 1 > [70 04 80 33 33 39]
> PRI Span: 1 > Called Party Number (len= 6) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '339' ]
> PRI Span: 1 > [71 0a 80 30 34 32 30 30 30 32 32 32]
> PRI Span: 1 > Called Party Subaddress (len=12) [ Ext: 1  Type: NSAP (X.213/ISO 8348 AD2) (0)  O: 0  '042000222' ]
> {code}



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



More information about the asterisk-bugs mailing list