Function "is_audio_on_hold()" has support for rfc2543 only,
where "hold" is indicated by setting the "c" destination addresses for the media streams to zero (0.0.0.0).
Could you please add support for rfc3264 for this function, where "hold" is indicated by a=sendonly/inactive.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1292
Module: kamailio
Branch: master
Commit: 536c5c36a2ef56daf0d2e9adcc02594ae95a6cc6
URL: https://github.com/kamailio/kamailio/commit/536c5c36a2ef56daf0d2e9adcc02594…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-02-02T20:31:38+01:00
modules: readme files regenerated - textops ... [skip ci]
---
Modified: src/modules/textops/README
---
Diff: https://github.com/kamailio/kamailio/commit/536c5c36a2ef56daf0d2e9adcc02594…
Patch: https://github.com/kamailio/kamailio/commit/536c5c36a2ef56daf0d2e9adcc02594…
---
diff --git a/src/modules/textops/README b/src/modules/textops/README
index 00875a04b0..775236a016 100644
--- a/src/modules/textops/README
+++ b/src/modules/textops/README
@@ -910,9 +910,10 @@ if(has_body("application/sdp"))
4.32. is_audio_on_hold()
The function returns true if the SIP message has a body attached and at
- least one audio stream in on hold. Only RFC2543 is supported
- (c=0.0.0.0). Hold detection based on RFC3264 is not supported
- (a=sendonly/inactive).
+ least one audio stream in on hold. The return code of the function
+ indicates the detected hold type:
+ * 1 - RFC2543 hold type: null connection IP detected
+ * 2 - RFC3264 hold type: inactive or sendonly attributes detected
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE and BRANCH_ROUTE.
@@ -921,7 +922,15 @@ if(has_body("application/sdp"))
...
if(is_audio_on_hold())
{
- # do interesting stuff here
+ switch ($rc) {
+ case 1:
+ # RFC2543 hold type
+ # do interesting stuff here
+ break;
+ case 2:
+ # RFC3264 hold type
+ # do interesting stuff here
+ break;
}
...
Module: kamailio
Branch: master
Commit: fad36ca8bc3526f71f8bb3af46afe3bb2a0f1789
URL: https://github.com/kamailio/kamailio/commit/fad36ca8bc3526f71f8bb3af46afe3b…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2018-02-02T14:30:53-05:00
textops: documentation updated for is_audio_on_hold()
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/fad36ca8bc3526f71f8bb3af46afe3b…
Patch: https://github.com/kamailio/kamailio/commit/fad36ca8bc3526f71f8bb3af46afe3b…
---
diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml
index 4cb99d708e..d5884bfd20 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -1258,6 +1258,19 @@ if(has_body("application/sdp"))
<para>
The function returns <emphasis>true</emphasis> if the SIP message
has a body attached and at least one audio stream in on hold.
+ The return code of the function indicates the detected hold type:
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>1</emphasis> - RFC2543 hold type:
+ null connection IP detected
+ </para>
+ </listitem>
+ <listitem>
+ <para><emphasis>2</emphasis> - RFC3264 hold type:
+ inactive or sendonly attributes detected
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
@@ -1269,7 +1282,15 @@ if(has_body("application/sdp"))
...
if(is_audio_on_hold())
{
- # do interesting stuff here
+ switch ($rc) {
+ case 1:
+ # RFC2543 hold type
+ # do interesting stuff here
+ break;
+ case 2:
+ # RFC3264 hold type
+ # do interesting stuff here
+ break;
}
...
</programlisting>
Hello..
Now most sip soft client in required push wakeup phone.
So for that required android, ios push notifications module.
I have seen some one have developed some module but it is old.
So if possible so please write push notifications for wakeup phone module.
Thanks
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1425
Module: kamailio
Branch: 5.1
Commit: 45233bf5d736b7f47390d150d41511702212183b
URL: https://github.com/kamailio/kamailio/commit/45233bf5d736b7f47390d150d415117…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2018-02-02T14:11:41-05:00
textops: update documentation for is_audio_on_hold()
(cherry picked from commit def7be2a3a60039c21c0711153152533b8ceb836)
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/45233bf5d736b7f47390d150d415117…
Patch: https://github.com/kamailio/kamailio/commit/45233bf5d736b7f47390d150d415117…
---
diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml
index f94183dabf..4cb99d708e 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -1258,8 +1258,6 @@ if(has_body("application/sdp"))
<para>
The function returns <emphasis>true</emphasis> if the SIP message
has a body attached and at least one audio stream in on hold.
- Only RFC2543 is supported (c=0.0.0.0).
- Hold detection based on RFC3264 is not supported (a=sendonly/inactive).
</para>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
Module: kamailio
Branch: master
Commit: def7be2a3a60039c21c0711153152533b8ceb836
URL: https://github.com/kamailio/kamailio/commit/def7be2a3a60039c21c071115315253…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2018-02-02T14:08:41-05:00
textops: update documentation for is_audio_on_hold()
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/def7be2a3a60039c21c071115315253…
Patch: https://github.com/kamailio/kamailio/commit/def7be2a3a60039c21c071115315253…
---
diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml
index f94183dabf..4cb99d708e 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -1258,8 +1258,6 @@ if(has_body("application/sdp"))
<para>
The function returns <emphasis>true</emphasis> if the SIP message
has a body attached and at least one audio stream in on hold.
- Only RFC2543 is supported (c=0.0.0.0).
- Hold detection based on RFC3264 is not supported (a=sendonly/inactive).
</para>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,