Hi
I am developing a ARI application in PHP ARI, i would like to send a event with user defined data (array). on receiving this event with data (after validating the userdata) channel originates a call on channel.
But i was able to originate the calls but not able to receive user data. Asterisk is crashing when i have executed the application below is the code
require_once "./vendor/autoload.php";
try {
$conn = new phpari("asterleaf"); //create new object
$event = new events($conn);
$valiables = array("var1" => "cool");
$response = $event->event_generate('justName', "asterleaf", "141", NULL, 'PJSIP/6001', "leosip", $valiables);
echo json_encode($response);
exit(0);
} catch (Exception $e) {
echo json_encode(array('status' => $e->getCode(), 'message' => $e->getMessage()));
}
Asterisk Version : 16
below is asterisk log
[Nov 1 08:54:20] ERROR[2815] loader.c: cdr_pgsql declined to load.
[Nov 1 08:54:20] ERROR[2815] loader.c: cdr_tds declined to load.
[Nov 1 08:54:20] ERROR[2815] loader.c: cdr_sqlite3_custom declined to load.
[Nov 1 08:54:20] ERROR[2815] loader.c: cel_sqlite3_custom declined to load.
[Nov 1 08:54:20] ERROR[2815] loader.c: cdr_syslog declined to load.
[Nov 1 08:54:20] ERROR[2815] loader.c: cel_tds declined to load.
[Nov 1 08:54:20] ERROR[2815] loader.c: res_hep_rtcp declined to load.
[Nov 1 08:54:20] ERROR[2815] loader.c: res_hep_pjsip declined to load.
[Nov 1 08:54:57] ERROR[2927] res_http_websocket.c: Error reading from web socket: Connection reset by peer
[Nov 1 08:54:57] WARNING[2927] ari/ari_websockets.c: WebSocket read error: Connection reset by peer
dial plan
[internal]
exten => 6100,1,NoOp()
same => n,Answer(),
same => n,Stasis(asterleaf)
same => n,Hangup()
Any one have similar issue, can any one suggest any advice
Nov 1 08:04:03 asterleaf kernel: [ 1092.400263] asterisk[2041]: segfault at 0 i p 00007fd4e5badfb3 sp 00007fd522e12700 error 4 in res_stasis.so[7fd4e5ba4000+1d0 00]