Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-23 Thread Jarrod Baumann
modparam("acc", "evi_extra", "json=$avp(json_acc)")

startup_route {
  if (!subscribe_event("E_ACC_CDR", "rabbitmq:user:pass@host/queue")) {
xlog("L_ERR","Cannot subscribe RabbitMQ to E_ACC_CDR\n");
  }
}

route["set_acc_variables"] {
  $json(acc) := "{}";
  $json(acc/from_user)  = $avp(ani);
  $json(acc/to_user)= $avp(dnis);
  ...
  $avp(json_acc)= $json(acc); #deserialize for raising the event
}

Obviously there are other parameters involved for the acc module but this
should provide the gist for using aqmp or any other method you want once
you deserialize the json object.  You can catch this in a worker and
serialize it to json using any language you want.

On Friday, February 23, 2018, SamyGo  wrote:

> Thanks Razvan, will open a feature request.
> Jarrod Can you elaborate the steps involved please?
>
> So, I don't have anything against XML right now but my XML receiver side
> is a bit of difficulty in terms of parsing the XML structure (Its done but
> not in a way I like it) - JSON will make it far easier.
>
> Regards,
> Sammy
>
> On Fri, Feb 23, 2018 at 10:49 AM, Jarrod Baumann  wrote:
>
>> I build the JSON data with cdr and convert to a string for throwing
>> events. Then whatever collects your CDR can serialize it again. This works
>> well and is probably similar to what XML is doing.
>>
>> On Thu, Feb 22, 2018 at 10:14 PM SamyGo  wrote:
>>
>>> Hi,
>>>
>>> I'm using ACC module to trigger accounting events which land up in
>>> event_xmlrpc and ultimately shipped to remote CDR collection server. The
>>> sent data is obviously an XML - now, can I have an event_json like module
>>> so data is sent as JSON or is there any other way I can achieve the same ?
>>>
>>> Regards
>>> Sammy
>>>
>>>
>>> ___
>>> 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
>>
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-23 Thread SamyGo
Thanks Razvan, will open a feature request.
Jarrod Can you elaborate the steps involved please?

So, I don't have anything against XML right now but my XML receiver side is
a bit of difficulty in terms of parsing the XML structure (Its done but not
in a way I like it) - JSON will make it far easier.

Regards,
Sammy

On Fri, Feb 23, 2018 at 10:49 AM, Jarrod Baumann  wrote:

> I build the JSON data with cdr and convert to a string for throwing
> events. Then whatever collects your CDR can serialize it again. This works
> well and is probably similar to what XML is doing.
>
> On Thu, Feb 22, 2018 at 10:14 PM SamyGo  wrote:
>
>> Hi,
>>
>> I'm using ACC module to trigger accounting events which land up in
>> event_xmlrpc and ultimately shipped to remote CDR collection server. The
>> sent data is obviously an XML - now, can I have an event_json like module
>> so data is sent as JSON or is there any other way I can achieve the same ?
>>
>> Regards
>> Sammy
>>
>>
>> ___
>> 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
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] ACC module with JSON events

2018-02-23 Thread Jarrod Baumann
I build the JSON data with cdr and convert to a string for throwing events.
Then whatever collects your CDR can serialize it again. This works well and
is probably similar to what XML is doing.

On Thu, Feb 22, 2018 at 10:14 PM SamyGo  wrote:

> Hi,
>
> I'm using ACC module to trigger accounting events which land up in
> event_xmlrpc and ultimately shipped to remote CDR collection server. The
> sent data is obviously an XML - now, can I have an event_json like module
> so data is sent as JSON or is there any other way I can achieve the same ?
>
> Regards
> Sammy
>
>
> ___
> 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] ACC module with JSON events

2018-02-23 Thread Răzvan Crainea

Hi, Samy!

Unfortunately there currently is no way (or at least no nice way) to do 
that. Please open a feature request so we can take this into account[1].


[1] https://github.com/OpenSIPS/opensips/issues

Best regards,
Răzvan

On 02/23/2018 06:13 AM, SamyGo wrote:

Hi,

