Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Prathibha B
Opensips exec() is working using the absolute path.

Sent from Outlook for Android

From: Prathibha B 
Sent: Friday, April 5, 2024 5:49:37 AM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] external applications

My question is not regarding exec command. How to capture the start of the 
call? I'm unable to get the start.

Sent from Outlook for Android

From: Users  on behalf of Ben Newlin 

Sent: Thursday, April 4, 2024 9:22:28 PM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] external applications


Per the documentation [1], input variables to the script are provided as a 
separate parameter to the exec command. It does not do a direct shell execution 
of the entire first parameter. So it should be:



exec(“script.sh”, “INVITE”);



Also, for a relative command I’m not entirely sure where OpenSIPS would look. 
It could be the working directory or it could be the directory from which 
opensips was launched. Have you tried using an absolute path? Are you setting 
the wdir [2] parameter?



[1] - https://opensips.org/docs/modules/3.4.x/exec.html#func_exec

[2] - https://www.opensips.org/Documentation/Script-CoreParameters-3-4#wdir



Ben Newlin



From: Users  on behalf of Prathibha B 

Date: Thursday, April 4, 2024 at 11:32 AM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] external applications

 EXTERNAL EMAIL - Please use caution with links and attachments





I've used the above code inside the route block.



On Thu, 4 Apr 2024 at 12:02, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

if($rm == "INVITE") {

xlog("Request method = $rm");

exec("script.sh \"INVITE\"");

}





With the above code , I am getting the Request method = INVITE twice in the log 
file. But the exec() is not getting executed.







On Wed, 3 Apr 2024 at 19:43, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

Yes. I am canceling the call prior to dialog creation.



Sent from Outlook for Android



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Ben Newlin mailto:ben.new...@genesys.com>>
Sent: Wednesday, April 3, 2024 7:03:33 PM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications



If your script is cancelling the call then why wouldn’t you “capture it” in the 
same place? Send whatever you need to whatever external entity you are using 
directly. You don’t need a callback to trigger if you know you are taking the 
action.



A created dialog being cancelled should result in a state change event – to 
CANCELLED I think -  so I assume you mean you are cancelling it prior to dialog 
creation, in which case there won’t be any dialog callback.



Ben Newlin



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Prathibha B 
mailto:prathibhab@gmail.com>>
Date: Wednesday, April 3, 2024 at 2:35 AM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications



 EXTERNAL EMAIL - Please use caution with links and attachments





I am capturing the dropped call after ringing in failure_route, but  If I 
cancelled during the start of the call, how to capture it.



On Tue, 2 Apr 2024 at 20:38, Ben Newlin 
mailto:ben.new...@genesys.com>> wrote:

The start of the call would be when you call “create_dialog”. The dialog state 
for that is “UNCONFIRMED”. I’m not sure whether a dialog state change event is 
raised for creation. It may only be raised when the state changes after 
creation. But since you control the dialog creation, you can just take whatever 
action you desire at that time.



Ben Newlin



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Prathibha B 
mailto:prathibhab@gmail.com>>
Date: Tuesday, April 2, 2024 at 8:05 AM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications

 EXTERNAL EMAIL - Please use caution with links and attachments





I tried is_method("INVITE"), but it is getting called only at the start of 
RINGING.



On Tue, 2 Apr 2024 at 15:09, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

I am able to capture the trying status also. But not getting the START of the 
call...



On Tue, 2 Apr 2024 at 14:59, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

How do I identify the START and TRYING state of the call?



 I am able to capture RINGING, ANSWER and TERMINATED states.



On Tue, 2 Apr 2024 at 14:51, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

I tried

event_route[E_DLG_STATE_CHANGED] {

}



I am getting syntax error.



On Tue, 2 Apr 2024 at 14:45, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:


Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Prathibha B
My question is not regarding exec command. How to capture the start of the 
call? I'm unable to get the start.

Sent from Outlook for Android

From: Users  on behalf of Ben Newlin 

Sent: Thursday, April 4, 2024 9:22:28 PM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] external applications


Per the documentation [1], input variables to the script are provided as a 
separate parameter to the exec command. It does not do a direct shell execution 
of the entire first parameter. So it should be:



exec(“script.sh”, “INVITE”);



Also, for a relative command I’m not entirely sure where OpenSIPS would look. 
It could be the working directory or it could be the directory from which 
opensips was launched. Have you tried using an absolute path? Are you setting 
the wdir [2] parameter?



[1] - https://opensips.org/docs/modules/3.4.x/exec.html#func_exec

[2] - https://www.opensips.org/Documentation/Script-CoreParameters-3-4#wdir



Ben Newlin



From: Users  on behalf of Prathibha B 

Date: Thursday, April 4, 2024 at 11:32 AM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] external applications

 EXTERNAL EMAIL - Please use caution with links and attachments





I've used the above code inside the route block.



On Thu, 4 Apr 2024 at 12:02, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

if($rm == "INVITE") {

xlog("Request method = $rm");

exec("script.sh \"INVITE\"");

}





With the above code , I am getting the Request method = INVITE twice in the log 
file. But the exec() is not getting executed.







On Wed, 3 Apr 2024 at 19:43, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

Yes. I am canceling the call prior to dialog creation.



Sent from Outlook for Android



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Ben Newlin mailto:ben.new...@genesys.com>>
Sent: Wednesday, April 3, 2024 7:03:33 PM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications



If your script is cancelling the call then why wouldn’t you “capture it” in the 
same place? Send whatever you need to whatever external entity you are using 
directly. You don’t need a callback to trigger if you know you are taking the 
action.



A created dialog being cancelled should result in a state change event – to 
CANCELLED I think -  so I assume you mean you are cancelling it prior to dialog 
creation, in which case there won’t be any dialog callback.



Ben Newlin



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Prathibha B 
mailto:prathibhab@gmail.com>>
Date: Wednesday, April 3, 2024 at 2:35 AM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications



 EXTERNAL EMAIL - Please use caution with links and attachments





I am capturing the dropped call after ringing in failure_route, but  If I 
cancelled during the start of the call, how to capture it.



On Tue, 2 Apr 2024 at 20:38, Ben Newlin 
mailto:ben.new...@genesys.com>> wrote:

The start of the call would be when you call “create_dialog”. The dialog state 
for that is “UNCONFIRMED”. I’m not sure whether a dialog state change event is 
raised for creation. It may only be raised when the state changes after 
creation. But since you control the dialog creation, you can just take whatever 
action you desire at that time.



Ben Newlin



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Prathibha B 
mailto:prathibhab@gmail.com>>
Date: Tuesday, April 2, 2024 at 8:05 AM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications

 EXTERNAL EMAIL - Please use caution with links and attachments





I tried is_method("INVITE"), but it is getting called only at the start of 
RINGING.



On Tue, 2 Apr 2024 at 15:09, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

I am able to capture the trying status also. But not getting the START of the 
call...



On Tue, 2 Apr 2024 at 14:59, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

How do I identify the START and TRYING state of the call?



 I am able to capture RINGING, ANSWER and TERMINATED states.



On Tue, 2 Apr 2024 at 14:51, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

I tried

event_route[E_DLG_STATE_CHANGED] {

}



I am getting syntax error.



On Tue, 2 Apr 2024 at 14:45, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

How to use  E_DLG_STATE_CHANGED to identify the start of the call?





On Wed, 20 Mar 2024 at 19:46, Ben Newlin 
mailto:ben.new...@genesys.com>> wrote:

You can also use the REST client. And there are many other ways, as well.



There is no single correct answer to the vague question 

Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Ben Newlin
Per the documentation [1], input variables to the script are provided as a 
separate parameter to the exec command. It does not do a direct shell execution 
of the entire first parameter. So it should be:

exec(“script.sh”, “INVITE”);

Also, for a relative command I’m not entirely sure where OpenSIPS would look. 
It could be the working directory or it could be the directory from which 
opensips was launched. Have you tried using an absolute path? Are you setting 
the wdir [2] parameter?

[1] - https://opensips.org/docs/modules/3.4.x/exec.html#func_exec
[2] - https://www.opensips.org/Documentation/Script-CoreParameters-3-4#wdir

Ben Newlin

From: Users  on behalf of Prathibha B 

Date: Thursday, April 4, 2024 at 11:32 AM
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] external applications
 EXTERNAL EMAIL - Please use caution with links and attachments


I've used the above code inside the route block.

On Thu, 4 Apr 2024 at 12:02, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:
if($rm == "INVITE") {
xlog("Request method = $rm");
exec("script.sh \"INVITE\"");
}


With the above code , I am getting the Request method = INVITE twice in the log 
file. But the exec() is not getting executed.



On Wed, 3 Apr 2024 at 19:43, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:
Yes. I am canceling the call prior to dialog creation.

Sent from Outlook for Android

From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Ben Newlin mailto:ben.new...@genesys.com>>
Sent: Wednesday, April 3, 2024 7:03:33 PM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications


If your script is cancelling the call then why wouldn’t you “capture it” in the 
same place? Send whatever you need to whatever external entity you are using 
directly. You don’t need a callback to trigger if you know you are taking the 
action.



A created dialog being cancelled should result in a state change event – to 
CANCELLED I think -  so I assume you mean you are cancelling it prior to dialog 
creation, in which case there won’t be any dialog callback.



Ben Newlin



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Prathibha B 
mailto:prathibhab@gmail.com>>
Date: Wednesday, April 3, 2024 at 2:35 AM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications



 EXTERNAL EMAIL - Please use caution with links and attachments





I am capturing the dropped call after ringing in failure_route, but  If I 
cancelled during the start of the call, how to capture it.



On Tue, 2 Apr 2024 at 20:38, Ben Newlin 
mailto:ben.new...@genesys.com>> wrote:

The start of the call would be when you call “create_dialog”. The dialog state 
for that is “UNCONFIRMED”. I’m not sure whether a dialog state change event is 
raised for creation. It may only be raised when the state changes after 
creation. But since you control the dialog creation, you can just take whatever 
action you desire at that time.



Ben Newlin



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Prathibha B 
mailto:prathibhab@gmail.com>>
Date: Tuesday, April 2, 2024 at 8:05 AM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] external applications

 EXTERNAL EMAIL - Please use caution with links and attachments





I tried is_method("INVITE"), but it is getting called only at the start of 
RINGING.



On Tue, 2 Apr 2024 at 15:09, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

I am able to capture the trying status also. But not getting the START of the 
call...



On Tue, 2 Apr 2024 at 14:59, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

How do I identify the START and TRYING state of the call?



 I am able to capture RINGING, ANSWER and TERMINATED states.



On Tue, 2 Apr 2024 at 14:51, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

I tried

event_route[E_DLG_STATE_CHANGED] {

}



I am getting syntax error.



On Tue, 2 Apr 2024 at 14:45, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:

How to use  E_DLG_STATE_CHANGED to identify the start of the call?





On Wed, 20 Mar 2024 at 19:46, Ben Newlin 
mailto:ben.new...@genesys.com>> wrote:

You can also use the REST client. And there are many other ways, as well.



There is no single correct answer to the vague question of connecting to any 
generic “external application”. You must understand your systems and decide the 
best approach depending on the needs and capabilities of both the external 
application and OpenSIPS.



Ben Newlin



From: Users 
mailto:users-boun...@lists.opensips.org>> on 
behalf of Bogdan-Andrei Iancu mailto:bog...@opensips.org>>
Date: Wednesday, March 20, 2024 at 10:06 AM
To: OpenSIPS 

[OpenSIPS-Users] OpenSIPS Summit 2024 - Speaker's lineup

2024-04-04 Thread Bogdan-Andrei Iancu




 OpenSIPS Summit


 May 14th - 17th, 2024

Valencia, Spain


*Speaker's lineup & Schedule
*

We bring here the list of speakers and papers 
 - great 
speakers presenting great topics to share experience and knowledge to a 
great audience. Explore here all the details...




*Attend to learn* - the registration process is ongoing, the training 
class is almost full, so hurry up. The/*Corporate Package*/ is available 
with an attractive discount.


Register now 

**









--
Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Prathibha B
what does the $rm = SUBSCRIBE mean?

On Thu, 4 Apr 2024 at 12:18, Prathibha B  wrote:

> However this code is getting executed after reaching the ringing state.
>
> On Thu, 4 Apr 2024 at 12:13, Prathibha B  wrote:
>
>> I am not getting the log also.
>>
>> On Thu, 4 Apr 2024 at 12:02, Prathibha B 
>> wrote:
>>
>>> if($rm == "INVITE") {
>>> xlog("Request method = $rm");
>>> exec("script.sh \"INVITE\"");
>>> }
>>>
>>>
>>> With the above code , I am getting the Request method = INVITE twice in
>>> the log file. But the exec() is not getting executed.
>>>
>>>
>>>
>>> On Wed, 3 Apr 2024 at 19:43, Prathibha B 
>>> wrote:
>>>
 Yes. I am canceling the call prior to dialog creation.

 Sent from Outlook for Android 
 --
 *From:* Users  on behalf of Ben
 Newlin 
 *Sent:* Wednesday, April 3, 2024 7:03:33 PM
 *To:* OpenSIPS users mailling list 
 *Subject:* Re: [OpenSIPS-Users] external applications


 If your script is cancelling the call then why wouldn’t you “capture
 it” in the same place? Send whatever you need to whatever external entity
 you are using directly. You don’t need a callback to trigger if you know
 you are taking the action.



 A created dialog being cancelled should result in a state change event
 – to CANCELLED I think -  so I assume you mean you are cancelling it prior
 to dialog creation, in which case there won’t be any dialog callback.



 Ben Newlin



 *From: *Users  on behalf of
 Prathibha B 
 *Date: *Wednesday, April 3, 2024 at 2:35 AM
 *To: *OpenSIPS users mailling list 
 *Subject: *Re: [OpenSIPS-Users] external applications



 * EXTERNAL EMAIL - Please use caution with links and attachments *


 --

 I am capturing the dropped call after ringing in failure_route, but  If
 I cancelled during the start of the call, how to capture it.



 On Tue, 2 Apr 2024 at 20:38, Ben Newlin  wrote:

 The start of the call would be when you call “create_dialog”. The
 dialog state for that is “UNCONFIRMED”. I’m not sure whether a dialog state
 change event is raised for creation. It may only be raised when the state
 changes after creation. But since you control the dialog creation, you can
 just take whatever action you desire at that time.



 Ben Newlin



 *From: *Users  on behalf of
 Prathibha B 
 *Date: *Tuesday, April 2, 2024 at 8:05 AM
 *To: *OpenSIPS users mailling list 
 *Subject: *Re: [OpenSIPS-Users] external applications

 * EXTERNAL EMAIL - Please use caution with links and attachments *


 --

 I tried is_method("INVITE"), but it is getting called only at the start
 of RINGING.



 On Tue, 2 Apr 2024 at 15:09, Prathibha B 
 wrote:

 I am able to capture the trying status also. But not getting the START
 of the call...



 On Tue, 2 Apr 2024 at 14:59, Prathibha B 
 wrote:

 How do I identify the START and TRYING state of the call?



  I am able to capture RINGING, ANSWER and TERMINATED states.



 On Tue, 2 Apr 2024 at 14:51, Prathibha B 
 wrote:

 I tried

 event_route[E_DLG_STATE_CHANGED] {

 }



 I am getting syntax error.



 On Tue, 2 Apr 2024 at 14:45, Prathibha B 
 wrote:

 How to use  *E_DLG_STATE_CHANGED to identify the start of the call?*





 On Wed, 20 Mar 2024 at 19:46, Ben Newlin 
 wrote:

 You can also use the REST client. And there are many other ways, as
 well.



 There is no single correct answer to the vague question of connecting
 to any generic “external application”. You must understand your systems and
 decide the best approach depending on the needs and capabilities of both
 the external application and OpenSIPS.



 Ben Newlin



 *From: *Users  on behalf of
 Bogdan-Andrei Iancu 
 *Date: *Wednesday, March 20, 2024 at 10:06 AM
 *To: *OpenSIPS users mailling list ,
 Prathibha B 
 *Subject: *Re: [OpenSIPS-Users] external applications

 * EXTERNAL EMAIL - Please use caution with links and attachments *


 --

 Use the dialog events:

 https://opensips.org/html/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED

 And you subscribe from outside OpenSIPS for such events:
 https://www.opensips.org/Documentation/Interface-Events-3-4

 Regards,

 Bogdan-Andrei Iancu



 OpenSIPS Founder and Developer

   https://www.opensips-solutions.com

   https://www.siphub.com


Re: [OpenSIPS-Users] socket defination in opensips 3.2

2024-04-04 Thread Alex Balashov
Hello,

Port spaces for UDP and TCP are independent.

-- Alex

> On Apr 4, 2024, at 6:45 AM, Sasmita Panda  wrote:
> 
> Hi All , 
> 
> Is the below socket definition right ? In this case opensips will listen on 
> both UDp and TCP protocol on the same 5507 port ?
> 
> socket=tcp:10.5.1.1:5507
> socket=udp:10.5.1.1:5507
> 
> If this is not right then how can opensips listen for both UDP and TCP 
> protocol in a single port ?
> 
> Thanks & Regards
> Sasmita Panda
> Senior Network Testing and Software Engineer
> 3CLogic , ph:07827611765
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-- 
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800


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


[OpenSIPS-Users] socket defination in opensips 3.2

2024-04-04 Thread Sasmita Panda
Hi All ,

Is the below socket definition right ? In this case opensips will listen on
both UDp and TCP protocol on the same 5507 port ?

socket=tcp:10.5.1.1:5507
socket=udp:10.5.1.1:5507

*If this is not right then how can opensips listen for both UDP and TCP
protocol in a single port ?*

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Prathibha B
However this code is getting executed after reaching the ringing state.

On Thu, 4 Apr 2024 at 12:13, Prathibha B  wrote:

> I am not getting the log also.
>
> On Thu, 4 Apr 2024 at 12:02, Prathibha B  wrote:
>
>> if($rm == "INVITE") {
>> xlog("Request method = $rm");
>> exec("script.sh \"INVITE\"");
>> }
>>
>>
>> With the above code , I am getting the Request method = INVITE twice in
>> the log file. But the exec() is not getting executed.
>>
>>
>>
>> On Wed, 3 Apr 2024 at 19:43, Prathibha B 
>> wrote:
>>
>>> Yes. I am canceling the call prior to dialog creation.
>>>
>>> Sent from Outlook for Android 
>>> --
>>> *From:* Users  on behalf of Ben
>>> Newlin 
>>> *Sent:* Wednesday, April 3, 2024 7:03:33 PM
>>> *To:* OpenSIPS users mailling list 
>>> *Subject:* Re: [OpenSIPS-Users] external applications
>>>
>>>
>>> If your script is cancelling the call then why wouldn’t you “capture it”
>>> in the same place? Send whatever you need to whatever external entity you
>>> are using directly. You don’t need a callback to trigger if you know you
>>> are taking the action.
>>>
>>>
>>>
>>> A created dialog being cancelled should result in a state change event –
>>> to CANCELLED I think -  so I assume you mean you are cancelling it prior to
>>> dialog creation, in which case there won’t be any dialog callback.
>>>
>>>
>>>
>>> Ben Newlin
>>>
>>>
>>>
>>> *From: *Users  on behalf of Prathibha
>>> B 
>>> *Date: *Wednesday, April 3, 2024 at 2:35 AM
>>> *To: *OpenSIPS users mailling list 
>>> *Subject: *Re: [OpenSIPS-Users] external applications
>>>
>>>
>>>
>>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>>
>>>
>>> --
>>>
>>> I am capturing the dropped call after ringing in failure_route, but  If
>>> I cancelled during the start of the call, how to capture it.
>>>
>>>
>>>
>>> On Tue, 2 Apr 2024 at 20:38, Ben Newlin  wrote:
>>>
>>> The start of the call would be when you call “create_dialog”. The dialog
>>> state for that is “UNCONFIRMED”. I’m not sure whether a dialog state change
>>> event is raised for creation. It may only be raised when the state changes
>>> after creation. But since you control the dialog creation, you can just
>>> take whatever action you desire at that time.
>>>
>>>
>>>
>>> Ben Newlin
>>>
>>>
>>>
>>> *From: *Users  on behalf of Prathibha
>>> B 
>>> *Date: *Tuesday, April 2, 2024 at 8:05 AM
>>> *To: *OpenSIPS users mailling list 
>>> *Subject: *Re: [OpenSIPS-Users] external applications
>>>
>>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>>
>>>
>>> --
>>>
>>> I tried is_method("INVITE"), but it is getting called only at the start
>>> of RINGING.
>>>
>>>
>>>
>>> On Tue, 2 Apr 2024 at 15:09, Prathibha B 
>>> wrote:
>>>
>>> I am able to capture the trying status also. But not getting the START
>>> of the call...
>>>
>>>
>>>
>>> On Tue, 2 Apr 2024 at 14:59, Prathibha B 
>>> wrote:
>>>
>>> How do I identify the START and TRYING state of the call?
>>>
>>>
>>>
>>>  I am able to capture RINGING, ANSWER and TERMINATED states.
>>>
>>>
>>>
>>> On Tue, 2 Apr 2024 at 14:51, Prathibha B 
>>> wrote:
>>>
>>> I tried
>>>
>>> event_route[E_DLG_STATE_CHANGED] {
>>>
>>> }
>>>
>>>
>>>
>>> I am getting syntax error.
>>>
>>>
>>>
>>> On Tue, 2 Apr 2024 at 14:45, Prathibha B 
>>> wrote:
>>>
>>> How to use  *E_DLG_STATE_CHANGED to identify the start of the call?*
>>>
>>>
>>>
>>>
>>>
>>> On Wed, 20 Mar 2024 at 19:46, Ben Newlin  wrote:
>>>
>>> You can also use the REST client. And there are many other ways, as well.
>>>
>>>
>>>
>>> There is no single correct answer to the vague question of connecting to
>>> any generic “external application”. You must understand your systems and
>>> decide the best approach depending on the needs and capabilities of both
>>> the external application and OpenSIPS.
>>>
>>>
>>>
>>> Ben Newlin
>>>
>>>
>>>
>>> *From: *Users  on behalf of
>>> Bogdan-Andrei Iancu 
>>> *Date: *Wednesday, March 20, 2024 at 10:06 AM
>>> *To: *OpenSIPS users mailling list ,
>>> Prathibha B 
>>> *Subject: *Re: [OpenSIPS-Users] external applications
>>>
>>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>>
>>>
>>> --
>>>
>>> Use the dialog events:
>>>
>>> https://opensips.org/html/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED
>>>
>>> And you subscribe from outside OpenSIPS for such events:
>>> https://www.opensips.org/Documentation/Interface-Events-3-4
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>>
>>>
>>>
>>> OpenSIPS Founder and Developer
>>>
>>>   https://www.opensips-solutions.com
>>>
>>>   https://www.siphub.com
>>>
>>> On 20.03.2024 12:16, Prathibha B wrote:
>>>
>>> No. I want to pass START, CONNECT, END messages from OpenSIPS to
>>> external application.
>>>
>>>
>>>
>>> On Wed, 20 Mar 2024 at 15:42, Marcin Groszek 
>>> wrote:
>>>
>>> Well, to execute external command from opensips you may want to use 

Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Prathibha B
I am not getting the log also.

On Thu, 4 Apr 2024 at 12:02, Prathibha B  wrote:

> if($rm == "INVITE") {
> xlog("Request method = $rm");
> exec("script.sh \"INVITE\"");
> }
>
>
> With the above code , I am getting the Request method = INVITE twice in
> the log file. But the exec() is not getting executed.
>
>
>
> On Wed, 3 Apr 2024 at 19:43, Prathibha B  wrote:
>
>> Yes. I am canceling the call prior to dialog creation.
>>
>> Sent from Outlook for Android 
>> --
>> *From:* Users  on behalf of Ben Newlin
>> 
>> *Sent:* Wednesday, April 3, 2024 7:03:33 PM
>> *To:* OpenSIPS users mailling list 
>> *Subject:* Re: [OpenSIPS-Users] external applications
>>
>>
>> If your script is cancelling the call then why wouldn’t you “capture it”
>> in the same place? Send whatever you need to whatever external entity you
>> are using directly. You don’t need a callback to trigger if you know you
>> are taking the action.
>>
>>
>>
>> A created dialog being cancelled should result in a state change event –
>> to CANCELLED I think -  so I assume you mean you are cancelling it prior to
>> dialog creation, in which case there won’t be any dialog callback.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of Prathibha
>> B 
>> *Date: *Wednesday, April 3, 2024 at 2:35 AM
>> *To: *OpenSIPS users mailling list 
>> *Subject: *Re: [OpenSIPS-Users] external applications
>>
>>
>>
>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>
>>
>> --
>>
>> I am capturing the dropped call after ringing in failure_route, but  If I
>> cancelled during the start of the call, how to capture it.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 20:38, Ben Newlin  wrote:
>>
>> The start of the call would be when you call “create_dialog”. The dialog
>> state for that is “UNCONFIRMED”. I’m not sure whether a dialog state change
>> event is raised for creation. It may only be raised when the state changes
>> after creation. But since you control the dialog creation, you can just
>> take whatever action you desire at that time.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of Prathibha
>> B 
>> *Date: *Tuesday, April 2, 2024 at 8:05 AM
>> *To: *OpenSIPS users mailling list 
>> *Subject: *Re: [OpenSIPS-Users] external applications
>>
>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>
>>
>> --
>>
>> I tried is_method("INVITE"), but it is getting called only at the start
>> of RINGING.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 15:09, Prathibha B 
>> wrote:
>>
>> I am able to capture the trying status also. But not getting the START of
>> the call...
>>
>>
>>
>> On Tue, 2 Apr 2024 at 14:59, Prathibha B 
>> wrote:
>>
>> How do I identify the START and TRYING state of the call?
>>
>>
>>
>>  I am able to capture RINGING, ANSWER and TERMINATED states.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 14:51, Prathibha B 
>> wrote:
>>
>> I tried
>>
>> event_route[E_DLG_STATE_CHANGED] {
>>
>> }
>>
>>
>>
>> I am getting syntax error.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 14:45, Prathibha B 
>> wrote:
>>
>> How to use  *E_DLG_STATE_CHANGED to identify the start of the call?*
>>
>>
>>
>>
>>
>> On Wed, 20 Mar 2024 at 19:46, Ben Newlin  wrote:
>>
>> You can also use the REST client. And there are many other ways, as well.
>>
>>
>>
>> There is no single correct answer to the vague question of connecting to
>> any generic “external application”. You must understand your systems and
>> decide the best approach depending on the needs and capabilities of both
>> the external application and OpenSIPS.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of
>> Bogdan-Andrei Iancu 
>> *Date: *Wednesday, March 20, 2024 at 10:06 AM
>> *To: *OpenSIPS users mailling list , Prathibha
>> B 
>> *Subject: *Re: [OpenSIPS-Users] external applications
>>
>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>
>>
>> --
>>
>> Use the dialog events:
>>
>> https://opensips.org/html/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED
>>
>> And you subscribe from outside OpenSIPS for such events:
>> https://www.opensips.org/Documentation/Interface-Events-3-4
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>>
>>
>> OpenSIPS Founder and Developer
>>
>>   https://www.opensips-solutions.com
>>
>>   https://www.siphub.com
>>
>> On 20.03.2024 12:16, Prathibha B wrote:
>>
>> No. I want to pass START, CONNECT, END messages from OpenSIPS to external
>> application.
>>
>>
>>
>> On Wed, 20 Mar 2024 at 15:42, Marcin Groszek  wrote:
>>
>> Well, to execute external command from opensips you may want to use EXEC
>> module.
>>
>> this is a manual for v3.2:
>>
>> https://opensips.org/html/docs/modules/3.2.x/exec.html
>>
>>
>>
>> On 3/20/2024 5:00 AM, Prathibha B wrote:
>>
>> How to integrate OpenSIPS with external applications?
>>
>>
>>
>> --
>>
>> Regards,
>>
>> B.Prathibha
>>
>>
>>
>> 

Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Prathibha B
I've used the above code inside the route block.

On Thu, 4 Apr 2024 at 12:02, Prathibha B  wrote:

> if($rm == "INVITE") {
> xlog("Request method = $rm");
> exec("script.sh \"INVITE\"");
> }
>
>
> With the above code , I am getting the Request method = INVITE twice in
> the log file. But the exec() is not getting executed.
>
>
>
> On Wed, 3 Apr 2024 at 19:43, Prathibha B  wrote:
>
>> Yes. I am canceling the call prior to dialog creation.
>>
>> Sent from Outlook for Android 
>> --
>> *From:* Users  on behalf of Ben Newlin
>> 
>> *Sent:* Wednesday, April 3, 2024 7:03:33 PM
>> *To:* OpenSIPS users mailling list 
>> *Subject:* Re: [OpenSIPS-Users] external applications
>>
>>
>> If your script is cancelling the call then why wouldn’t you “capture it”
>> in the same place? Send whatever you need to whatever external entity you
>> are using directly. You don’t need a callback to trigger if you know you
>> are taking the action.
>>
>>
>>
>> A created dialog being cancelled should result in a state change event –
>> to CANCELLED I think -  so I assume you mean you are cancelling it prior to
>> dialog creation, in which case there won’t be any dialog callback.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of Prathibha
>> B 
>> *Date: *Wednesday, April 3, 2024 at 2:35 AM
>> *To: *OpenSIPS users mailling list 
>> *Subject: *Re: [OpenSIPS-Users] external applications
>>
>>
>>
>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>
>>
>> --
>>
>> I am capturing the dropped call after ringing in failure_route, but  If I
>> cancelled during the start of the call, how to capture it.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 20:38, Ben Newlin  wrote:
>>
>> The start of the call would be when you call “create_dialog”. The dialog
>> state for that is “UNCONFIRMED”. I’m not sure whether a dialog state change
>> event is raised for creation. It may only be raised when the state changes
>> after creation. But since you control the dialog creation, you can just
>> take whatever action you desire at that time.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of Prathibha
>> B 
>> *Date: *Tuesday, April 2, 2024 at 8:05 AM
>> *To: *OpenSIPS users mailling list 
>> *Subject: *Re: [OpenSIPS-Users] external applications
>>
>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>
>>
>> --
>>
>> I tried is_method("INVITE"), but it is getting called only at the start
>> of RINGING.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 15:09, Prathibha B 
>> wrote:
>>
>> I am able to capture the trying status also. But not getting the START of
>> the call...
>>
>>
>>
>> On Tue, 2 Apr 2024 at 14:59, Prathibha B 
>> wrote:
>>
>> How do I identify the START and TRYING state of the call?
>>
>>
>>
>>  I am able to capture RINGING, ANSWER and TERMINATED states.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 14:51, Prathibha B 
>> wrote:
>>
>> I tried
>>
>> event_route[E_DLG_STATE_CHANGED] {
>>
>> }
>>
>>
>>
>> I am getting syntax error.
>>
>>
>>
>> On Tue, 2 Apr 2024 at 14:45, Prathibha B 
>> wrote:
>>
>> How to use  *E_DLG_STATE_CHANGED to identify the start of the call?*
>>
>>
>>
>>
>>
>> On Wed, 20 Mar 2024 at 19:46, Ben Newlin  wrote:
>>
>> You can also use the REST client. And there are many other ways, as well.
>>
>>
>>
>> There is no single correct answer to the vague question of connecting to
>> any generic “external application”. You must understand your systems and
>> decide the best approach depending on the needs and capabilities of both
>> the external application and OpenSIPS.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of
>> Bogdan-Andrei Iancu 
>> *Date: *Wednesday, March 20, 2024 at 10:06 AM
>> *To: *OpenSIPS users mailling list , Prathibha
>> B 
>> *Subject: *Re: [OpenSIPS-Users] external applications
>>
>> * EXTERNAL EMAIL - Please use caution with links and attachments *
>>
>>
>> --
>>
>> Use the dialog events:
>>
>> https://opensips.org/html/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED
>>
>> And you subscribe from outside OpenSIPS for such events:
>> https://www.opensips.org/Documentation/Interface-Events-3-4
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>>
>>
>> OpenSIPS Founder and Developer
>>
>>   https://www.opensips-solutions.com
>>
>>   https://www.siphub.com
>>
>> On 20.03.2024 12:16, Prathibha B wrote:
>>
>> No. I want to pass START, CONNECT, END messages from OpenSIPS to external
>> application.
>>
>>
>>
>> On Wed, 20 Mar 2024 at 15:42, Marcin Groszek  wrote:
>>
>> Well, to execute external command from opensips you may want to use EXEC
>> module.
>>
>> this is a manual for v3.2:
>>
>> https://opensips.org/html/docs/modules/3.2.x/exec.html
>>
>>
>>
>> On 3/20/2024 5:00 AM, Prathibha B wrote:
>>
>> How to integrate OpenSIPS with external applications?
>>
>>
>>
>> --
>>
>> Regards,
>>
>> B.Prathibha
>>
>>
>>
>> 

Re: [OpenSIPS-Users] external applications

2024-04-04 Thread Prathibha B
if($rm == "INVITE") {
xlog("Request method = $rm");
exec("script.sh \"INVITE\"");
}


With the above code , I am getting the Request method = INVITE twice in the
log file. But the exec() is not getting executed.



On Wed, 3 Apr 2024 at 19:43, Prathibha B  wrote:

> Yes. I am canceling the call prior to dialog creation.
>
> Sent from Outlook for Android 
> --
> *From:* Users  on behalf of Ben Newlin <
> ben.new...@genesys.com>
> *Sent:* Wednesday, April 3, 2024 7:03:33 PM
> *To:* OpenSIPS users mailling list 
> *Subject:* Re: [OpenSIPS-Users] external applications
>
>
> If your script is cancelling the call then why wouldn’t you “capture it”
> in the same place? Send whatever you need to whatever external entity you
> are using directly. You don’t need a callback to trigger if you know you
> are taking the action.
>
>
>
> A created dialog being cancelled should result in a state change event –
> to CANCELLED I think -  so I assume you mean you are cancelling it prior to
> dialog creation, in which case there won’t be any dialog callback.
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Prathibha B
> 
> *Date: *Wednesday, April 3, 2024 at 2:35 AM
> *To: *OpenSIPS users mailling list 
> *Subject: *Re: [OpenSIPS-Users] external applications
>
>
>
> * EXTERNAL EMAIL - Please use caution with links and attachments *
>
>
> --
>
> I am capturing the dropped call after ringing in failure_route, but  If I
> cancelled during the start of the call, how to capture it.
>
>
>
> On Tue, 2 Apr 2024 at 20:38, Ben Newlin  wrote:
>
> The start of the call would be when you call “create_dialog”. The dialog
> state for that is “UNCONFIRMED”. I’m not sure whether a dialog state change
> event is raised for creation. It may only be raised when the state changes
> after creation. But since you control the dialog creation, you can just
> take whatever action you desire at that time.
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Prathibha B
> 
> *Date: *Tuesday, April 2, 2024 at 8:05 AM
> *To: *OpenSIPS users mailling list 
> *Subject: *Re: [OpenSIPS-Users] external applications
>
> * EXTERNAL EMAIL - Please use caution with links and attachments *
>
>
> --
>
> I tried is_method("INVITE"), but it is getting called only at the start of
> RINGING.
>
>
>
> On Tue, 2 Apr 2024 at 15:09, Prathibha B  wrote:
>
> I am able to capture the trying status also. But not getting the START of
> the call...
>
>
>
> On Tue, 2 Apr 2024 at 14:59, Prathibha B  wrote:
>
> How do I identify the START and TRYING state of the call?
>
>
>
>  I am able to capture RINGING, ANSWER and TERMINATED states.
>
>
>
> On Tue, 2 Apr 2024 at 14:51, Prathibha B  wrote:
>
> I tried
>
> event_route[E_DLG_STATE_CHANGED] {
>
> }
>
>
>
> I am getting syntax error.
>
>
>
> On Tue, 2 Apr 2024 at 14:45, Prathibha B  wrote:
>
> How to use  *E_DLG_STATE_CHANGED to identify the start of the call?*
>
>
>
>
>
> On Wed, 20 Mar 2024 at 19:46, Ben Newlin  wrote:
>
> You can also use the REST client. And there are many other ways, as well.
>
>
>
> There is no single correct answer to the vague question of connecting to
> any generic “external application”. You must understand your systems and
> decide the best approach depending on the needs and capabilities of both
> the external application and OpenSIPS.
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of
> Bogdan-Andrei Iancu 
> *Date: *Wednesday, March 20, 2024 at 10:06 AM
> *To: *OpenSIPS users mailling list , Prathibha
> B 
> *Subject: *Re: [OpenSIPS-Users] external applications
>
> * EXTERNAL EMAIL - Please use caution with links and attachments *
>
>
> --
>
> Use the dialog events:
>
> https://opensips.org/html/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED
>
> And you subscribe from outside OpenSIPS for such events:
> https://www.opensips.org/Documentation/Interface-Events-3-4
>
> Regards,
>
> Bogdan-Andrei Iancu
>
>
>
> OpenSIPS Founder and Developer
>
>   https://www.opensips-solutions.com
>
>   https://www.siphub.com
>
> On 20.03.2024 12:16, Prathibha B wrote:
>
> No. I want to pass START, CONNECT, END messages from OpenSIPS to external
> application.
>
>
>
> On Wed, 20 Mar 2024 at 15:42, Marcin Groszek  wrote:
>
> Well, to execute external command from opensips you may want to use EXEC
> module.
>
> this is a manual for v3.2:
>
> https://opensips.org/html/docs/modules/3.2.x/exec.html
>
>
>
> On 3/20/2024 5:00 AM, Prathibha B wrote:
>
> How to integrate OpenSIPS with external applications?
>
>
>
> --
>
> Regards,
>
> B.Prathibha
>
>
>
> ___
>
> Users mailing list
>
> Users@lists.opensips.org
>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> --
>
> Best Regards:
>
> Marcin Groszek
>
> Business Phone Service
>
> https://www.voipplus.net
>
> ___
> Users 

Re: [OpenSIPS-Users] memory fragmentation when calling dr_reload.

2024-04-04 Thread Bogdan-Andrei Iancu

That's EOL for quite some time :(

Either consider more pkg mem (to cope with fragmentation) , either an 
upgrade to 3.4


Regards,

Bogdan-Andrei Iancu

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

On 03.04.2024 17:34, Johan De Clercq wrote:

A very old one 2.2.7

Op wo 3 apr 2024 om 16:26 schreef Bogdan-Andrei Iancu 
:


What OpenSIPS version is there ?

Regards,

Bogdan-Andrei Iancu

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

On 03.04.2024 17:04, Johan De Clercq wrote:

In addtion, I have 24 children, so can I increase in some way
only the process that handles the fifo requests ?

Op wo 3 apr 2024 om 15:33 schreef Johan De Clercq :

Hi,

A client has a very big dynamic routing rule set. (dr_rules
>= 2.1 gb ).
When reloading the db in opensips (dr_reload), I see below
error in the log

ERROR:core:fm_malloc: not enough free pkg memory (268008864
bytes left), please increase the "-M" command line parameter!
the -M parameter is now at 256. Should I increase this to
3000 to work aroun this issue ?



___
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