Hello,
I have question regarding of call forking on kamailio. Maybe somebody can help me.
For example I have table like
+--------------+---------------+--------------+---------------+--------------+
| First number | Second number | Third number | Fourth number | Fifth number |
+--------------+---------------+--------------+---------------+--------------+
| A number | B number | C number | --- | --- |
+--------------+---------------+--------------+---------------+--------------+
Table 1: Extra_numbers
or
separated by comma
+--------------------+-----------------------------+
| First_number | Additional_numbers |
+--------------------+-----------------------------+
| Primary number | 2nd,3rd number |
+--------------+-----------------------------------+
Table 2: Extra_numbers
+--------------------+---------------------------------+
| First_number | Additional_numbers |
+--------------------+---------------------------------+
| Primary number | 2nd number,3rd number,4 number |
+--------------------+---------------------------------+
Table 3: Extra_numbers
If kamailio get the call (INVITE) to some number/extension (for example, "1st number"), then in routing I request (select `Additional_numbers` from `Extra_numbers` where First_number='1 number';) from the mysql database and there I check, if "Additional_numbers" exists in the database.
Then I add "Additional_numbers" to the routing, and generate INVITE to "Additional_numbers" and 1 number. (always)
set r-uri ($ru) to first destination (2 number)
set r-uri ($ru) to second destination (3 number)
set r-uri ($ru) to Third destination (1 number)
set r-uri ($ru) to n destination
How could this be done?
Who can help with routing?
--
Best regards,
Fjodor Izmajlov
Hello everyone,
Tried to use the log-engine to push json formatted logs, here is a what
kamailio is sending, my question is, How can I set the kamailio prefix?
(232) { "kamailio.level": "DEBUG", "kamailio.module": "tm",
"kamailio.file": "timer.c", "kamailio.line": 634, "kamailio.function":
"wait_handler", "kamailio.callid": "", "kamailio.logprefix": "", "message":
"finished transaction: 0x7f232236b1c0 (p:0x7f232216ae58/n:0x7f232216ae58)" }
Thank you!
Abdirahman
Hello,
I have question regarding of call forking on kamailio. Maybe somebody can help me.
For example I have table like
+--------------+---------------+--------------+---------------+--------------+
| First number | Second number | Third number | Fourth number | Fifth number |
+--------------+---------------+--------------+---------------+--------------+
| A number | B number | C number | --- | --- |
+--------------+---------------+--------------+---------------+--------------+
Table 1: Extra_numbers
or
separated by comma
+--------------------+-----------------------------+
| First_number | Additional_numbers |
+--------------------+-----------------------------+
| Primary number | 2nd,3rd number |
+--------------+-----------------------------------+
Table 2: Extra_numbers
+--------------------+---------------------------------+
| First_number | Additional_numbers |
+--------------------+---------------------------------+
| Primary number | 2nd number,3rd number,4 number |
+--------------------+---------------------------------+
Table 3: Extra_numbers
If kamailio get the call (INVITE) to some number/extension (for example, "1st number"), then in routing I request (select `Additional_numbers` from `Extra_numbers` where First_number='1 number';) from the mysql database and there I check, if "Additional_numbers" exists in the database.
Then I add "Additional_numbers" to the routing, and generate INVITE to "Additional_numbers" and 1 number. (always)
set r-uri ($ru) to first destination (2 number)
set r-uri ($ru) to second destination (3 number)
set r-uri ($ru) to Third destination (1 number)
set r-uri ($ru) to n destination
How could this be done?
Who can help with routing?
--
Best regards,
Fjodor Izmajlov
Hello all,
A couple years ago the function filter_body() from textops would only work
with "application/sdp" if the string on the body was "Content-Type:
application/sdp\r\n". It would fail if there wasn't a space after ":" and
it would fail if there was present "\r\n\r\n" instead of "\r\n".
Is this the actual behaviour of the function or has it been changed to also
identify SDP in the formats mentioned above?
Best Regards,
Hi,
I'm using Kamailio version 5.3.7 with DISPATCHER module and I would like to
integrate my kamailio with a kamailio_exporter for monitoring using
Prometheus server.
Is it possible to collect data such as the number of total calls (inbound,
outbound) and plot time-graphs using those stats?
If so, what modules/functions would I need apart from the Dispatcher module
to be able to have efficient results?
Any degree of help will be appreciated.
*Hisham Jan*
*VoIP Engineer*
*0322-6398775*
Hello All,
I am using sca module to handle SLA presence and I am using
sca.update_appearance
RPC command to update the display name.
kamcmd sca.update_appearance sip:215@voice.example.com 3 held KELVIN
after executing the above command I am getting the KELVIN name on my
Polycom phone display but I want to also update the display number so is
there any way to update the display number for SLA presence using the SCA
module
Hi Guys,
We are running kamailio 4.4.6 on debian 8 and not had any issues, however we did suffer a segfault and a core was generated;
May 25 09:17:06 Kam-HA-1 /usr/sbin/kamailio[9560]: ALERT: <core> [main.c:740]: handle_sigs(): child process 9575 exited by a signal 11
May 25 09:17:06 Kam-HA-1 /usr/sbin/kamailio[9560]: ALERT: <core> [main.c:743]: handle_sigs(): core was generated
May 25 09:17:06 Kam-HA-1 /usr/sbin/kamailio[9560]: INFO: <core> [main.c:755]: handle_sigs(): terminating due to SIGCHLD
Running gdb on the core file generated returns this output;
Reading symbols from /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/.build-id/bc/fbd7e44c057e9e7e0680c2a5e8f6a47290c5ba.debug...done.
done.
[New LWP 9575]
warning: Error reading shared library list entry at 0x28250c3348
warning: Error reading shared library list entry at 0x79c0850018bf73e8
Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f /etc/kamailio/kamailio.'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000589cce in lval_pvar_assign (lv=<optimized out>, rv=<optimized out>, msg=<optimized out>, h=<optimized out>) at lvalue.c:353
353 lvalue.c: No such file or directory.
(gdb) bt full
#0 0x0000000000589cce in lval_pvar_assign (lv=<optimized out>, rv=<optimized out>, msg=<optimized out>, h=<optimized out>) at lvalue.c:353
r_avp = 0x6
destroy_pval = -874501672
pvar = 0x0
pval = {rs = {s = 0x0, len = 0}, ri = 0, flags = 0}
avp_val = {n = -874501704, s = {s = 0x7fb6cbe029b8 "\272/}", len = 5807505}, re = 0x7fb6cbe029b8}
v = 6
#1 lval_assign (h=0x7fb6cbe029d8, msg=0x344, lv=0x0, rve=0x0) at lvalue.c:400
rv = 0x7fb6cbe029b8
ret = -874501672
__FUNCTION__ = "lval_assign"
#2 0x0000000000000000 in ?? ()
No symbol table info available.
Is this of any help? Could someone advise what next steps might be?
Should we be looking to upgrade or is there a way to get more detail out of the core dump?
Many Thanks
Jon
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
Hi.
I've been aware of Kamailio, and on this list, for several years, but so far I
have not implemented Kamailio for any purpose.
I wonder if it could be a suitable tool for the following scenario.
I currently use Asterisk to register as a client, with username and password,
to other SIP PBXs in order to receive calls. As far as the other PBX is
concerned, Asterisk looks like a SIP telephone on a particular extension.
However, Asterisk's SIP client capabilities are limited to handling phone
calls only, and it specifically cannot receive presence information about the
state of other extensions from the remote PBX.
So, could Kamailio be used in the path between Asterisk and the remote PBX so
that the registration on the PBX comes from Kamailio (with any incoming calls
being passed to Asterisk), but with Kamailio also receiving presence
information from the remote PBX and making this available to some script or
application (which I would expect to have to write)?
The main point is that I don't want to have two things registering to the
remote PBX, one for calls and one for presence, so I'm looking for a way to
register with something which understands presence, and can also pass calls on
to Asterisk.
Can anyone suggest whether Kamailio could do this, and if so, point me at some
resources to help me get started; or alternatively suggest ideas on some other
tool which might be more appropriate than Kamailio?
Thanks for any ideas,
Antony.
--
Schrödinger's rule of data integrity: the condition of any backup is unknown
until a restore is attempted.
Please reply to the list;
please *don't* CC me.
Dear all
we have seen a core in a kamailio instance today, i attach you the bt in
dropbox
https://www.dropbox.com/s/3dg72cbuz7nvx5b/core_kamailio_21mayo?dl=0https://www.dropbox.com/s/iyko32fwfxj8aam/core_kamailio_21mayo_2?dl=0
seems there might be a relation async module when delaying a request after
communicating with the rtpengine ?¿
could you please take a look?
thanks a lot and regards
david
--
<http://www.sonoc.io/>
David Escartín
NOC engineer
*www.sonoc.io* <http://www.sonoc.io/>
[image: LinkedIn] <https://www.linkedin.com/company/sonoc>
[image: Twitter] <https://twitter.com/sonoc_>
[image: Facebook] <https://www.facebook.com/SONOCio/>
This e-mail is for the exclusive use of its recipients and may contain
business secrets or other confidential or privileged information. Any
unauthorised use, copying, publication or distribution of this e-mail is
strictly prohibited. If you are not the intended recipient, please inform
us immediately by replying to this e-mail and delete it, including any
attachments or copies on your system.
In accordance with the GDPR (EU) 2016/679 and the LOPDGDD 3/2018, we inform
you that this e-mail address and/or any other personal data you have
provided us with will be treated by SONOC with absolute confidentiality and
with the only purpose of providing you with the requested services, due to
your condition as a client, supplier or because you have requested
information from us at any time. These data will only be kept for as long
as required to comply with legal obligations. You can exercise your rights
at any time by sending an e-mail to: *dataprotection(a)sonoc.io*
<dataprotection(a)sonoc.io>*.* <dataprotection(a)sonoc.io>