Re: [SR-Users] New blog article: Kamailio as an SBC - five years on

2018-06-19 Thread Danny Roberts
Got it and thanks for your feedback been very helpful.

-Original Message-
From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Alex 
Balashov
Sent: Tuesday, June 19, 2018 2:51 PM
To: f...@palner.com; Kamailio (SER) - Users Mailing List 

Subject: Re: [SR-Users] New blog article: Kamailio as an SBC - five years on

Mind you, SIREMIS will allow you to modify underlying database tables for 
database-backed modules, and will also expose some management and monitoring 
information.

But it doesn't solve the core problem of getting Kamailio to do what you want 
it to do. You still have to learn to write that. There aren't really any 
shortcuts.

On Tue, Jun 19, 2018 at 02:24:07PM -0400, Fred Posner wrote:

> On 6/19/18 2:20 PM, Danny Roberts wrote:
> > Is there any GUI for Kamailio?
> >
> 
> Yes. See: Siremis.
> 
> http://siremis.asipto.com/
> 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] New blog article: Kamailio as an SBC - five years on

2018-06-19 Thread Alex Balashov
Mind you, SIREMIS will allow you to modify underlying database tables
for database-backed modules, and will also expose some management and
monitoring information.

But it doesn't solve the core problem of getting Kamailio to do what you
want it to do. You still have to learn to write that. There aren't
really any shortcuts.

On Tue, Jun 19, 2018 at 02:24:07PM -0400, Fred Posner wrote:

> On 6/19/18 2:20 PM, Danny Roberts wrote:
> > Is there any GUI for Kamailio?
> >
> 
> Yes. See: Siremis.
> 
> http://siremis.asipto.com/
> 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] New blog article: Kamailio as an SBC - five years on

2018-06-19 Thread Fred Posner

On 6/19/18 2:20 PM, Danny Roberts wrote:
> Is there any GUI for Kamailio?
>

Yes. See: Siremis.

http://siremis.asipto.com/


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] New blog article: Kamailio as an SBC - five years on

2018-06-19 Thread Danny Roberts
Is there any GUI for Kamailio?

-Original Message-
From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Alex 
Balashov
Sent: Tuesday, June 19, 2018 1:19 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] New blog article: Kamailio as an SBC - five years on

This is an update to my original 2013 article on this topic:

http://www.evaristesys.com/blog/kamailio-as-an-sbc-five-years-on/

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] KEMI routing script Python exceptions with empty traceback

2018-06-19 Thread Michael Loughrey
I confirmed that the issue was the missing return values for
ksr_dialog_event() and ksr_htable_event(). Once added the exception errors
no longer occur. Thanks for the help.

Cheers
Mike

On Mon, 18 Jun 2018 at 21:26, Michael Loughrey  wrote:

> Thanks for the tip Anthony. I do indeed have a couple of ksr_ routines
> returning no value.
>
> From kamailio.cfg
>
> ### Routing Logic 
>
> modparam("xhttp", "event_callback", "ksr_xhttp_event")
> modparam("htable", "event_callback_mode", 1)
> modparam("htable", "event_callback", "ksr_htable_event")
> modparam("dialog", "event_callback", "ksr_dialog_event")
> modparam("app_python", "load", "/usr/local/etc/kamailio/routing.py")
> cfgengine "python"
>
> In routing.py
>
>
>ksr_dialog_event(self,msg,evname)
>
>ksr_htable_event(self,msg,evname)
>
>
> are not returning values. I will correct these to always return 1. Hopefully 
> that resolves the issue. Could you confirm that a return value of 0 from 
> routes such as those set in
>
>
> KSR.tm.t_on_failure
>
> is the equivalent to exit & drop.
>
>
> Cheers
>
> Mike
>
>
> ksr_dialog_event
>
>
>
>
>
> On Mon, 18 Jun 2018 at 20:10, Anthony Alba 
> wrote:
>
>>
>> On Mon, Jun 18, 2018 at 12:05:34PM -0400, Michael Loughrey wrote:
>> >
>> >
>> > kamailio[2242]:  8(2253) ERROR: app_python [python_support.c:150]:
>> > python_handle_exception(): python_exec2: Unhandled exception in the
>> Python
>> > code:
>> > kamailio[2242]: TypeError: an integer is required
>> >
>>
>> Hi Michael,
>>
>> This is usually a symptom of a ksr_* method having a code path which exits
>> the function without returning an integer value (1 for success, 0 for
>> immediate
>> exit, and < 0 for failure) — the equivalent of a None return value. That
>> might
>> be the cause of the TypeError.
>>
>> Can you ensure that all your ksr_* methods have an integer return value no
>> matter how they return.
>>
>> If this doesn't work, are you able to share your routing script?
>>
>> Regards
>>
>> Anthony
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio 5.1.2 and Module PDB: pdb_query returns always 0

