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

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Tue Dec 22 06:41:18 CST 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua C. Colp updated ASTERISK-29214:
--------------------------------------

    Status: Open  (was: Triage)

> 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, Resources/res_ari_channels
>    Affects Versions: 16.15.0
>         Environment: Debian 8/9/10
>            Reporter: Marin Odrljin
>            Assignee: Unassigned
>            Severity: Minor
>         Attachments: debug_log_29214, debug_log_29214_new
>
>
> 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