Re: [OpenSIPS-Users] Launch and async

2024-04-18 Thread Parthesh Bhavsar via Users
Okay, I'll use some other way to do this wait and action requirement as
sleep() are decreasing performance for longer periods of time.

On Thu, 18 Apr, 2024, 22:20 Brett Nemeroff,  wrote:

> Can you do those operations outside of opensips? For example, can you
> receive that 200 and push an event to RabbitMQ and have an outboard worker
> do the delay and action?
> -Brett
>
>
> On Tue, Apr 16, 2024 at 9:27 AM Parthesh Bhavsar via Users <
> users@lists.opensips.org> wrote:
>
>> I'm facing a challenge in my OpenSIPS implementation where I need to
>> perform certain operations after receiving a 200 OK response, but only
>> after waiting for 10 seconds. Currently, I'm considering using the sleep()
>> function, but I'm concerned about its impact on performance.
>>
>> Is there a recommended approach to achieve this functionality without
>> compromising OpenSIPS performance? I'd appreciate any advice or alternative
>> solutions you can offer.
>>
>>
>> Regards,
>>
>> *Parthesh Bhavsar | Software Engineer | VOIP*
>>
>>
>>
>> On Tue, Apr 16, 2024 at 7:39 PM Parthesh Bhavsar <
>> parthesh.bhav...@ecosmob.com> wrote:
>>
>>> Hello,
>>> I want to use Launch and async function for function sleep() as I need
>>> to wait for some time to do some operations but from the route which I use
>>> in above function I am not able to use any variable for my operation and
>>> from documentation it seems only able to use those variable which sleep()
>>> function use so is there any alternative solution to get variable??? or any
>>> other function on which I can wait for a specific time without blocking
>>> opensips??
>>>
>>>
>>> Regards,
>>>
>>> *Parthesh Bhavsar | Software Engineer | VOIP*
>>>
>>>
>>
>> *[image: https://www.ecosmob.com/opensips-summit/]
>> <https://www.ecosmob.com/opensips-summit/>*
>> *Disclaimer*
>> In addition to generic Disclaimer which you have agreed on our website,
>> any views or opinions presented in this email are solely those of the
>> originator and do not necessarily represent those of the Company or its
>> sister concerns. Any liability (in negligence, contract or otherwise)
>> arising from any third party taking any action, or refraining from taking
>> any action on the basis of any of the information contained in this email
>> is hereby excluded.
>>
>> *Confidentiality*
>> This communication (including any attachment/s) is intended only for the
>> use of the addressee(s) and contains information that is PRIVILEGED AND
>> CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
>> of this communication is prohibited. Please inform originator if you have
>> received it in error.
>>
>> *Caution for viruses, malware etc.*
>> This communication, including any attachments, may not be free of
>> viruses, trojans, similar or new contaminants/malware, interceptions or
>> interference, and may not be compatible with your systems. You shall carry
>> out virus/malware scanning on your own before opening any attachment to
>> this e-mail. The sender of this e-mail and Company including its sister
>> concerns shall not be liable for any damage that may incur to you as a
>> result of viruses, incompleteness of this message, a delay in receipt of
>> this message or any other computer problems.
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>

-- 
* <https://www.ecosmob.com/opensips-summit/>
*
*Disclaimer*

In addition to 
generic Disclaimer which you have agreed on our website, any views or 
opinions presented in this email are solely those of the originator and do 
not necessarily represent those of the Company or its sister concerns. Any 
liability (in negligence, contract or otherwise) arising from any third 
party taking any action, or refraining from taking any action on the basis 
of any of the information contained in this email is hereby excluded.



*Confidentiality*
This communication (including any attachment/s) is 
intended only for the use of the addressee(s) and contains information that 
is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, 
distribution, or copying of this communication is prohibited. Please inform 
originator if you have received it in error.


*Caution for viruses, 
malware etc.*
This communication, including any attachments, may not be 
free of viruses, trojans, similar or new contaminants/malware, 
i

Re: [OpenSIPS-Users] Launch and async

2024-04-16 Thread Parthesh Bhavsar via Users
I'm facing a challenge in my OpenSIPS implementation where I need to
perform certain operations after receiving a 200 OK response, but only
after waiting for 10 seconds. Currently, I'm considering using the sleep()
function, but I'm concerned about its impact on performance.

Is there a recommended approach to achieve this functionality without
compromising OpenSIPS performance? I'd appreciate any advice or alternative
solutions you can offer.


Regards,

*Parthesh Bhavsar | Software Engineer | VOIP*



On Tue, Apr 16, 2024 at 7:39 PM Parthesh Bhavsar <
parthesh.bhav...@ecosmob.com> wrote:

> Hello,
> I want to use Launch and async function for function sleep() as I need to
> wait for some time to do some operations but from the route which I use in
> above function I am not able to use any variable for my operation and from
> documentation it seems only able to use those variable which sleep()
> function use so is there any alternative solution to get variable??? or any
> other function on which I can wait for a specific time without blocking
> opensips??
>
>
> Regards,
>
> *Parthesh Bhavsar | Software Engineer | VOIP*
>
>

-- 
* 
*
*Disclaimer*

In addition to 
generic Disclaimer which you have agreed on our website, any views or 
opinions presented in this email are solely those of the originator and do 
not necessarily represent those of the Company or its sister concerns. Any 
liability (in negligence, contract or otherwise) arising from any third 
party taking any action, or refraining from taking any action on the basis 
of any of the information contained in this email is hereby excluded.



*Confidentiality*
This communication (including any attachment/s) is 
intended only for the use of the addressee(s) and contains information that 
is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, 
distribution, or copying of this communication is prohibited. Please inform 
originator if you have received it in error.


*Caution for viruses, 
malware etc.*
This communication, including any attachments, may not be 
free of viruses, trojans, similar or new contaminants/malware, 
interceptions or interference, and may not be compatible with your systems. 
You shall carry out virus/malware scanning on your own before opening any 
attachment to this e-mail. The sender of this e-mail and Company including 
its sister concerns shall not be liable for any damage that may incur to 
you as a result of viruses, incompleteness of this message, a delay in 
receipt of this message or any other computer problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Launch and async

2024-04-16 Thread Parthesh Bhavsar via Users
Hello,
I want to use Launch and async function for function sleep() as I need to
wait for some time to do some operations but from the route which I use in
above function I am not able to use any variable for my operation and from
documentation it seems only able to use those variable which sleep()
function use so is there any alternative solution to get variable??? or any
other function on which I can wait for a specific time without blocking
opensips??


Regards,

*Parthesh Bhavsar | Software Engineer | VOIP*

-- 
* 
*
*Disclaimer*

In addition to 
generic Disclaimer which you have agreed on our website, any views or 
opinions presented in this email are solely those of the originator and do 
not necessarily represent those of the Company or its sister concerns. Any 
liability (in negligence, contract or otherwise) arising from any third 
party taking any action, or refraining from taking any action on the basis 
of any of the information contained in this email is hereby excluded.



*Confidentiality*
This communication (including any attachment/s) is 
intended only for the use of the addressee(s) and contains information that 
is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, 
distribution, or copying of this communication is prohibited. Please inform 
originator if you have received it in error.


*Caution for viruses, 
malware etc.*
This communication, including any attachments, may not be 
free of viruses, trojans, similar or new contaminants/malware, 
interceptions or interference, and may not be compatible with your systems. 
You shall carry out virus/malware scanning on your own before opening any 
attachment to this e-mail. The sender of this e-mail and Company including 
its sister concerns shall not be liable for any damage that may incur to 
you as a result of viruses, incompleteness of this message, a delay in 
receipt of this message or any other computer problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Waiting for 200 OK

2024-04-09 Thread Parthesh Bhavsar via Users
Sorry my bad!
Actually I need to Wait for a specific time after 200 OK received from Bleg.
So in that specific time If I received Re-invite from Aleg then I need to
simply realy or if not received then need to do some other operation.

Regards,
*Parthesh Bhavsar | Software Engineer | VOIP*



On Tue, Apr 9, 2024 at 9:11 PM Ben Newlin  wrote:

> This is a valid point that I missed. You can’t send an INVITE back to the
> UAC while the original INVITE remains unanswered. The UAC should/must
> respond with a 491 Request Pending.
>
>
>
> This is the use case that UPDATE was created for, and that would work if
> the UAC supports it. If it must be INVITE then you would have to be a B2BUA
> because you would have to answer the initial INVITE from the UAC while the
> outgoing INVITE was still in progress, so that you could do the re-INVITE.
>
>
>
> Ben Newlin
>
>
>
> *From: *Bogdan-Andrei Iancu 
> *Date: *Tuesday, April 9, 2024 at 10:55 AM
> *To: *Parthesh Bhavsar , OpenSIPS users
> mailling list , Ben Newlin <
> ben.new...@genesys.com>
> *Subject: *Re: [OpenSIPS-Users] Waiting for 200 OK
>
> * EXTERNAL EMAIL - Please use caution with links and attachments *
>
>
> --
>
> Hi,
>
> my 2 cents here - how comes you want to send a RE-INVITE _BEFORE_ having
> the dialog established???
>
> Regards,
>
> Bogdan-Andrei Iancu
>
>
>
> OpenSIPS Founder and Developer
>
>   https://www.opensips-solutions.com
>
>   https://www.siphub.com
>
> On 09.04.2024 17:35, Parthesh Bhavsar via Users wrote:
>
> It seems after setting T_fr_timeout parameter it was sending a CANCEL
> request to another leg but for my requirement I need to send Reinvite. Also
> for generating Reinvite I have used  dlg_send_sequential() as I use
> opensips as a proxy server. Any other modules on which I look for?
>
>
>
> Regards,
>
> *Parthesh Bhavsar | Software Engineer | VOIP*
>
>
>
>
>
> On Tue, Apr 9, 2024 at 7:36 PM Ben Newlin  wrote:
>
> The timing requirement can be solved using the $T_fr_timeout parameter [1].
>
>
>
> For sending a re-Invite back to the UAC I believe you’d have to be a B2BUA.
>
>
>
> [1] - https://opensips.org/docs/modules/3.4.x/tm.html#pv_T_fr_timeout
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Parthesh
> Bhavsar via Users 
> *Date: *Tuesday, April 9, 2024 at 5:31 AM
> *To: *OpenSIPS users mailling list 
> *Subject: *[OpenSIPS-Users] Waiting for 200 OK
>
> * EXTERNAL EMAIL - Please use caution with links and attachments *
>
>
> --
>
> Hello,
>
> I have a requirement where If I get 183 responses then I need to wait for
> a specific period of time for 200 OK and if 200 OK is not received in that
> time then I need to send Reinvte back to UA with some modifications. I have
> gone through the SST module but have not  found anything relevant to match
> my requirements. Can anyone suggest some module or function on which I can
> go further to meet my requirements.
>
>
> Regards,
>
> *Parthesh Bhavsar | Software Engineer | VOIP*
>
>
>
>
>
> * <https://www.ecosmob.com/opensips-summit>*
>
> *Disclaimer*
>
> In addition to generic Disclaimer which you have agreed on our website,
> any views or opinions presented in this email are solely those of the
> originator and do not necessarily represent those of the Company or its
> sister concerns. Any liability (in negligence, contract or otherwise)
> arising from any third party taking any action, or refraining from taking
> any action on the basis of any of the information contained in this email
> is hereby excluded.
>
>
>
> *Confidentiality*
>
> This communication (including any attachment/s) is intended only for the
> use of the addressee(s) and contains information that is PRIVILEGED AND
> CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
> of this communication is prohibited. Please inform originator if you have
> received it in error.
>
>
>
> *Caution for viruses, malware etc.*
>
> This communication, including any attachments, may not be free of viruses,
> trojans, similar or new contaminants/malware, interceptions or
> interference, and may not be compatible with your systems. You shall carry
> out virus/malware scanning on your own before opening any attachment to
> this e-mail. The sender of this e-mail and Company including its sister
> concerns shall not be liable for any damage that may incur to you as a
> result of viruses, incompleteness of this message, a delay in receipt of
> this message or any other computer problems.
>
>
>
> * <https://ww

Re: [OpenSIPS-Users] Waiting for 200 OK

2024-04-09 Thread Parthesh Bhavsar via Users
It seems after setting T_fr_timeout parameter it was sending a CANCEL
request to another leg but for my requirement I need to send Reinvite. Also
for generating Reinvite I have used  dlg_send_sequential() as I use
opensips as a proxy server. Any other modules on which I look for?

Regards,
*Parthesh Bhavsar | Software Engineer | VOIP*


On Tue, Apr 9, 2024 at 7:36 PM Ben Newlin  wrote:

> The timing requirement can be solved using the $T_fr_timeout parameter [1].
>
>
>
> For sending a re-Invite back to the UAC I believe you’d have to be a B2BUA.
>
>
>
> [1] - https://opensips.org/docs/modules/3.4.x/tm.html#pv_T_fr_timeout
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Parthesh
> Bhavsar via Users 
> *Date: *Tuesday, April 9, 2024 at 5:31 AM
> *To: *OpenSIPS users mailling list 
> *Subject: *[OpenSIPS-Users] Waiting for 200 OK
>
> * EXTERNAL EMAIL - Please use caution with links and attachments *
>
>
> --
>
> Hello,
>
> I have a requirement where If I get 183 responses then I need to wait for
> a specific period of time for 200 OK and if 200 OK is not received in that
> time then I need to send Reinvte back to UA with some modifications. I have
> gone through the SST module but have not  found anything relevant to match
> my requirements. Can anyone suggest some module or function on which I can
> go further to meet my requirements.
>
>
> Regards,
>
> *Parthesh Bhavsar | Software Engineer | VOIP*
>
>
>
>
>
> * <https://www.ecosmob.com/opensips-summit/>*
>
> *Disclaimer*
>
> In addition to generic Disclaimer which you have agreed on our website,
> any views or opinions presented in this email are solely those of the
> originator and do not necessarily represent those of the Company or its
> sister concerns. Any liability (in negligence, contract or otherwise)
> arising from any third party taking any action, or refraining from taking
> any action on the basis of any of the information contained in this email
> is hereby excluded.
>
>
>
> *Confidentiality*
>
> This communication (including any attachment/s) is intended only for the
> use of the addressee(s) and contains information that is PRIVILEGED AND
> CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
> of this communication is prohibited. Please inform originator if you have
> received it in error.
>
>
>
> *Caution for viruses, malware etc.*
>
> This communication, including any attachments, may not be free of viruses,
> trojans, similar or new contaminants/malware, interceptions or
> interference, and may not be compatible with your systems. You shall carry
> out virus/malware scanning on your own before opening any attachment to
> this e-mail. The sender of this e-mail and Company including its sister
> concerns shall not be liable for any damage that may incur to you as a
> result of viruses, incompleteness of this message, a delay in receipt of
> this message or any other computer problems.
>

-- 
* <https://www.ecosmob.com/opensips-summit/>
*
*Disclaimer*

In addition to 
generic Disclaimer which you have agreed on our website, any views or 
opinions presented in this email are solely those of the originator and do 
not necessarily represent those of the Company or its sister concerns. Any 
liability (in negligence, contract or otherwise) arising from any third 
party taking any action, or refraining from taking any action on the basis 
of any of the information contained in this email is hereby excluded.



*Confidentiality*
This communication (including any attachment/s) is 
intended only for the use of the addressee(s) and contains information that 
is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, 
distribution, or copying of this communication is prohibited. Please inform 
originator if you have received it in error.


*Caution for viruses, 
malware etc.*
This communication, including any attachments, may not be 
free of viruses, trojans, similar or new contaminants/malware, 
interceptions or interference, and may not be compatible with your systems. 
You shall carry out virus/malware scanning on your own before opening any 
attachment to this e-mail. The sender of this e-mail and Company including 
its sister concerns shall not be liable for any damage that may incur to 
you as a result of viruses, incompleteness of this message, a delay in 
receipt of this message or any other computer problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Waiting for 200 OK

2024-04-09 Thread Parthesh Bhavsar via Users
Hello,
I have a requirement where If I get 183 responses then I need to wait for a
specific period of time for 200 OK and if 200 OK is not received in that
time then I need to send Reinvte back to UA with some modifications. I have
gone through the SST module but have not  found anything relevant to match
my requirements. Can anyone suggest some module or function on which I can
go further to meet my requirements.

Regards,
*Parthesh Bhavsar | Software Engineer | VOIP*

-- 
* 
*
*Disclaimer*

In addition to 
generic Disclaimer which you have agreed on our website, any views or 
opinions presented in this email are solely those of the originator and do 
not necessarily represent those of the Company or its sister concerns. Any 
liability (in negligence, contract or otherwise) arising from any third 
party taking any action, or refraining from taking any action on the basis 
of any of the information contained in this email is hereby excluded.



*Confidentiality*
This communication (including any attachment/s) is 
intended only for the use of the addressee(s) and contains information that 
is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, 
distribution, or copying of this communication is prohibited. Please inform 
originator if you have received it in error.


*Caution for viruses, 
malware etc.*
This communication, including any attachments, may not be 
free of viruses, trojans, similar or new contaminants/malware, 
interceptions or interference, and may not be compatible with your systems. 
You shall carry out virus/malware scanning on your own before opening any 
attachment to this e-mail. The sender of this e-mail and Company including 
its sister concerns shall not be liable for any damage that may incur to 
you as a result of viruses, incompleteness of this message, a delay in 
receipt of this message or any other computer problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] REINVITE IN OPENSIPS