2018-06-19 Thread Stefan Rüetschli

Hi Henning

Am 18.06.18 um 23:13 schrieb Henning Westerholt:


Am Montag, 18. Juni 2018, 07:51:24 CEST schrieb Stefan Rüetschli:

> Thanks for coming back to this.

> I didn't solve it until now, I don't know where to search.

> Does somebody also use PDB with 5.1.2 on Ubuntu 16.04.4?

Hello Stefan,

I digged further into this issue and looked to the protocol format in 
utils/pdbt/docs/network_protocol.txt.


One strange thing I noticed:

> > > [pdb.c:157]: pdb_msg_dbg(): Kamailio pdb client sends:#012version =

> > > 1#012type = 0#012code = 0#012id = 256#012len = 17#012payload = 
30 31 32


> > > 33 33 33 34 34 35 35 00

Kamailio sends a request in version 1 out, this is the default since 
2015 or so.


> > > [pdb.c:157]: pdb_msg_dbg(): Kamailio pdb client 
receives:#012version =


> > > 0#012type = 0#012code = 0#012id = 256#012len = 17#012payload = 
30 31 32


> > > 33 33 33 34 34 35 35 00

Kamailio recieves a reply in version 0, it should be version 1 as well.

> > > I use this already with Kamailio 4.3.6 and there it is working.

Do you query with the Kamailio 5.1.x to the pdbt server in version 
4.x? If yes then I suspect this is the problem.




I tried to use the pdb server from kamailio 4.x (because I was sure it 
works) and I also used only the pdb-server on localhost where kamailio 
5.1.2 is running.
But the result is the same, asking with version 1, response with version 
0 and result=0.
How can I check the version of pdb_server to make sure it's up to date 
and should work with kamailio 5.1.2?



The version change in pdbt was done after the release of the 4.3 branch.

Best regards

Henning

--

If you like my work in the Kamailio project, it would be great if you 
could consider supporting me on Patreon: https://www.patreon.com/henningw




Regards
Stefan
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Installing RTPengine on CentOS 7

2018-06-19 Thread Brooks Bridges
Those are the libraries for ffmpeg and they are not part of the default 
repositories.  The NUX Desktop repo has them: https://li.nux.ro/repos.html

The packages you want from that repo are "ffmpeg" and "ffmpeg-devel"

Brooks Bridges | Engineering Manager
O1 Communications
4359 Town Center Boulevard, Suite 217
El Dorado Hills, California 95762
office: 916.235.2097 | main: 888.444., Option 2
email: bbrid...@o1.com | web: 
www.o1.com

From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of 
Francisco Valentin Vinagrero
Sent: Tuesday, June 19, 2018 08:14
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Installing RTPengine on CentOS 7

Hi,

I'm trying to install RTPengine in the same machine as I have Kamailio, running 
CentOS 7, but there are a few dependencies that yum cannot seem to resolve and 
I that cannot find anywhere else.

As soon as I try to build the daemon it produces these errors:

make[1]: Leaving directory `/usr/local/src/rtpengine/daemon'
Failed build with ../lib/fix_frame_channel_layout-01.h
Trying build with ../lib/fix_frame_channel_layout-02.h
make[1]: Entering directory `/usr/local/src/rtpengine/daemon'
rm -f "resample.c"
echo '/ GENERATED FILE /' > "resample.c"
cat ../lib/"resample.c" >> "resample.c"
Package libevent_pthreads was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent_pthreads.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libevent_pthreads' found
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavformat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavformat' found
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavutil.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavutil' found
Package libswresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libswresample.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libswresample' found
Package libavfilter was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavfilter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavfilter' found

So, in the end, at least 'libevent_pthreads','libavcodec', 'libavformat', 
'libavutil', 'libswresample' and 'libavfilter' are missing.

Trying to install them one by one with yum fails because it cannot find these 
packages for CentOs 7.

Can anyone point me to a solution for this?

Thanks,
Francisco.

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Installing RTPengine on CentOS 7

2018-06-19 Thread shubh diwase
Just yum search package name,and you will get the current and supportable
version,or search for yum repository updates

On Tue 19 Jun, 2018, 8:45 PM Francisco Valentin Vinagrero, <
francisco.valentin.vinagr...@cern.ch> wrote:

> Hi,
>
>
>
> I'm trying to install RTPengine in the same machine as I have Kamailio,
> running CentOS 7, but there are a few dependencies that yum cannot seem to
> resolve and I that cannot find anywhere else.
>
>
>
> As soon as I try to build the daemon it produces these errors:
>
>
>
> make[1]: Leaving directory `/usr/local/src/rtpengine/daemon'
>
> Failed build with ../lib/fix_frame_channel_layout-01.h
>
> Trying build with ../lib/fix_frame_channel_layout-02.h
>
> make[1]: Entering directory `/usr/local/src/rtpengine/daemon'
>
> rm -f "resample.c"
>
> echo '/ GENERATED FILE /' > "resample.c"
>
> cat ../lib/"resample.c" >> "resample.c"
>
> Package libevent_pthreads was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `libevent_pthreads.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> No package 'libevent_pthreads' found
>
> Package libavcodec was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `libavcodec.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> No package 'libavcodec' found
>
> Package libavformat was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `libavformat.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> No package 'libavformat' found
>
> Package libavutil was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `libavutil.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> No package 'libavutil' found
>
> Package libswresample was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `libswresample.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> No package 'libswresample' found
>
> Package libavfilter was not found in the pkg-config search path.
>
> Perhaps you should add the directory containing `libavfilter.pc'
>
> to the PKG_CONFIG_PATH environment variable
>
> No package 'libavfilter' found
>
>
>
> So, in the end, at least 'libevent_pthreads','libavcodec', 'libavformat',
> 'libavutil', 'libswresample' and 'libavfilter' are missing.
>
>
>
> Trying to install them one by one with yum fails because it cannot find
> these packages for CentOs 7.
>
>
>
> Can anyone point me to a solution for this?
>
>
>
> Thanks,
>
> Francisco.
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] New blog article: Kamailio as an SBC - five years on

2018-06-19 Thread Daniel Tryba
On Tue, Jun 19, 2018 at 01:18:49AM -0400, Alex Balashov wrote:
> This is an update to my original 2013 article on this topic:
> 
> http://www.evaristesys.com/blog/kamailio-as-an-sbc-five-years-on/

Thank you for sharing your insights. Over the past 5 years I stumbled
over your (and other contributors) articles that gave me some food for
thought regarding the use of kamailio and SIP in general, making it
possible for me to build a solid VoIP platform.

I should really go to Kamailio World in the future to buy you all some
nice German beers.

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Textops Regex

2018-06-19 Thread Duarte Rocha
 You're right, it is application/sdp and the back slash works as escape
character.

