app: Ask the sip side to create a leg
Create SIP leg and if it is failing release the call
This commit is contained in:
parent
2211c3ba56
commit
997d72e0fe
|
@ -58,8 +58,8 @@ void app_setup(struct app_config *cfg)
|
||||||
|
|
||||||
static void route_to_sip(struct call *call, const char *source, const char *dest)
|
static void route_to_sip(struct call *call, const char *source, const char *dest)
|
||||||
{
|
{
|
||||||
LOGP(DAPP, LOGL_ERROR, "Can not route call(%u) to SIP yet\n", call->id);
|
if (sip_create_remote_leg(&g_app.sip.agent, call, source, dest) != 0)
|
||||||
call->initial->release_call(call->initial);
|
call->initial->release_call(call->initial);
|
||||||
}
|
}
|
||||||
|
|
||||||
void app_route_call(struct call *call, const char *source, const char *dest)
|
void app_route_call(struct call *call, const char *source, const char *dest)
|
||||||
|
|
Loading…
Reference in New Issue