> The duration of the media playback is returned from the play_media()
> command (see `media_duration` modparam). You could use some sort of
> timer to invoke media unblocking after media playback ends. Sadly my
> Kamailio-Fu isn't strong enough to be able to tell you how to run this
> sort of timer. :)
>
> Cheers
Thank you for the hint.
I was thinking about timers, but rtimer cannot be triggered in an event
route. I used a "timer" module, it could trigger another route from the
event route but when a new route is triggered unblock_media() is not
aware of the call-id and if i assign call-id to a variable in the event
route, that variable is unavailable at new route. Hope that make sense.
here is my peace of code:
loadmodule "timer.so"
modparam("timer", "declare_timer", "PB_TIMER=START,5000");
route[START]{
xlog("current call id at event route is $ci, but call-id avp is
$avp(call_id)");
unblock_media("all");
timer_enable("PB_TIMER",0); #we need to disable timer or it will be
triggered over and over again
}
event_route[dialog:start]{
xlog("L_INFO", "dialog started, received 200OK");
#block_media();
play_media("all file=/usr/local/src/myfile.wav");
$avp(call_id)=$ci;
timer_enable("PB_TIMER",1);
}
Hi,
I'm using latest kamailio 5.6.2 and rtpengine.
I need to play announcement to both parties when call is answered by
callee. Now I run play_media in event route but when audio start
announcement sounds like we have a 50% packet loss. After it is
completed there is no problem with audio both sides. I figured out that
if i do block_media() my announcement play perfectly but i dont
understand how to do unblock_audio() after announcement ends.
Appriciate any help!
here is my code:
event_route[dialog:start]{
xlog("L_INFO", "dialog started, received 200OK");
block_media();
play_media("all file=/usr/local/src/myfile.mp3");
#unblock_media();
}
--
Best Regards
Stepan Kislovich
Hi everyone,
I am using Kamailio as an IMS server. The UE first sends its SIP REGISTER
over TCP and gets a 401 in response. Then the UE starts sending its packets
over ESP. These ESP packets reach P-CSCF but are not delivered to its
process by the kernel. We can see ESP packets in P-CSCF using wireshark.
The ports used are correct (both client and server) based on
their prior negotiations. We have also checked xfrm policies using the
command `ip xfrm policy list` and seems right regarding prior negotiations.
Our Linux kernel version is 5.4 and the OS is Ubuntu 20.04. Has anyone any
clue of the root cause of this problem? Any ideas are appreciated.
Thanks,
Aliakbar
hello,
I'm not very familiar with PHP, so this may be a stupid question.
I'm following https://github.com/kamailio/kamcli to install kamcli. Now i am at
$ pip3 install -r requirements/requirements.txt
which i should "run inside kamcli folder".
So far, I don't have a kamcli folder, so i assume i have to create it. Any recommendations where ?
Thanks in advance,
Volker
So I have a very odd situation that requires me to suppress retransmissions when using t_reply() to send a response back to a UAC that is horribly broken but I'm stuck with for the time being. In the previous iteration of this platform it was fine since I was using a stateless reply, so even though it wasn't "right" it still worked out. I need to replicate this behavior in the event route for http_async_client(), which prevents me from being able to use t_release().
Anyone have any clever ideas?
Brooks Bridges
1200 S. Rogers Circle, Unit 6
Boca Raton, FL 33487
Office: 916-235-2097 Main: 888-444-1111
email: bbridges(a)call48.com | web: www.call48.com
Confidentiality Notice: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named on the e-mail. If the reader of this e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading this e-mail is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.
Hi everyone,
I have some troubles using acc_json module. I can't load it and I don't
understand why it fails.
The configuration is quite basic: Debian 10 and Kamailio (fails in 5.5
and 5.6) installed using APT repository.
Here is parts of my config:
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "dialog.so"
loadmodule "acc.so"
loadmodule "acc_json.so"
modparam("acc_json", "cdr_enable", 1)
I also tried with those 4 additionnal settings with no success:
modparam("acc_json", "cdr_output_syslog", 1)
modparam("acc_json", "cdr_log_facility", "LOG_LOCAL3")
modparam("acc_json", "cdr_enable", 1)
modparam("acc_json", "cdr_expired_dlg_enable", 1)
As soon as I set cdr_enable to 1, it displays the "*cannot register ACC
CDR JSON engine*".
Here is logs:
0(2488) DEBUG: <core> [core/sr_module.c:969]: init_mod(): acc_json
0(2488) DEBUG: <core> [core/sr_module.c:722]: find_mod_export_record(): found export of <bind_acc> in module acc [/usr/lib/x86_64-linux-gnu/kamailio/modules/acc.so]
0(2488) INFO: acc_json [acc_json_mod.c:159]: mod_init(): janson version : 2.12
0(2488) DEBUG: <core> [core/mem/q_malloc.c:374]: qm_malloc(): qm_malloc(0x7f0a6b154010, 56) called from acc: acc_mod.c: acc_register_engine(725)
0(2488) DEBUG: <core> [core/mem/q_malloc.c:419]: qm_malloc(): qm_malloc(0x7f0a6b154010, 56) returns address 0x7f0a6b220b40 frag. 0x7f0a6b220b08 (size=56) on 1 -th hit
0(2488) DEBUG: acc_json [acc_json_mod.c:269]: acc_json_init(): init ...
0(2488) DEBUG: acc [acc_mod.c:741]: acc_register_engine(): new acc engine registered: json
0(2488) DEBUG: <core> [core/sr_module.c:722]: find_mod_export_record(): found export of <load_dlg> in module dialog [/usr/lib/x86_64-linux-gnu/kamailio/modules/dialog.so]
0(2488) ERROR: acc_json [acc_json_mod.c:245]: mod_init(): cannot register ACC CDR JSON engine
0(2488) ERROR: <core> [core/sr_module.c:974]: init_mod(): Error while initializing module acc_json (/usr/lib/x86_64-linux-gnu/kamailio/modules/acc_json.so)
ERROR: error while initializing modules
May it be related to the Jansson version ? I use the native one from
Debian 10, v2.12.
Do you have any advice, or some tips to debug my issue ?
I don't really want to use acc module and parse CDRs manually from
syslog, json is far easiest for this job.
Thank you
--
Alexis
R&D
Sewan
Apparently, the emails are received on the fr unisys dot com address.
So maybe there is a need to clean the sr-users(a)lists.kamailio.org
<mailto:sr-users@lists.kamailio.org> and
sr-users-bounces(a)lists.kamailio.org
<mailto:sr-users-bounces@lists.kamailio.org> list.
If this is the case, thanks to keep only the fr unisys dot com.
Cordialement.
Patrick GINHOUX
Unisys | +33 1 46 69 52 12 | +33 6 60 32 24 74 | patrick.ginhoux(a)unisys.com
De : Henning Westerholt <hw(a)gilawa.com>
Envoyé : lundi 10 octobre 2022 09:32
À : Ginhoux, Patrick <patrick.ginhoux(a)fr.unisys.com>
Objet : RE: Mails received twice in my Inbox
EXTERNAL EMAIL - Be cautious of all links and attachments.
Hello,
Ive checked last week directly on the list server. Maybe one subscription
is old and and does not send mails anymore, and the mails are doubled from
your side? Just guessing obviously, have not checked it yet. You should be
able to check the email headers to see which address is actually used and
maybe some forwarding is done from your side.
If you like I can remove one subscription, let me know which one.
Cheers,
Henning
From: Ginhoux, Patrick <patrick.ginhoux(a)fr.unisys.com
<mailto:patrick.ginhoux@fr.unisys.com> >
Sent: Monday, October 10, 2022 8:39 AM
To: Henning Westerholt <hw(a)gilawa.com <mailto:hw@gilawa.com> >
Subject: RE: Mails received twice in my Inbox
Im back again.
After having removed the address with fr unisys dot com, I received these
2 emails on my last one for approval :
And later, still 2 copies of each emails :
Same for yesterday :
Except you see something wrong for the address, Im going to investigate
internally.
Cordialement.
Patrick GINHOUX
De : Ginhoux, Patrick
Envoyé : jeudi 6 octobre 2022 14:10
À : Henning Westerholt <hw(a)gilawa.com <mailto:hw@gilawa.com> >
Cc : Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org
<mailto:sr-users@lists.kamailio.org> >
Objet : RE: Mails received twice in my Inbox
Thanks for the list. I have now removed the one with fr unisys dot com and
will wait for new emails on the other address.
But it is still strange this problem happened recently.
Cordialement.
Patrick GINHOUX
Unisys | +33 1 46 69 52 12 | +33 6 60 32 24 74 |
<mailto:patrick.ginhoux@unisys.com> patrick.ginhoux(a)unisys.com
De : Henning Westerholt <hw(a)gilawa.com <mailto:hw@gilawa.com> >
Envoyé : jeudi 6 octobre 2022 13:32
À : Ginhoux, Patrick <patrick.ginhoux(a)fr.unisys.com
<mailto:patrick.ginhoux@fr.unisys.com> >
Cc : Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org
<mailto:sr-users@lists.kamailio.org> >
Objet : RE: Mails received twice in my Inbox
EXTERNAL EMAIL - Be cautious of all links and attachments.
Hello,
you are subscribed with two addresses, only list the domains below:
at fr unisys dot com
at unisys dot com
You can change your subscription with the URL: <https://lists.kamailio.org>
https://lists.kamailio.org
Cheers,
Henning
From: Ginhoux, Patrick < <mailto:patrick.ginhoux@fr.unisys.com>
patrick.ginhoux(a)fr.unisys.com>
Sent: Thursday, October 6, 2022 1:25 PM
To: Henning Westerholt < <mailto:hw@gilawa.com> hw(a)gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <
<mailto:sr-users@lists.kamailio.org> sr-users(a)lists.kamailio.org>
Subject: RE: Mails received twice in my Inbox
Hi,
Im sure Im not registered with different account, but who can check that
in the mailing list to be sure ?
Actually, I registered in 2017 and this issue occurs recently but I cant
tell exactly since when.
Cordialement.
Patrick GINHOUX
Unisys | +33 1 46 69 52 12 | +33 6 60 32 24 74 |
<mailto:patrick.ginhoux@unisys.com> patrick.ginhoux(a)unisys.com
De : Henning Westerholt <hw(a)gilawa.com <mailto:hw@gilawa.com> >
Envoyé : jeudi 6 octobre 2022 11:06
À : Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org
<mailto:sr-users@lists.kamailio.org> >
Cc : Ginhoux, Patrick <patrick.ginhoux(a)fr.unisys.com
<mailto:patrick.ginhoux@fr.unisys.com> >
Objet : RE: Mails received twice in my Inbox
EXTERNAL EMAIL - Be cautious of all links and attachments.
Hello,
Strange issue. Stupid question, but you are not registered two times to the
mailing list, maybe with different accounts?
Cheers,
Henning
--
Henning Westerholt <https://skalatan.de/blog/> https://skalatan.de/blog/
Kamailio services <https://gilawa.com/> https://gilawa.com
From: sr-users < <mailto:sr-users-bounces@lists.kamailio.org>
sr-users-bounces(a)lists.kamailio.org> On Behalf Of Ginhoux, Patrick
Sent: Wednesday, October 5, 2022 10:04 AM
To: <mailto:sr-users@lists.kamailio.org> sr-users(a)lists.kamailio.org
Subject: [SR-Users] Mails received twice in my Inbox
Hi,
Since several weeks, I received the same mails twice in my Inbox.
Examples :
Is there anybody else that has the same thing ?
Thanks in advance for your help.
Cordialement.
Patrick GINHOUX
Hello,
Kamailio SIP Server v5.6.2 stable release is out.
This is a maintenance release of the latest stable branch, 5.6, that
includes fixes since the release of v5.6.1. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.6.x. Deployments running previous v5.6.x
versions are strongly recommended to be upgraded to v5.6.2.
For more details about version 5.6.2 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2022/10/kamailio-v5-6-2-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda