diff --git a/src/modules/mohqueue/doc/mohqueue.xml b/src/modules/mohqueue/doc/mohqueue.xml index 4306c01dd6a..e4c1563c662 100644 --- a/src/modules/mohqueue/doc/mohqueue.xml +++ b/src/modules/mohqueue/doc/mohqueue.xml @@ -21,7 +21,7 @@ - 2013-2017 + 2013-2019 Robert Boisvert, rdbprog@gmail.com diff --git a/src/modules/mohqueue/mohq_common.h b/src/modules/mohqueue/mohq_common.h index ed6adf80447..88fed7fc516 100644 --- a/src/modules/mohqueue/mohq_common.h +++ b/src/modules/mohqueue/mohq_common.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * diff --git a/src/modules/mohqueue/mohq_db.c b/src/modules/mohqueue/mohq_db.c index c7ee82f25e2..3f70b0bf118 100644 --- a/src/modules/mohqueue/mohq_db.c +++ b/src/modules/mohqueue/mohq_db.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * diff --git a/src/modules/mohqueue/mohq_db.h b/src/modules/mohqueue/mohq_db.h index c343601203c..41b0a3f24c4 100644 --- a/src/modules/mohqueue/mohq_db.h +++ b/src/modules/mohqueue/mohq_db.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-15 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * diff --git a/src/modules/mohqueue/mohq_funcs.c b/src/modules/mohqueue/mohq_funcs.c index 96bdb335d0f..384be185d3d 100644 --- a/src/modules/mohqueue/mohq_funcs.c +++ b/src/modules/mohqueue/mohq_funcs.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * @@ -32,7 +32,7 @@ #define ALLOWHDR "Allow: INVITE, ACK, BYE, CANCEL, NOTIFY, PRACK" #define CLENHDR "Content-Length" #define SIPEOL "\r\n" -#define USRAGNT "Kamailio MOH Queue v1.4" +#define USRAGNT "Kamailio MOH Queue v1.6" /********** * local constants @@ -1405,9 +1405,12 @@ static void { call_lst *pcall = (call_lst *)*pcbp->param; +if (pcall->call_state >= CLSTA_INQUEUE) + { return; } +LM_ERR ("invite_cb: INVITE failed for call (%s), code=%x, callstate=%x!\n", + pcall->call_from, ntype, pcall->call_state); if (ntype == TMCB_DESTROY) { pcall->call_hash = pcall->call_label = 0; } -LM_ERR ("invite_cb: INVITE failed for call (%s)!\n", pcall->call_from); delete_call (pcall); return; } @@ -1904,7 +1907,7 @@ for (npos1 = 0; npos1 < pstr->len; npos1++) { /********** * o find non-space - * o search to end, space or comma + * o search to end, space, semicolon or comma * o same size? * o same name? **********/ @@ -1913,7 +1916,8 @@ for (npos1 = 0; npos1 < pstr->len; npos1++) { continue; } for (npos2 = npos1++; npos1 < pstr->len; npos1++) { - if (pstr->s [npos1] == ' ' || pstr->s [npos1] == ',') + if (pstr->s [npos1] == ' ' || pstr->s [npos1] == ';' + || pstr->s [npos1] == ',') { break; } } if (npos1 - npos2 != pext->len) @@ -2238,10 +2242,11 @@ strcpy (&pfile [npos], pcall->pmohq->mohq_mohfile); npos += strlen (&pfile [npos]); str pMOH [1] = {{pfile, npos}}; pv_elem_t *pmodel; -if(pv_parse_format (pMOH, &pmodel)<0) { +if (pv_parse_format (pMOH, &pmodel) < 0) + { LM_ERR("failed to parse pv format string\n"); return 0; -} + } cmd_function fn_stream = bserver ? pmod_data->fn_rtp_stream_s : pmod_data->fn_rtp_stream_c; mohq_debug (pcall->pmohq, "%sStarting RTP link for call (%s)", diff --git a/src/modules/mohqueue/mohq_funcs.h b/src/modules/mohqueue/mohq_funcs.h index e22c88c890f..cc991853062 100644 --- a/src/modules/mohqueue/mohq_funcs.h +++ b/src/modules/mohqueue/mohq_funcs.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * diff --git a/src/modules/mohqueue/mohq_locks.c b/src/modules/mohqueue/mohq_locks.c index f19454faefa..080dd394869 100644 --- a/src/modules/mohqueue/mohq_locks.c +++ b/src/modules/mohqueue/mohq_locks.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * diff --git a/src/modules/mohqueue/mohq_locks.h b/src/modules/mohqueue/mohq_locks.h index 726384eef48..2ae41b7192b 100644 --- a/src/modules/mohqueue/mohq_locks.h +++ b/src/modules/mohqueue/mohq_locks.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * diff --git a/src/modules/mohqueue/mohqueue_mod.c b/src/modules/mohqueue/mohqueue_mod.c index 8dbfb511773..711878a73e2 100644 --- a/src/modules/mohqueue/mohqueue_mod.c +++ b/src/modules/mohqueue/mohqueue_mod.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. * @@ -276,14 +276,14 @@ if (!pconn) if (db_check_table_version (pdb, pconn, &pmod_data->pcfg->db_ctable, MOHQ_CTABLE_VERSION) < 0) { - DB_TABLE_VERSION_ERROR(pmod_data->pcfg->db_ctable); - goto dberror; + DB_TABLE_VERSION_ERROR (pmod_data->pcfg->db_ctable); + goto dberror; } if (db_check_table_version (pdb, pconn, &pmod_data->pcfg->db_qtable, MOHQ_QTABLE_VERSION) < 0) { - DB_TABLE_VERSION_ERROR(pmod_data->pcfg->db_qtable); - goto dberror; + DB_TABLE_VERSION_ERROR (pmod_data->pcfg->db_qtable); + goto dberror; } clear_calls (pconn); update_mohq_lst (pconn); diff --git a/src/modules/mohqueue/mohqueue_mod.h b/src/modules/mohqueue/mohqueue_mod.h index d1c7cd2b368..b783b03f40f 100644 --- a/src/modules/mohqueue/mohqueue_mod.h +++ b/src/modules/mohqueue/mohqueue_mod.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-17 Robert Boisvert + * Copyright (C) 2013-19 Robert Boisvert * * This file is part of the mohqueue module for Kamailio, a free SIP server. *