Re: [OpenSIPS-Users] Doubt about call center module

2018-08-29 Thread Daniel Zanutti
Got some more info.

*This is the first call that worked fine:*
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: Recebida asterisk - Tentando
entrar na fila fila-1
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:call_center:w_handle_call:
using call flow 0x7fd851022270
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:call_center:w_handle_call:
cid=<"fila-1 5511">
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:call_center:new_cc_call:
created call 0x7fd85104c8b0
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:call_center:print_call_list: [] - 0x7fd85104c8b0
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:call_center:w_handle_call:
avg_call_duration=0.00 queued_calls=0 logedin_agents=1
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:call_center:w_handle_call:
ETA for new call(0x7fd85104c8b0) is 0
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:call_center:cc_call_state_machine: selecting AGENT 0x7fd851022a38 (
1...@plat5.localdomain.com)
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:call_center:cc_call_state_machine: moved to TOAGENT from 0,
out=0x7fd851022a50
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:call_center:w_handle_call:
new destination for call(0x7fd85104c8b0) is
sip:1...@plat5.localdomain.com:5060 (state=3)
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:call_center:set_call_leg:
call 0x7fd85104c8b0 moving to sip:1...@plat5.localdomain.com:5060 , state 3
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:b2b_logic:get_scenario_id_list: scenario id = call center
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:parse_headers:
flags=
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:b2b_logic:udh_to_uri:
user:host:port [fila-1][10.10.10.10][5060]
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:parse_headers:
flags=
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:b2b_logic:b2bl_insert_new:
hash index [205]:
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:b2b_logic:b2bl_insert_new:
id [0]
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:b2b_logic:b2bl_insert_new:
new tuple [0x7fd85104c980]->[205.0]
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:parse_headers:
flags=
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:t_newtran: transaction
on entrance=(nil)
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:parse_headers:
flags=
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:parse_headers:
flags=78
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:t_lookup_request: start
searching: hash=21517, isACK=0
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:matching_3261: RFC3261
transaction matching failed
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:t_lookup_request: no
transaction found
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:run_reqin_callbacks:
trans=0x7fd85104cec0, callback type 1, id 0 entered
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:parse_headers:
flags=
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:_shm_resize:
resize(0) called
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:_reply_light: reply
sent out. buf=0x7fd858dd32c8: SIP/2.0 1..., shmem=0x7fd8510501a0: SIP/2.0 1
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:_reply_light: finished
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:t_ref_cell:
REF_UNSAFE:[0x7fd85104cec0] after is 2
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:b2b_entities:server_new:
new server entity[0x7fd85104cc58]: callid=[
7f0e81024a47462530aeb80b4345ddbc@10.10.10.10:5070] tag=[as5263b362]
param=[205.0] dlg->uas_tran=[0x7fd85104cec0]
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:b2b_logic:b2bl_create_new_entity: new entity type [0]
[0x7fd851050400]->[B2B.94.465.1535569466]
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:b2b_logic:b2b_scenario_parse_uri: URI of type param
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:b2b_logic:b2b_scenario_parse_uri: URI value taken from a parameter [
sip:1...@plat5.localdomain.com:5060]
Aug 29 16:04:27 plat5 /sbin/opensips[24890]:
DBG:b2b_logic:b2b_scenario_parse_uri: URI value = [
sip:1...@plat5.localdomain.com:5060]
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:MD5StringArray: MD5
calculated: e597e6de7f998db0ad2ccad6fec41d4e
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:b2b_entities:generate_tag:
from_tag = e597e6de7f998db0ad2ccad6fec41d4e-7fe2
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:parse_headers:
flags=
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:tm:t_uac: next_hop=<
sip:1...@plat5.localdomain.com:5060>
Aug 29 16:04:27 plat5 /sbin/opensips[24890]: DBG:core:mk_proxy: doing DNS
lookup...

Now, the only agent is in a call.

*This is the second call that had the problem:*
Aug 29 16:04:38 plat5 /sbin/opensips[24890]: Recebida asterisk - Tentando
entrar na fila fila-1
Aug 29 16:04:38 plat5 /sbin/opensips[24890]: DBG:call_center:w_handle_call:
using call flow 0x7fd851022270
Aug 29 16:04:38 plat5 

[OpenSIPS-Users] routing calls to several asterisks

2018-08-29 Thread Dominic
Hi, I was wondering if someone could point me in the right direction (which
module to look at) for what I want to do. I basically have OpenSIPs acting
as a mid-registrar in front of several asterisks. All sip traffic coming
from  a specific customer needs to go to the asterisk server that is
assigned to this customer. I currently use a simple lookup table
(account_code/asterisk_server), in which I lookup the server assigned to
that customer and put the server in $ru before calling t_relay. This is
working at the moment, but I was wondering if there is a smarter way of
doing that.

Any advice is as always, very appreciated.
Dominic
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS Unable to parse msg received from

