[OpenSIPS-Users] Load Balancer Probing Question

2024-04-11 Thread Alexander Perkins
Hi.  I have an interesting issue.  We have two OpenSIPS servers with load
balancer (with two different group IDs in the lb table) and we have probing
set correctly and we are using the event, E_LOAD_BALANCER_STATUS, to
capture changes to servers that were probed.  But we noticed that we have
the same server URI listed in the lb table, but with two different group
IDs, if one of the OpenSIPS servers probes that URI and it does not return,
then lb disables both groups.  I'd expect it to only disable one group.

My question is how can we tell the LB module to disable the IP, but also
look for the groupID.  For example, I have a printout of lb_list below.

"uri": "sip:1.2.3.4:5060", "id": 27, "group": 12, "enabled": "no",
"auto-reenable": "on", "Resources": [ { "name": "vz12", "max": 600, "load":
0 } ], "attrs": "0"

AND
{ "uri": "sip:1.2.3.4:5060", "id": 29, "group": 13, "enabled": "no",
"auto-reenable": "on", "Resources": [ { "name": "vz13", "max": 600, "load":
0 } ], "attrs": "0" },

Thank you,
Alex
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] $Ri Variable

2024-04-11 Thread Alexander Perkins
Hello!  I am trying to get the IP of the interface the request was received
on, but I think I am doing something wrong.  When I looked at the Core
Variables, I found $Ri.  So, I added $Ri to the cfg file, but now I am
getting:

unknown script var $Ri, maybe a 'loadmodule' statement is missing?

Which module am I missing?  Or, am I even referencing the correct variable?

Thank you,
Alex
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] another question on sip format's.

2024-04-11 Thread Ben Newlin
As far as I can tell though all the examples are valid for the userinfo portion 
of the URI.

SIP-URI  =  sip: [ userinfo ] hostport
uri-parameters [ headers ]
SIPS-URI =  sips: [ userinfo ] hostport
uri-parameters [ headers ]
userinfo =  ( user / telephone-subscriber ) [ ":" password ] "@"
user =  1*( unreserved / escaped / user-unreserved )
user-unreserved  =  "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"
password =  *( unreserved / escaped /
"&" / "=" / "+" / "$" / "," )

As far as I know, user parameters of this type aren’t explicitly used or 
defined by RFC 3261 for SIP URIs; they really come from tel URIs [1]. But their 
use in SIP is widespread and defined in various other RFCs as well.

[1] - https://datatracker.ietf.org/doc/html/rfc3966

Ben Newlin

From: Users  on behalf of Bogdan-Andrei Iancu 

Date: Thursday, April 11, 2024 at 10:26 AM
To: OpenSIPS users mailling list , Johan De Clercq 

Subject: Re: [OpenSIPS-Users] another question on sip format's.
 EXTERNAL EMAIL - Please use caution with links and attachments


According to the grammar, the URI params are ONLY after the domain part (see 
https://www.ietf.org/rfc/rfc3261.html 
page 222)

SIP-URI  =  "sip:" [ userinfo ] hostport

uri-parameters [ headers ]

SIPS-URI =  "sips:" [ userinfo ] hostport

uri-parameters [ headers ]



Regards,

Bogdan-Andrei Iancu



OpenSIPS Founder and Developer

  https://www.opensips-solutions.com

  https://www.siphub.com
On 11.04.2024 15:23, Johan De Clercq wrote:
Can param's be added anywhere in a user part.

e.g.
sip:0123456789;gw=case106@1.2.3.4 //this is for sure 
valid.
sip:gw=case107;0123456789@1.2.3.4
sip:gw=case108;0123456789;gw=case108@1.2.3.4

the fist one is for sure valid, but what about the other two ?

BR,



___

Users mailing list

Users@lists.opensips.org

http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] another question on sip format's.

2024-04-11 Thread Bogdan-Andrei Iancu
According to the grammar, the URI params are ONLY after the domain part 
(see https://www.ietf.org/rfc/rfc3261.html page 222)


SIP-URI  =  "sip:" [ userinfo ] hostport
uri-parameters [ headers ]
SIPS-URI =  "sips:" [ userinfo ] hostport
uri-parameters [ headers ]

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 11.04.2024 15:23, Johan De Clercq wrote:

Can param's be added anywhere in a user part.

e.g.
sip:0123456789;gw=case106@1.2.3.4 //this is for sure valid.
sip:gw=case107;0123456789@1.2.3.4 
sip:gw=case108;0123456789;gw=case108@1.2.3.4

the fist one is for sure valid, but what about the other two ?

BR,

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] another question on sip format's.