2024-04-01 Thread Parthesh Bhavsar via Users
Thanks, It works!!!
Regards,

*Parthesh Bhavsar | Software Engineer | VOIP*

On Mon, Apr 1, 2024 at 2:50 PM Bogdan-Andrei Iancu 
wrote:

> Hi,
>
> Check this dlg_send_requential() [1] function.
>
> [1]
> https://opensips.org/html/docs/modules/3.4.x/dialog.html#func_dlg_send_sequential
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
>   https://www.siphub.com
>
> On 01.04.2024 09:06, Parthesh Bhavsar via Users wrote:
>
> Hi All,
> I have a requirement where I need to send ReInvite from opensips after
> receiving 200 OK. So First I need to confirm whether Opensips is able to
> send ReInvite ?? I have gone through module b2b_logic and b2b_entities
> for the same and it seems opensips sends ReInvite for late SDP negotiations
> but I want to send after successful bridge for some other task.
>
> Can anyone suggest to me which module I need to spend my time on to meet
> my requirements ??
>
> Regards,
>
> *Parthesh Bhavsar | Software Engineer | VOIP*
> *+91 9638867145*
>
> *Ecosmob Technologies Pvt Ltd.* <https://www.ecosmob.com/>
>
> *Disclaimer*
> In addition to generic Disclaimer which you have agreed on our website,
> any views or opinions presented in this email are solely those of the
> originator and do not necessarily represent those of the Company or its
> sister concerns. Any liability (in negligence, contract or otherwise)
> arising from any third party taking any action, or refraining from taking
> any action on the basis of any of the information contained in this email
> is hereby excluded.
>
> *Confidentiality*
> This communication (including any attachment/s) is intended only for the
> use of the addressee(s) and contains information that is PRIVILEGED AND
> CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
> of this communication is prohibited. Please inform originator if you have
> received it in error.
>
> *Caution for viruses, malware etc.*
> This communication, including any attachments, may not be free of viruses,
> trojans, similar or new contaminants/malware, interceptions or
> interference, and may not be compatible with your systems. You shall carry
> out virus/malware scanning on your own before opening any attachment to
> this e-mail. The sender of this e-mail and Company including its sister
> concerns shall not be liable for any damage that may incur to you as a
> result of viruses, incompleteness of this message, a delay in receipt of
> this message or any other computer problems.
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>

