[asterisk-app-dev] Setting a channel variable
Nitesh Bansal
nitesh.bansal at gmail.com
Sat Apr 2 16:02:32 CDT 2016
Hello,
I want to use ARI node client library to initiate a call, i'm using the
sample code
from the ari example 'bridge-move.js', the code is running fine.
https://wiki.asterisk.org/wiki/display/AST/ARI+and+Bridges%3A+Bridge+Operations#ARIandBridges:BridgeOperations-bridge-move.js
But now before initiating the call, I want to be able to add a 'Route'
header in
the outgoing call placed, I'm trying to achieve it by adding a channel
variable, it seems
that it isn't working, I don't see any route header added in the outgoing
INVITE.
This is my code in the originate function:
channel.setChannelVar({variable : "SIPADDHEADER", value : "Route :
nbansal at iptel.org"});
I'm not even sure if this is the right way to define a channel variable.
Any suggestion on how I can get this working.
Thanks,
Nitesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20160402/b9ad5cea/attachment.html>
More information about the asterisk-app-dev
mailing list