However, a new problem came. I'm using this, since someone upstream is
adding \r\n to a part of the body :

replace_body_all("application\/sdp\r\n\r\n", "application/sdp\r\n");

The regex finds the application/sdp just right, but doesn't replace
everything. So, as a final result i get applicationapplication\sdp\r\n. Is
this intended?

Thanks for your help
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIP Notify use UDP instead TCP

2018-06-19 Thread Daniel-Constantin Mierla
Hello,

Because the Contact uri in subscribe is not enclosed in between angle
brackets <... >, the transport parameter is header parameter, not uri
parameter. Adjust your sip scenario for that.

Cheers,
Daniel

On Mon, 18 Jun 2018, 16:17 ,  wrote:

> Hello,
>
> I'm trying to configure Kamailio 5.1 like "presence"  server. Pretty much
> with default settings of kamailio:
>
> # - presence params -
> modparam("presence", "db_url", DBURL)
> ;modparam("presence", "server_address", "sip:10.0.6.226:5060" )
> modparam("presence", "send_fast_notify", 0)
> modparam("presence", "db_update_period", 20)
> modparam("presence", "clean_period", 40)
> modparam("presence", "subs_db_mode", 2)
> modparam("presence", "fetch_rows", 1000)
>
> # - presence_xml params -
> modparam("presence_xml", "db_url", DBURL)
> modparam("presence_xml", "force_active", 1)
>
> # - presence_dialoginfo params -
> modparam("presence_dialoginfo", "force_single_dialog", 0)
>
> # - pua params -
> modparam("pua", "db_url", DBURL)
> modparam("pua", "db_mode", 2)
> modparam("pua", "update_period", 60)
> modparam("pua", "dlginfo_increase_version", 0)
> modparam("pua", "reginfo_increase_version", 0)
> modparam("pua", "check_remote_contact", 1)
> modparam("pua", "fetch_rows", 1000)
>
> # - pua_dialoginfo params -
> modparam("pua_dialoginfo", "include_callid", 1)
> modparam("pua_dialoginfo", "send_publish_flag", FLT_DLGINFO)
> modparam("pua_dialoginfo", "caller_confirmed", 0)
> modparam("pua_dialoginfo", "include_tags", 1)
> modparam("pua_dialoginfo", "override_lifetime", 124)
>
> # - dialog params -
> modparam("dialog", "db_url", DBURL)
> modparam("dialog", "enable_stats", 1)
> modparam("dialog", "db_mode", 1)
> modparam("dialog", "dlg_flag", FLT_DLG)
>
>
> And when UDP transport is using, everything works perfect. But when TCP is
> using (only "listen: tcp:IP:5060" is set) NOTIFY is not send. When "listen:
> tcp:IP:5060" and "listen: udp:IP:5060" I receive NOTIFY but through UDP.
> SIP trace is bellow:
>
> No. Time  SourceDestination
> Protocol Length Info
> 715 2018-06-18 17:05:13,16468510.0.8.24910.0.6.226
>SIP  585Request: SUBSCRIBE 
> sip:71010@10.0.6.226:5060;transport=tcp
> |
>
> Frame 715: 585 bytes on wire (4680 bits), 585 bytes captured (4680 bits)
> on interface 0
> Ethernet II, Src: LcfcHefe_86:92:0a (28:d2:44:86:92:0a), Dst:
> 8e:5c:a8:56:db:cb (8e:5c:a8:56:db:cb)
> Internet Protocol Version 4, Src: 10.0.8.249, Dst: 10.0.6.226
> Transmission Control Protocol, Src Port: 50636, Dst Port: 5060, Seq: 1,
> Ack: 1, Len: 531
> Session Initiation Protocol (SUBSCRIBE)
> Request-Line: SUBSCRIBE sip:71010@10.0.6.226:5060;transport=tcp
> SIP/2.0
> Message Header
> Via: SIP/2.0/TCP 10.0.8.249:5060
> ;transport=tcp;branch=z9hG4bK-10772-1-0
> From: ;transport=tcp;tag=1
> To: 
> Call-ID: 1-10772@10.0.8.249
> CSeq: 1 SUBSCRIBE
> Contact: sip:61010@10.0.8.249:5060;transport=tcp
> Max-Forwards: 10
> Event: dialog
> Expires: 7200
> [Expert Info (Warning/Malformed): Header has no colon after the
> name]
> User-Agent: SIPp/Win32
> Accept: application/dialog-info+xml, multipart/related,
> application/rlmi+xml
> Content-Length: 0
>
> No. Time  SourceDestination
> Protocol Length Info
> 870 2018-06-18 17:05:13,25932310.0.6.22610.0.8.249
>SIP  439Status: 202 OK |
>
> Frame 870: 439 bytes on wire (3512 bits), 439 bytes captured (3512 bits)
> on interface 0
> Ethernet II, Src: 8e:5c:a8:56:db:cb (8e:5c:a8:56:db:cb), Dst:
> LcfcHefe_86:92:0a (28:d2:44:86:92:0a)
> Internet Protocol Version 4, Src: 10.0.6.226, Dst: 10.0.8.249
> Transmission Control Protocol, Src Port: 5060, Dst Port: 50636, Seq: 1,
> Ack: 532, Len: 385
> Session Initiation Protocol (202)
> Status-Line: SIP/2.0 202 OK
> Message Header
> Via: SIP/2.0/TCP 10.0.8.249:5060
> ;transport=tcp;branch=z9hG4bK-10772-1-0
> From: ;transport=tcp;tag=1
> To:  >;tag=b3c72a85f6f978c1e325d5994421001b-970f
> Call-ID: 1-10772@10.0.8.249
> CSeq: 1 SUBSCRIBE
> Expires: 3600
> Contact: 
> Server: kamailio (5.1.3 (x86_64/linux))
> Content-Length: 0
>
> No. Time  SourceDestination
> Protocol Length Info
> 871 2018-06-18 17:05:13,25981510.0.8.24910.0.6.226
>SIP  337Status: 200 OK |
>
> Frame 871: 337 bytes on wire (2696 bits), 337 bytes captured (2696 bits)
> on interface 0
> Ethernet II, Src: LcfcHefe_86:92:0a (28:d2:44:86:92:0a), Dst:
> 8e:5c:a8:56:db:cb (8e:5c:a8:56:db:cb)
> Internet Protocol Version 4, Src: 10.0.8.249, Dst: 10.0.6.226
> Transmission Control Protocol, Src Port: 50636, Dst Port: 5060, Seq: 532,
> Ack: 386, Len: 283
> 

