[asterisk-dev] ARI: specifying variables on channel create doesn't work

Joshua C. Colp jcolp at sangoma.com
Wed Dec 16 10:46:41 CST 2020


On Wed, Dec 16, 2020 at 12:43 PM Marin Odrljin <marin at maxcom.hr> wrote:

> 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.
>

When specifying an originator certain things get inherited, and CALLERID
and CONNECTEDLINE are special. It is entirely possible that the passed in
variables are being applied before inheritance, and thus being overwritten.
Not specifying an originator would confirm that.

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20201216/cef016c8/attachment.html>


More information about the asterisk-dev mailing list