[asterisk-dev] ARI: specifying variables on channel create doesn't work
Marin Odrljin
marin at maxcom.hr
Wed Dec 16 10:42:43 CST 2020
Yes, here is the post log:
POST /ari/channels/create?endpoint=DAHDI%2Fr11%2F339&app=AriStart&originator=1608128036.34 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"}}
I have started also with PRI debugging. When I use originate to DAHDI channel I can see ‘Calling Party Subaddress’ but when usinng create/dial I don’t see it.
Originate call PRI debug:
PRI Span: 1 > [6c 06 21 81 31 30 39 39]
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' ]
Create channel / dial PRI debug:
PRI Span: 1 > [6c 06 21 81 31 30 39 39]
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' ]
To me it looks like variables which I set on channel creation are somehow not forwarded to DAHDI channel.
BR, Marin
From: asterisk-dev [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Joshua C. Colp
Sent: Wednesday, December 16, 2020 3:54 PM
To: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com>
Subject: Re: [asterisk-dev] ARI: specifying variables on channel create doesn't work
On Wed, Dec 16, 2020 at 10:49 AM Marin Odrljin <marin at maxcom.hr <mailto:marin at maxcom.hr> > wrote:
Hi Joshua,
I have tried it now, variables are successfully set on channel with create channel POST. I can read them from channel afterwards. I have tried it with all 4 variables + some new dummy vars. All of them are set fine.
Probably issue occurs somewhere later when making dial (POST /channels/{channelId}/dial).
Are you specifying an originator?
--
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com <http://www.sangoma.com> and www.asterisk.org <http://www.asterisk.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20201216/d59f84b2/attachment-0001.html>
More information about the asterisk-dev
mailing list