[Freeswitch-users] ESL: No events fired when there is error on submitted API command, like originate sofia to non-existent gateway

Anton VG anton.vazir at gmail.com
Sat May 14 20:09:40 MSD 2011


I'm trying to catch an error, in case I would dial wrong (non existent) gateway

I'm running ESL outbound listener, subscribing to all events,
if I do proper bgapi 'originate' - there are normal events flow, and I
can track what is happening.
But if issue originate to a gateway, which is not configured - there
is simply no any events fired. I have an error on FS console

2011-05-14 20:58:13.072927 [ERR] mod_sofia.c:4044 Invalid Gateway
following by
2011-05-14 20:58:13.072927 [ERR] switch_ivr_originate.c:2447 Cannot
create outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]

But HOW to catch the given in ESL?

Trying trick like checking for UUID exist or bgapi job ID - all unsuccessfull.

sofia.c seems just does not have event code for that cases

if (profile_name && !profile_found) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "No Such
Profile '%s'\n", profile_name);
>status = SWITCH_STATUS_FALSE;
}

Any clue?



More information about the FreeSWITCH-users mailing list