2024-04-11 Thread Johan De Clercq
Can param's be added anywhere in a user part.

e.g.
sip:0123456789;gw=case106@1.2.3.4 //this is for sure valid.
sip:gw=case107;0123456789@1.2.3.4
sip:gw=case108;0123456789;gw=case108@1.2.3.4

the fist one is for sure valid, but what about the other two ?

BR,
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Call Center error

2024-04-11 Thread Prathibha B
I changed the message_queue uri in cc_flows table to sip:1...@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  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 
> wrote:
>
>> Cahnged it to $tU, Still getting error.
>>
>> On Thu, 11 Apr 2024 at 15:09, Alain Bieuzent 
>> wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> Something wrong about that part for me : ($(tU) == "112")
>>>
>>> Should be : ($tU == "112")
>>>
>>>
>>>
>>> Regards
>>>
>>>
>>>
>>> *De : *Users  au nom de Prathibha B <
>>> prathibhab@gmail.com>
>>> *Répondre à : *OpenSIPS users mailling list 
>>> *Date : *jeudi 11 avril 2024 à 11:03
>>> *À : *OpenSIPS users mailling list 
>>> *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 
>>> 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:101...@bp.erss.in:1443 |0 | NULL
>>>  | 4 | support |   0 |   0 |
>>> |  9 | 101002  | sip:101...@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 | | 1...@bp.erss.in | NULL   | NULL
>>>|
>>>
>>> ++-+--+-++-+---+--+---+-+-+++-+
>>>
>>>
>>>
>>> On Thu, 11 Apr 2024 at 14:27, Prathibha B 
>>> 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@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> 

Re: [OpenSIPS-Users] Call Center error

2024-04-11 Thread Prathibha B
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  wrote:

> Cahnged it to $tU, Still getting error.
>
> On Thu, 11 Apr 2024 at 15:09, Alain Bieuzent 
> wrote:
>
>> Hi,
>>
>>
>>
>> Something wrong about that part for me : ($(tU) == "112")
>>
>> Should be : ($tU == "112")
>>
>>
>>
>> Regards
>>
>>
>>
>> *De : *Users  au nom de Prathibha B <
>> prathibhab@gmail.com>
>> *Répondre à : *OpenSIPS users mailling list 
>> *Date : *jeudi 11 avril 2024 à 11:03
>> *À : *OpenSIPS users mailling list 
>> *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 
>> 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:101...@bp.erss.in:1443 |0 | NULL  |
>> 4 | support |   0 |   0 |
>> |  9 | 101002  | sip:101...@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 | | 1...@bp.erss.in | NULL   | NULL
>>  |
>>
>> ++-+--+-++-+---+--+---+-+-+++-+
>>
>>
>>
>> On Thu, 11 Apr 2024 at 14:27, Prathibha B 
>> 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@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Regards,
> B.Prathibha
>


-- 
Regards,
B.Prathibha
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Call Center error

2024-04-11 Thread Prathibha B
Cahnged it to $tU, Still getting error.

On Thu, 11 Apr 2024 at 15:09, Alain Bieuzent  wrote:

> Hi,
>
>
>
> Something wrong about that part for me : ($(tU) == "112")
>
> Should be : ($tU == "112")
>
>
>
> Regards
>
>
>
> *De : *Users  au nom de Prathibha B <
> prathibhab@gmail.com>
> *Répondre à : *OpenSIPS users mailling list 
> *Date : *jeudi 11 avril 2024 à 11:03
> *À : *OpenSIPS users mailling list 
> *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 
> 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:101...@bp.erss.in:1443 |0 | NULL  |
> 4 | support |   0 |   0 |
> |  9 | 101002  | sip:101...@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 | | 1...@bp.erss.in | NULL   | NULL
>|
>
> ++-+--+-++-+---+--+---+-+-+++-+
>
>
>
> On Thu, 11 Apr 2024 at 14:27, Prathibha B 
> 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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Regards,
B.Prathibha
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Call Center error

2024-04-11 Thread Prathibha B
Errors in syslog:

 ERROR:core:parse_uri: bad uri, state 0 parsed: <112@> (4) /
<1...@bp.erss.in;cc_pos=0>
(23)
 ERROR:tm:uri2proxy: bad_uri: 1...@bp.erss.in;cc_pos=0
