On Thu, Dec 18, 2014 at 2:48 AM, Nir Simionovich <nir.simionov...@gmail.com> wrote: > One more thing - per your recommendations, I'm trying to re-implement > app_dial using ARI. > > Now, if I read you all right, the process should be: > > 1. Get a call into Asterisk from an external phone > 2. Create a new bridge > 3. Put the call into the newly created bridge > 4. Originate a new call > 5. Put the new call into the existing bridge > > So, 1,2,3 work just fine - then you get to 4. According to the docs, I can > originate a channel with only the endpoint defined. > However, that doesn't seem to work: > > T 178.62.127.227:44938 -> 178.62.127.227:8088 [AP] > POST /ari/channels HTTP/1.1. > Authorization: Basic dGVzdDp0ZXN0. > Host: 178.62.127.227:8088. > Content-Length: 85. > Accept: application/json. > Content-Type: application/json. > . > {"endpoint":"Local\/1000@demo","channelId":"participant","variables":{"var1":"var1"}} > > T 178.62.127.227:8088 -> 178.62.127.227:44938 [AP] > HTTP/1.1 400 Bad Request. > Server: Asterisk/SVN-trunk-r429683M. > Date: Thu, 18 Dec 2014 07:41:59 GMT. > Cache-Control: no-cache, no-store. > Content-type: application/json. > Content-Length: 61. > . > > > T 178.62.127.227:8088 -> 178.62.127.227:44938 [AP] > { > "message": "Application or extension must be specified" > } > > Am I missing something here? or is this a bug? > You need to also pass the app parameter in this case. So Asterisk knows where to send events.
-- Paul Belanger | PolyBeacon, Inc. Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev