mgcp: Return 0 in case transcoding is disabled.
In case transcoding is disabled no error has happened, return a zero. This is fixing starting the nat without transcoding.
This commit is contained in:
parent
cd8e810302
commit
cf1c8777a4
|
@ -955,7 +955,7 @@ static void delete_transcoder(struct mgcp_endpoint *endp)
|
|||
int mgcp_reset_transcoder(struct mgcp_config *cfg)
|
||||
{
|
||||
if (!cfg->transcoder_ip)
|
||||
return -1;
|
||||
return 0;
|
||||
|
||||
static const char mgcp_reset[] = {
|
||||
"RSIP 1 13@mgw MGCP 1.0\r\n"
|
||||
|
|
Loading…
Reference in New Issue