I'm using ACC module to trigger accounting events which land up in 
event_xmlrpc and ultimately shipped to remote CDR collection server. The 
sent data is obviously an XML - now, can I have an event_json like 
module so data is sent as JSON or is there any other way I can achieve 
the same ?


Regards
Sammy




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



--
Răzvan Crainea
OpenSIPS Core Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam

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


Re: [OpenSIPS-Users] Wrong number of children

2018-02-23 Thread Callum Guy
Hi Xaled,

If you have the FIFO module loaded you can run "opensipsctl fifo ps" on the
instance to see full details of each process.

https://www.opensips.org/Documentation/Interface-CoreMI-2-2#toc7

Hope that helps,

Callum

On Fri, Feb 23, 2018 at 1:35 PM Daniel Zanutti 
wrote:

> Hi
>
> You should have 5 per interface + some internal control threads. I'm not
> sure exactly.
>
> Regards
>
> On Fri, Feb 23, 2018 at 9:25 AM, xaled  wrote:
>
>> Hi
>>
>>
>>
>> I have configured 5 children in  opensips.cfg, but 16 get logged and 18
>> initiated what could be the cause of it?
>>
>> I search for word children in opensips directory and it only comes ones
>> in opensips.conf.
>>
>>
>>
>> children=5
>>
>>
>>
>> Feb 23 13:07:09 srv01 opensips: DBG:core:daemonize: waiting for status
>> code from children
>>
>> Feb 23 13:07:09 srv01 opensips: DBG:core:count_init_children: 16 children
>> are going to be inited
>>
>>
>>
>> root@dus-appsrv01:/var/log/opensips# ps ax|grep sips
>>
>> 14854 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14856 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14857 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14858 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14861 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14862 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14863 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14864 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14865 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14867 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14869 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14870 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14871 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14872 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14874 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14875 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14876 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14877 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>>
>>
>> With commended children parameter I get 19 children in the log and 21 in
>> reality:
>>
>>
>>
>> Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:daemonize: waiting for
>> status code from children
>>
>> Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:count_init_children: 19
>> children are going to be inited
>>
>>
>>
>> root@srv01:/var/log/opensips# ps ax|grep sips
>>
>> 14723 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14725 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14726 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14727 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14730 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14731 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14732 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14733 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14734 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14736 ?S  0:00 /usr/sbin/opensips -P
>> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>>
>> 14737 ?S  0:00 /usr/sbin/opensips -P
>> 

Re: [OpenSIPS-Users] Wrong number of children

2018-02-23 Thread Daniel Zanutti
Hi

You should have 5 per interface + some internal control threads. I'm not
sure exactly.

Regards

On Fri, Feb 23, 2018 at 9:25 AM, xaled  wrote:

> Hi
>
>
>
> I have configured 5 children in  opensips.cfg, but 16 get logged and 18
> initiated what could be the cause of it?
>
> I search for word children in opensips directory and it only comes ones in
> opensips.conf.
>
>
>
> children=5
>
>
>
> Feb 23 13:07:09 srv01 opensips: DBG:core:daemonize: waiting for status
> code from children
>
> Feb 23 13:07:09 srv01 opensips: DBG:core:count_init_children: 16 children
> are going to be inited
>
>
>
> root@dus-appsrv01:/var/log/opensips# ps ax|grep sips
>
> 14854 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14856 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14857 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14858 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14861 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14862 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14863 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14864 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14865 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14867 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14869 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14870 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14871 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14872 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14874 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14875 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14876 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14877 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
>
>
> With commended children parameter I get 19 children in the log and 21 in
> reality:
>
>
>
> Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:daemonize: waiting for
> status code from children
>
> Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:count_init_children: 19
> children are going to be inited
>
>
>
> root@srv01:/var/log/opensips# ps ax|grep sips
>
> 14723 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14725 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14726 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14727 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14730 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14731 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14732 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14733 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14734 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14736 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14737 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14738 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14739 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14741 ?S  0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14742 ?S  

Re: [OpenSIPS-Users] On hold

2018-02-23 Thread Ovidiu Sas
Hello Brian,

You can detect hold using is_audio_on_hold():
http://www.opensips.org/html/docs/modules/2.3.x/sipmsgops#idp5575408

Try to use it and see if this will solve your issue.

Regards,
Ovidiu Sas

