[asterisk-bugs] [JIRA] (ASTERISK-29214) ARI: specifying "CALLERID(subaddr)" variables on channel create doesn't work
Marin Odrljin (JIRA)
noreply at issues.asterisk.org
Wed Dec 16 12:59:16 CST 2020
Marin Odrljin created ASTERISK-29214:
----------------------------------------
Summary: 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