Re: [SR-Users] centos 7 repo is broken?

2018-06-19 Thread Daniel-Constantin Mierla
Hello,

The repo is offered and managed by OpenSUSE project. We only have portal
accounts to upload specs and other files used to build the rpms. If the
servers/mirrors are down, we can't do anything from the Kamailio project.
If it persists, then it should reported to OBS site.

Cheers,
Daniel

On Tue, 19 Jun 2018, 07:24 Aidar Kamalov,  wrote:

> Centos7 repo?
>
> [MIRROR] kamailio-5.1.4-1.el7.centos.x86_64.rpm: Interrupted by header
> callback: Server reports Content-Length: 5642888 but expected size is:
> 5643596
>
>
> пн, 18 июн. 2018 г. в 22:08, Sergey Safarov :
>
>> Think it is temporal failure
>> I downloaded successfully
>>
>> Sergey
>>
>> пн, 18 июн. 2018 г. в 18:53, Aidar Kamalov :
>>
>>> Hello,
>>>
>>> can't install kamailio from repo (repo was update 16 jun), error:
>>>
>>> kamailio-5.1.4-1.el7.centos.x8 FAILED
>>>
>>>
>>> http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.1.x-rpms/CentOS_7/x86_64/kamailio-5.1.4-1.el7.centos.x86_64.rpm:
>>> [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable/s |0 B
>>> --:--:-- ETA
>>> --
>>> Aydar A. Kamalov
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> --
> Aydar A. Kamalov
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Timer child process loosing MySQL connections

2018-06-19 Thread Tobias Lindgren
Thanks for your ideas Henning, will investigate further.

Best,
/Tobias

From: Henning Westerholt 
Sent: Monday, June 18, 2018 9:50 PM
To: Tobias Lindgren
Cc: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Timer child process loosing MySQL connections


Am Montag, 18. Juni 2018, 11:15:43 CEST schrieb Tobias Lindgren:

> So I went with your suggestion to start a new Kamailio with just a few

> childs. Got the same issue after running for some time (again, with the

> timer process):

> Jun 18 10:19:36 /usr/sbin/kamailio[25582]: DEBUG:

> db_cluster [dbcl_api.c:370]: db_cluster_raw_query(): executing db cluster

> raw query command Jun 18 10:19:36 /usr/sbin/kamailio[25582]: DEBUG:

> db_cluster [dbcl_api.c:371]: db_cluster_raw_query(): serial operation -

> cluster [k1] (9/0) Jun 18 10:19:36 /usr/sbin/kamailio[25582]: ERROR:

> db_mysql [km_dbase.c:128]: db_mysql_submit_query(): driver error on query:

> Lost connection to MySQL server at 'waiting for initial communication

> packet', system error: 4 (2013) Jun 18 10:19:36 /usr/sbin/kamailio[25582]:

> ERROR:  [db_query.c:181]: db_do_raw_query(): error while submitting

> query Jun 18 10:19:36 /usr/sbin/kamailio[25582]: DEBUG: db_cluster

> [dbcl_api.c:371]: db_cluster_raw_query(): serial operation - failre on

> cluster [k1] (9/0) Jun 18 10:19:36 /usr/sbin/kamailio[25582]: DEBUG:

> db_cluster [dbcl_api.c:371]: db_cluster_raw_query(): serial operation -

> cluster [k1] (1/0)

>

> Not really sure how perform a good debug beyond this point, any suggestions?



Hello Tobias,



I see. Regarding further debugging - not sure if this is easy feasible - what 
about just connecting the "debug" kamailio directly to the database without the 
firewall? If you still loosing connections in this setup, I would investigate 
the situation further on your side.



Do you use SSL? There has been a lengthy discussion with a similar issue at:

https://github.com/kamailio/kamailio/issues/406



It could be also something related to a machine with several network interfaces:

https://lists.kamailio.org/pipermail/sr-users/2015-October/090266.html



If this path does not bring you closer to a solution, I would try the debug 
kamailio against a different (maybe fresh installed) isolated database. Then I 
would try move the debug kamailio on a different (maybe fresh installed) 
machine. Basically just changing one thing at a time until the issue stops.



Another option would be to capture the TCP traffic of the debug kamailio 
against the database and look for strange things in the wireshark.



Best regards,



Henning





--

If you like my work in the Kamailio project, it would be great if you could 
consider supporting me on Patreon: https://www.patreon.com/henningw
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] rtpproxy_stream2uac

2018-06-19 Thread Narasimhaiah, Vinod Maralenahalli
Hi,
I am trying to configure kamailio to play early media and i am using
rtpproxy_stream2uac(), but the audio file plays only after the call is
connected.

How to use rtpproxy_stream2uac() to play only the early media.




Thank you
vinod.M.N

-- 



To download the app, click: iOS  | Android 
 


-- 
***This transmission contains information that is confidential and 
proprietary of Kirusa Inc.,its affiliates and/or its partners and 
customers. This information is intended to be shared only with the 
recipient of this e-mail who is bound by confidentiality. If you received 
this e-mail in error, please delete the e-mail and notify the sender by 
return e-mail.***
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users