[OpenSIPS-Users] Call Center error
Prathibha B
prathibhab.tvm at gmail.com
Sat Apr 20 15:21:45 UTC 2024
when I run
opensips-cli -x mi cc_list_calls
{
"Calls": [
{
"id": "219.3",
"Ref": 2,
"State": "queued",
"Call Time": 187,
"Flow": "112"
},
{
"id": "219.2",
"Ref": 2,
"State": "queued",
"Call Time": 187,
"Flow": "112"
},
{
"id": "219.1",
"Ref": 2,
"State": "queued",
"Call Time": 758,
"Flow": "112"
},
{
"id": "219.0",
"Ref": 2,
"State": "queued",
"Call Time": 758,
"Flow": "112"
}
]
}
opensips-cli -x mi cc_list_agents
{
"Agents": [
{
"id": "101003",
"Ref": 0,
"Loged in": "YES",
"State": "wrapup",
"Wrapup-ends": 16
},
{
"id": "101002",
"Ref": 0,
"Loged in": "YES",
"State": "wrapup",
"Wrapup-ends": 27
},
{
"id": "101001",
"Ref": 0,
"Loged in": "YES",
"State": "wrapup",
"Wrapup-ends": 29
}
]
}
On Sat, 20 Apr 2024 at 20:42, Prathibha B <prathibhab.tvm at gmail.com> wrote:
> A non stop music is getting played but the call is not getting redirected
> to the call center agent.
>
> On Sat, 20 Apr 2024 at 14:17, Prathibha B <prathibhab.tvm at gmail.com>
> wrote:
>
>> I am getting 401 Unauthorized error. How to resolve this issue?
>>
>> On Fri, 19 Apr 2024 at 19:13, Prathibha B <prathibhab.tvm at gmail.com>
>> wrote:
>>
>>> Ok.
>>>
>>> Sent from Outlook for Android <https://aka.ms/AAb9ysg>
>>> ------------------------------
>>> *From:* Users <users-bounces at lists.opensips.org> on behalf of Brett
>>> Nemeroff <brett at nemeroff.com>
>>> *Sent:* Friday, April 19, 2024 7:08:51 PM
>>> *To:* OpenSIPS users mailling list <users at lists.opensips.org>
>>> *Subject:* Re: [OpenSIPS-Users] Call Center error
>>>
>>> I don’t know the details, but I’d guess that because you have no agents
>>> logged in your handle call isn’t properly rewriting the URI. It may be
>>> useful to check the return status and log it from cc_handle_call. That may
>>> give you some insight on at least this stage of the call processing.
>>>
>>> -Brett
>>>
>>>
>>> On Fri, Apr 19, 2024 at 6:09 AM Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> or freeswitch as the media server.
>>>
>>> On Fri, 19 Apr 2024 at 14:45, Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> Can someone in this group help me with setting up a call center using
>>> opensips as the proxy server and asterisk as media server?
>>>
>>> On Fri, 19 Apr 2024 at 10:04, Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> I am getting the error "Cannot handle call"
>>>
>>> On Thu, 11 Apr 2024 at 16:16, Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> I changed the message_queue uri in cc_flows table to sip:112 at bp.erss.in.
>>> Now getting the following errors in syslog:
>>>
>>> ERROR:nathelper:fix_nated_contact_f: SCRIPT BUG - second attempt to
>>> change URI Contact
>>> ERROR:nathelper:fix_nated_contact_f: SCRIPT BUG - second attempt to
>>> change URI Contact
>>> ERROR:tm:_reply_light: failed to generate 408 reply when a final 407 was
>>> sent out
>>> ERROR:b2b_entities:_b2b_send_reply: failed to send reply with tm
>>> ERROR:b2b_logic:_b2b_handle_reply: Sending reply failed - 408,
>>> [B2B.394.162.1712831164.913185781]
>>>
>>> On Thu, 11 Apr 2024 at 15:33, Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> when I run opensips-cli -x mi cc_list_agents
>>> {
>>> "Agents": [
>>> {
>>> "id": "101002",
>>> "Ref": 0,
>>> "Loged in": "NO"
>>> },
>>> {
>>> "id": "101001",
>>> "Ref": 0,
>>> "Loged in": "NO"
>>> }
>>> ]
>>> }
>>>
>>> I've logged in 101001 and 101002 in the browser. But the Loged in status
>>> is No for both users.
>>>
>>> On Thu, 11 Apr 2024 at 15:10, Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> Cahnged it to $tU, Still getting error.
>>>
>>> On Thu, 11 Apr 2024 at 15:09, Alain Bieuzent <alain.bieuzent at free.fr>
>>> wrote:
>>>
>>> Hi,
>>>
>>>
>>>
>>> Something wrong about that part for me : ($(tU) == "112")
>>>
>>> Should be : ($tU == "112")
>>>
>>>
>>>
>>> Regards
>>>
>>>
>>>
>>> *De : *Users <users-bounces at lists.opensips.org> au nom de Prathibha B <
>>> prathibhab.tvm at gmail.com>
>>> *Répondre à : *OpenSIPS users mailling list <users at lists.opensips.org>
>>> *Date : *jeudi 11 avril 2024 à 11:03
>>> *À : *OpenSIPS users mailling list <users at lists.opensips.org>
>>> *Objet : *Re: [OpenSIPS-Users] Call Center error
>>>
>>>
>>>
>>> bp.erss.in - asterisk
>>>
>>> bp.erss.in:1443 - opensips
>>>
>>>
>>>
>>> On Thu, 11 Apr 2024 at 14:29, Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> *I've created the entries in cc_agents and cc_flows table.*
>>>
>>>
>>>
>>> *cc_agents table*
>>>
>>>
>>> +----+---------+----------------------------+----------+---------------+-------------------+---------+-----------------+-------------+
>>> | id | agentid | location | logstate | msrp_location |
>>> msrp_max_sessions | skills | wrapup_end_time | wrapup_time |
>>>
>>> +----+---------+----------------------------+----------+---------------+-------------------+---------+-----------------+-------------+
>>> | 8 | 101001 | sip:101001 at bp.erss.in:1443 | 0 | NULL
>>> | 4 | support | 0 | 0 |
>>> | 9 | 101002 | sip:101002 at bp.erss.in:1443 | 0 | NULL
>>> | 4 | support | 0 | 0 |
>>>
>>> +----+---------+----------------------------+----------+---------------+-------------------+---------+-----------------+-------------+
>>>
>>>
>>>
>>> *cc_flows table*
>>>
>>>
>>> +----+---------+----------+---------+------------+-----------------+-------------------+----------------------+-------------------+---------------------+-----------------+----------------+--------------------+-----------------+
>>> | id | flowid | priority | skill | prependcid | max_wrapup_time |
>>> dissuading_hangup | dissuading_onhold_th | dissuading_ewt_th |
>>> dissuading_qsize_th | message_welcome | message_queue | message_dissuading
>>> | message_flow_id |
>>>
>>> +----+---------+----------+---------+------------+-----------------+-------------------+----------------------+-------------------+---------------------+-----------------+----------------+--------------------+-----------------+
>>> | 1 | support | 256 | support | NULL | 0 |
>>> 0 | 0 | 0 |
>>> 0 | | 112 at bp.erss.in | NULL | NULL
>>> |
>>>
>>> +----+---------+----------+---------+------------+-----------------+-------------------+----------------------+-------------------+---------------------+-----------------+----------------+--------------------+-----------------+
>>>
>>>
>>>
>>> On Thu, 11 Apr 2024 at 14:27, Prathibha B <prathibhab.tvm at gmail.com>
>>> wrote:
>>>
>>> Getting the following error in call center module
>>>
>>>
>>>
>>> ERROR:call_center:set_call_leg: failed to init new b2bua call (empty ID
>>> received)
>>> Apr 11 14:06:28 etg-virtual-machine /usr/sbin/opensips[1249949]:
>>> ERROR:call_center:w_handle_call: failed to set new destination for call
>>>
>>>
>>>
>>> Call center code in opensips.cfg:
>>>
>>>
>>>
>>> if (is_method("INVITE") and !has_totag() and ($(tU) == "112") ) {
>>> if (!cc_handle_call("support")) {
>>> send_reply(403,"Cannot handle call");
>>> exit;
>>> }
>>>
>>> }
>>>
>>>
>>>
>>> --
>>>
>>> Regards,
>>>
>>> B.Prathibha
>>>
>>>
>>>
>>>
>>> --
>>>
>>> Regards,
>>>
>>> B.Prathibha
>>>
>>>
>>>
>>>
>>> --
>>>
>>> Regards,
>>>
>>> B.Prathibha
>>>
>>> _______________________________________________ Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>>
>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>>
>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>>
>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>>
>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>>
>>>
>>>
>>> --
>>> Regards,
>>> B.Prathibha
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>> --
>> Regards,
>> B.Prathibha
>>
>
>
> --
> Regards,
> B.Prathibha
>
--
Regards,
B.Prathibha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240420/3aad9b87/attachment-0001.html>
More information about the Users
mailing list