-- 
*Disclaimer*

In addition to generic Disclaimer which you have agreed on 
our website, any views or opinions presented in this email are solely those 
of the originator and do not necessarily represent those of the Company or 
its sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from taking 
any action on the basis of any of the information contained in this email 
is hereby excluded.



*Confidentiality*
This communication (including any 
attachment/s) is intended only for the use of the addressee(s) and contains 
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, 
dissemination, distribution, or copying of this communication is 
prohibited. Please inform originator if you have received it in error.


*Caution for viruses, malware etc.*
This communication, including any 
attachments, may not be free of viruses, trojans, similar or new 
contaminants/malware, interceptions or interference, and may not be 
compatible with your systems. You shall carry out virus/malware scanning on 
your own before opening any attachment to this e-mail. The sender of this 
e-mail and Company including its sister concerns shall not be liable for 
any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer 
problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] REINVITE IN OPENSIPS

2024-03-31 Thread Parthesh Bhavsar via Users
Hi All,
I have a requirement where I need to send ReInvite from opensips after
receiving 200 OK. So First I need to confirm whether Opensips is able to
send ReInvite ?? I have gone through module b2b_logic and b2b_entities
for the same and it seems opensips sends ReInvite for late SDP negotiations
but I want to send after successful bridge for some other task.

Can anyone suggest to me which module I need to spend my time on to meet my
requirements ??

Regards,

*Parthesh Bhavsar | Software Engineer | VOIP*
*+91 9638867145*

*Ecosmob Technologies Pvt Ltd.* 

-- 
*Disclaimer*

In addition to generic Disclaimer which you have agreed on 
our website, any views or opinions presented in this email are solely those 
of the originator and do not necessarily represent those of the Company or 
its sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from taking 
any action on the basis of any of the information contained in this email 
is hereby excluded.



*Confidentiality*
This communication (including any 
attachment/s) is intended only for the use of the addressee(s) and contains 
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, 
dissemination, distribution, or copying of this communication is 
prohibited. Please inform originator if you have received it in error.


*Caution for viruses, malware etc.*
This communication, including any 
attachments, may not be free of viruses, trojans, similar or new 
contaminants/malware, interceptions or interference, and may not be 
compatible with your systems. You shall carry out virus/malware scanning on 
your own before opening any attachment to this e-mail. The sender of this 
e-mail and Company including its sister concerns shall not be liable for 
any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer 
problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users