2018-08-29 Thread Abdul Basit
Hi Team,
I received reply on August 23rd from list Your message to Users awaits
moderator approval
Can the moderator approve this thread?

--
regards,

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


Re: [OpenSIPS-Users] how to increase number of branches in opensips code .

2018-08-29 Thread Sasmita Panda
What you will suggest me .

I have below scenario .

There is 200 Agent , Login through a single opensips server . Opensips
behaves like , Registrar . It saves the contact in DB, and route the call
for that contact .

If all the agents try to take call . Then how I will manage the transaction
limit to be within 30 .


Please make me correct if I am wrong anywhere . May be I am taking this
limit in different sense .

How I will manage , if there will be at-least 50 concurrent calls at a time
.

The machine type where I had installed opensips is a m4.large machine of
AWS . 2 Core , 8GB CPU and Minimum 50GB hard disk .




*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Tue, Aug 28, 2018 at 9:26 PM, Răzvan Crainea  wrote:

> I don't think it is working fine, it's probably just that you don't hit
> the 30 limit. We strongly suggest you to keep an upper limit of 30,
> otherwise you might experience unexpected behavior.
>
> Best regards,
> Răzvan
>
> On 8/20/18 12:37 PM, Sasmita Panda wrote:
>
>> Is there any reason of doing so .
>>
>> I have tried to modify this value to 500 in opensips-1.11 and its working
>> fine for me .
>>
>> Is a limitation of opensips-2.2 .
>>
>> */Thanks & Regards/*
>> /Sasmita Panda/
>> /Senior Network Testing and Software Engineer/
>> /3CLogic , ph:07827611765/
>>
>> On Mon, Aug 20, 2018 at 12:34 PM, Liviu Chircu > > wrote:
>>
>> Hi Sasmita,
>>
>> Currently, it seems that the MAX_BRANCHES is capped at 30. Higher
>> values will prevent OpenSIPS from starting.
>>
>> Best regards,
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com  > >
>>
>> On 14.08.2018 15:10, Sasmita Panda wrote:
>>
>>> I am using opensips-2.2 . I wanted to increase the maximun number
>>> branches per transaction .
>>>
>>> I have changed the config.h file  " #defineMAX_BRANCHES12 " , I
>>> increased that to 250 .
>>> After installing again I am getting error in tm module . Below is
>>> the error .
>>> INFO:tm:mod_init: TM - initializing...
>>> CRITICAL:tm:mod_init: Too many max UACs for UAC branch_bm_t
>>> bitmap: 300
>>> ERROR:core:init_mod: failed to initialize module tm
>>> ERROR:core:main: error while initializing modules
>>> INFO:core:cleanup: cleanup
>>> NOTICE:core:main: Exiting
>>> INFO:core:daemonize: pre-daemon process exiting with -1
>>> What should I change in the module to make this work ? Please
>>> suggest .
>>>
>>> */Thanks & Regards/*
>>> /Sasmita Panda/
>>> /Senior Network Testing and Software Engineer/
>>> /3CLogic , ph:07827611765/
>>>
>>> On Wed, May 23, 2018 at 2:56 PM, Răzvan Crainea
>>> mailto:raz...@opensips.org>> wrote:
>>>
>>> Are you compiling the module separately? Can you double check
>>> you are actually installing the new binary and modules after
>>> compiling?
>>>
>>> Best regards,
>>> Răzvan
>>>
>>> On 05/22/2018 11:59 AM, Sasmita Panda wrote:
>>>
>>> When I am compiling  opensips with the changes I am
>>> getting bellow error .
>>>
>>> opensips: ERROR:core:sr_load_module: could not open module
>>> :
>>> /usr/local/lib64/opensips/modules/db_mysql.so: undefined
>>> symbol: db_new_result
>>>
>>> How I will fix this ?
>>>
>>>
>>> */Thanks & Regards/*
>>> /Sasmita Panda/
>>> /Senior Network Testing and Software Engineer/
>>> /3CLogic , ph:07827611765/
>>>
>>> On Mon, May 21, 2018 at 5:16 PM, Sasmita Panda
>>> mailto:spa...@3clogic.com>
>>> >>
>>> wrote:
>>>
>>> There was dependency on another parameter
>>> "NEXTRA_BRANCH" . I have
>>> increased this also .
>>>
>>> Now I am able to start opensips . Please let me know
>>> if I am wrong .
>>>
>>> */Thanks & Regards/*
>>> /Sasmita Panda/
>>> /Network Testing and Software Engineer/
>>> /3CLogic , ph:07827611765/
>>>
>>> On Mon, May 21, 2018 at 4:56 PM, Sasmita Panda
>>> mailto:spa...@3clogic.com>
>>> >> >> wrote:
>>>
>>> Yes , I have more register for same username .
>>>
>>> I have tried changing this parameter but the
>>> change induce
>>> different error .
>>>
>>> After increasing the parameter MAX_BRANCHES , I am
>>> not able to
>>> start Opensips .
>>> Its giving below error .
>>>
>>>