ERROR:b2b_entities:_client_new: while sending request with t_request
ERROR:b2b_logic:b2b_process_scenario_init: failed to create new b2b client
instance
ERROR:call_center:set_call_leg: failed to init new b2bua call (empty ID
received)
ERROR:call_center:w_handle_call: failed to set new destination for call
ERROR:tm:_reply_light: failed to generate 403 reply when a final 408 was
sent out
ERROR:signaling:sig_send_reply_mod: failed to send reply with tm module

On Thu, 11 Apr 2024 at 14:30, Prathibha B  wrote:

> bp.erss.in - asterisk
> bp.erss.in:1443 - opensips
>
> On Thu, 11 Apr 2024 at 14:29, Prathibha B 
> 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:101...@bp.erss.in:1443 |0 | NULL  |
>> 4 | support |   0 |   0 |
>> |  9 | 101002  | sip:101...@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 | | 1...@bp.erss.in | NULL   | NULL
>>  |
>>
>> ++-+--+-++-+---+--+---+-+-+++-+
>>
>> On Thu, 11 Apr 2024 at 14:27, Prathibha B 
>> 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
>


-- 
Regards,
B.Prathibha
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Call Center error

2024-04-11 Thread Alain Bieuzent
Hi,

 

Something wrong about that part for me : ($(tU) == "112")

Should be : ($tU == "112")

 

Regards

 

De : Users  au nom de Prathibha B 

Répondre à : OpenSIPS users mailling list 
Date : jeudi 11 avril 2024 à 11:03
À : OpenSIPS users mailling list 
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  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:101...@bp.erss.in:1443 |0 | NULL  |
 4 | support |   0 |   0 |
|  9 | 101002  | sip:101...@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 |   
  | 1...@bp.erss.in | NULL   | NULL|
++-+--+-++-+---+--+---+-+-+++-+

 

On Thu, 11 Apr 2024 at 14:27, Prathibha B  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@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Call Center error

2024-04-11 Thread Prathibha B
bp.erss.in - asterisk
bp.erss.in:1443 - opensips

On Thu, 11 Apr 2024 at 14:29, Prathibha B  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:101...@bp.erss.in:1443 |0 | NULL  |
> 4 | support |   0 |   0 |
> |  9 | 101002  | sip:101...@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 | | 1...@bp.erss.in | NULL   | NULL
>|
>
> ++-+--+-++-+---+--+---+-+-+++-+
>
> On Thu, 11 Apr 2024 at 14:27, Prathibha B 
> 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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Call Center error

2024-04-11 Thread Prathibha B
*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:101...@bp.erss.in:1443 |0 | NULL  |
  4 | support |   0 |   0 |
|  9 | 101002  | sip:101...@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 | | 1...@bp.erss.in | NULL   | NULL
 |
++-+--+-++-+---+--+---+-+-+++-+

On Thu, 11 Apr 2024 at 14:27, Prathibha B  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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Call Center error

2024-04-11 Thread Prathibha B
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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Message buffer formatting

2024-04-11 Thread Bogdan-Andrei Iancu
It sounds like something particular to the way you do the monitoring of 
the logs.


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 10.04.2024 19:11, Robert Dyck wrote:

I spoke too soon. When I run opensips in debug mode on the terminal the
formatting looks good. If I monitor the log facility the $mb dump is not
formatted. Perhaps this is normal?

On Tuesday, April 9, 2024 11:47:05 P.M. PDT Bogdan-Andrei Iancu wrote:

There is no formatting added, maybe the diff comes for the actual
logging. What are the 2 versions you tested ?

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com

On 10.04.2024 00:21, Robert Dyck wrote:

In the past I would insert xlog with $mb into my script for debugging
purposes. Now I find that the message buffer output is not being
formatted.


Instead of


Message Buffer

REGISTER sip:192.168.1.2 SIP/2.0

Via: SIP/2.0/UDP
192.168.1.4:5070;branch=z9hG4bKce021e1d6a292d1504d0ff89e60c9ba;rport


I get


Message Buffer#012 REGISTER sip:192.168.1.2 SIP/2.0#015#012Via:
SIP/2.0/UDP 192.168.1.4:5070;branch=z
9hG4bKce021e1d6a292d1504d0ff89e60c9ba;rport#015#012


Instead of LF I get #012

Instead of CR I get #015


What may have caused this change and how can I restore the old behaviour?


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users







___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users