On Feb 23, 2018 4:13 AM, "Brian Southworth" 
wrote:

Hi All,



I am trying to get opensips to forward the on hold request to asterisk I
have done this using an if statement for SDP =~ “sendonly”



How ever when I go to take them off hold the call is dropped, is there
something special I need to do ?



I have tried and if statement for is_method(“invite”) && $rb =~ “sendrecv” ß
this loops until opensips give a 500 internal error

And I have also tried is_method(“invite”) && $rb =~ “inactive” ß this
doesn’t seem to work at all



The initial hold works perfect puts them on hold just cant take them off or
transfer the call (asterisk will handle all the B2B stuff)



Any help would be appreciated.



Regards,



Brian Southworth

Communications Developer

[image: cid:image001.png@01D22CAC.1DCB8580]

111 Wilmslow Road

Handforth

Wilmslow

SK9 3ER



T: 0 446677

W: www.clocom.uk











[image: cid:image002.png@01CDDC62.D8483910]


Like us on Facebook

[image: cid:image003.png@01CDDC62.D8483910]

Follow us on Twitter

[image: cid:image004.png@01CDDC62.D8483910] 











Clocom is a *green* company. Think, do you need to print this email?



This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message, which arise as a result of e-mail
transmission. If verification is required please request a hard-copy
version. Registered in England & Wales: 07081192. Registered name and
address: Clocom UK Ltd, 111 Wilmslow Road, Handforth, Cheshire, SK9 3ER
www.clocom.uk



___
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] Wrong number of children

2018-02-23 Thread xaled
Hi 

 

I have configured 5 children in  opensips.cfg, but 16 get logged and 18
initiated what could be the cause of it?

I search for word children in opensips directory and it only comes ones in
opensips.conf.

 

children=5

 

Feb 23 13:07:09 srv01 opensips: DBG:core:daemonize: waiting for status code
from children

Feb 23 13:07:09 srv01 opensips: DBG:core:count_init_children: 16 children
are going to be inited

 

root@dus-appsrv01:/var/log/opensips# ps ax|grep sips

14854 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14856 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14857 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14858 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14861 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14862 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14863 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14864 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14865 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14867 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14869 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14870 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14871 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14872 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14874 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14875 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14876 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14877 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

 

With commended children parameter I get 19 children in the log and 21 in
reality:

 

Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:daemonize: waiting for
status code from children

Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:count_init_children: 19
children are going to be inited

 

root@srv01:/var/log/opensips# ps ax|grep sips

14723 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14725 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14726 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14727 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14730 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14731 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14732 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14733 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14734 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14736 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14737 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14738 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14739 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14741 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14742 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14743 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14744 ?S  0:00 /usr/sbin/opensips -P /run/opensips/opensips.pid
-f /etc/opensips/opensips.cfg -m 64 -M 4

14745 ?S  0:00 /usr/sbin/opensips -P 

[OpenSIPS-Users] On hold

2018-02-23 Thread Brian Southworth
Hi All,

 
I am trying to get opensips to forward the on hold request to asterisk I have 
done this using an if statement for SDP =~ “sendonly”

 
How ever when I go to take them off hold the call is dropped, is there 
something special I need to do ?

 
I have tried and if statement for is_method(“invite”) && $rb =~ “sendrecv” ß 
this loops until opensips give a 500 internal error

And I have also tried is_method(“invite”) && $rb =~ “inactive” ß this doesn’t 
seem to work at all 

 
The initial hold works perfect puts them on hold just cant take them off or 
transfer the call (asterisk will handle all the B2B stuff)

 
Any help would be appreciated.

 
Regards,

 
Brian Southworth

Communications Developer


111 Wilmslow Road

Handforth

Wilmslow

SK9 3ER

 
T: 0 446677

W: www.clocom.uk  

 
 

 

 

 

  

Like us on Facebook



Follow us on Twitter



 
 

 

 

 

Clocom is a green company. Think, do you need to print this email?

 
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message, which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version. Registered in England & Wales: 
07081192. Registered name and address: Clocom UK Ltd, 111 Wilmslow Road, 
Handforth, Cheshire, SK9 3ER  www.clocom.uk  

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