X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=joinpbx.cpp;fp=joinpbx.cpp;h=6440f5871d2a034a6416ce25cc6fbc87a2a8ce12;hp=a98765f9810ef69316a4e2265b842a7b82de0f62;hb=74a7fe54a81bb7e996ea45203bbc8cc0ff6b8dda;hpb=d928442c511fbe7a0d0d0f9e701412b9b494457c diff --git a/joinpbx.cpp b/joinpbx.cpp index a98765f..6440f58 100644 --- a/joinpbx.cpp +++ b/joinpbx.cpp @@ -917,8 +917,7 @@ int JoinPBX::out_setup(unsigned int epoint_id, int message_type, union parameter epoint = new Endpoint(0, j_serial); if (!epoint) FATAL("No memory for Endpoint instance\n"); - if (!(epoint->ep_app = new DEFAULT_ENDPOINT_APP(epoint, 1))) // outgoing - FATAL("No memory for Endpoint Application instance\n"); + epoint->ep_app = new_endpointapp(epoint, 1, EAPP_TYPE_PBX); // outgoing relation->epoint_id = epoint->ep_serial; /* send setup message to new endpoint */ //printf("JOLLY DEBUG: %d\n",join_countrelations(j_serial));