Author Topic: External Audio - Swapping between little and big Endian  (Read 17 times)

jamie

  • Newbie
  • *
  • Posts: 37
    • View Profile
External Audio - Swapping between little and big Endian
« on: December 05, 2018, 10:27:06 PM »
Hi,

Is there any reason why audio format when using, for example:

external/record//var/digit/ivr/src/yate/scripts/stream.php

could vary from slin little endian to big endian ?

My code:

Code: [Select]
    $m = new Yate("chan.masquerade");

    $m->params["message"] = "call.execute";
    $m->params["id"] = $channel_id;
    $m->params["callto"] = 'conf/' . $stream_id;
    $m->params["notify"] = $channel_id;
    $m->params["lonely"] = true;
    $m->params["maxusers"] = 1;
    $m->params["smart"] = true;

    $m->params["utility"] = false;

    $m->params["record"] = 'external/record//var/digit/ivr/src/yate/scripts/stream.php';

    // set this so that script can play warnings in conference
    $m->params["recordwarn"] = "-";
    $m->params["speakers"] = true;


    $m->params["interval"] = 3000;
    $m->params["waitlock"] = -200;
    $m->Dispatch();

Always within the same call, but the above conference could be destroyed and restarted.

Thank you,
Regards
Jamie
« Last Edit: December 05, 2018, 10:38:49 PM by jamie »