Professional Documents
Culture Documents
Hi everyone,
In a situation like our where kamailio nodes start and stop on demand
without any prior defined topology or IP addresses defined it's hard
to use DMQ module like that. That's why we introduced a DMQ server
with a fixed IP address that it's handling only those packets (but
it's a workaround).
Example: I have 2 kamailio nodes in the begining (no fixed IPs - using
DHCP), then when there's demand the infrastructure starts another 2
nodes, now I have 4 of them, then 3, one of the nodes randomly is
stopped.
And I want to use DMQ on these node to propagate information without
using a DB. How could we do that?
Also another thing that we noticed is that the last node to be added
is the one with no prior information regarding usrloc for example, it
has only the changes happening from when it starts on. Could there be
a method or modparam flag to force dmq sync of all the information
upon the startup of another node (another possible feature request)?
Kind regards,
--
Aleksandar Sosic
mail: alex.sosic at evosip.cloud
Hi
I know that this is not question too much close to the kamialio users but
mostly losed to the RFC specifiacations but this community looks like
pretty much close to it that is why I want to ask this question here,
that's why sorry and thanks for help in this question:
but provider says me that i should use Contact for the ACK
I just wanna ask if I missed some scenario in the RFC when it is described
to ignore Route header for the UA
Thanks one more time for the resonses and sorry one more time for the goal
of this question that belongs to the kamailio just partially
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180701/a3834aad/attachment.html>
Hi,
Record-Route from the UAS in the 2xx response to the initial INVITE
transaction should be recast a Route set in in-dialog messages
originating from the caller, of which an end-to-end ACK is one.
The next Route header should be followed for reaching the next hop on the
network and transport level. The request URI should cosmetically be
equivalent to the Contact URI of the far end, but the Route header will
cause a deviation in where the request is actually sent.
-- Alex
> Hi
> I know that this is not question too much close to the kamialio users but
> mostly losed to the RFC specifiacations but this community looks like
> pretty much close to it that is why I want to ask this question here,
> that's why sorry and thanks for help in this question:
>
> I have a situation when provider sends me 200 response with Request-Route
> header and changed contact header:
>
> Means response comes from
> 1.1.1.1:5060
> Request-Route contains:
> 1.1.1.1:5060
> But Contact contains:
> 1.1.1.1:5061
>
> My ACK (handled by kamailio) goes to the 1.1.1.1:5060 as it setted up at
> the Route Hedaer of ACK (because of Request-Route)
>
> but provider says me that i should use Contact for the ACK
>
>
> I was surprised because of
> https://tools.ietf.org/html/rfc3261#section-12.2.1.1
> and
> https://tools.ietf.org/html/rfc3261#section-8.1.2
>
> Says that I should use Route header for reaching destination
> But I was surprised second time when tested this scenario with FreeSwitch
> and another softphone (as UA) because of it both sends ACK to the based on
> Contact address and ignores Route
>
> I just wanna ask if I missed some scenario in the RFC when it is described
> to ignore Route header for the UA
>
> (I know that I use kamailio on my case as proxy server but should
> understand finally who should make changes with packet handling)
>
> Thanks one more time for the resonses and sorry one more time for the goal
> of this question that belongs to the kamailio just partially
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
> Hi,
>
> Record-Route from the UAS in the 2xx response to the initial INVITE
> transaction should be recast a Route set in in-dialog messages
> originating from the caller, of which an end-to-end ACK is one.
>
> The next Route header should be followed for reaching the next hop on the
> network and transport level. The request URI should cosmetically be
> equivalent to the Contact URI of the far end, but the Route header will
> cause a deviation in where the request is actually sent.
>
> This is entirely appropriate and correct. Nobody should be ignoring a
> Route header.
>
> -- Alex
>
> On Sun, Jul 01, 2018 at 10:27:00AM +0300, Yuriy Gorlichenko wrote:
>
> > Hi
> > I know that this is not question too much close to the kamialio users but
> > mostly losed to the RFC specifiacations but this community looks like
> > pretty much close to it that is why I want to ask this question here,
> > that's why sorry and thanks for help in this question:
> >
> > I have a situation when provider sends me 200 response with Request-Route
> > header and changed contact header:
> >
> > Means response comes from
> > 1.1.1.1:5060
> > Request-Route contains:
> > 1.1.1.1:5060
> > But Contact contains:
> > 1.1.1.1:5061
> >
> > My ACK (handled by kamailio) goes to the 1.1.1.1:5060 as it setted up at
> > the Route Hedaer of ACK (because of Request-Route)
> >
> > but provider says me that i should use Contact for the ACK
> >
> >
> > I was surprised because of
> > https://tools.ietf.org/html/rfc3261#section-12.2.1.1
> > and
> > https://tools.ietf.org/html/rfc3261#section-8.1.2
> >
> > Says that I should use Route header for reaching destination
> > But I was surprised second time when tested this scenario with FreeSwitch
> > and another softphone (as UA) because of it both sends ACK to the based
> on
> > Contact address and ignores Route
> >
> > I just wanna ask if I missed some scenario in the RFC when it is
> described
> > to ignore Route header for the UA
> >
> > (I know that I use kamailio on my case as proxy server but should
> > understand finally who should make changes with packet handling)
> >
> > Thanks one more time for the resonses and sorry one more time for the
> goal
> > of this question that belongs to the kamailio just partially
>
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180701/f3189adc/attachment.html>
All of these rules are for proxy behaviour. A B2BUA like Freeswitch can
do whatever it wants with the other, logically independent call leg.
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
So FS in this case ignores single route header and sends request to the
Provider Contact....
Will catch dump for now one more time to clarify this situation about
directly sent ACK from UAC with ignotring Route
> So FS in this case ignores single route header and sends request to the
> Provider Contact....
I suppose it's possible that it matches the next hop based on IP address
alone and not port, but that's radioactively incorrect.
--
Alex Balashov | Principal | Evariste Systems LLC
> On Sun, Jul 01, 2018 at 11:27:36AM +0300, Yuriy Gorlichenko wrote:
>
> > So FS in this case ignores single route header and sends request to the
> > Provider Contact....
>
> If so, that's wrong.
>
> I suppose it's possible that it matches the next hop based on IP address
> alone and not port, but that's radioactively incorrect.
>
> --
> 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180701/53f39c49/attachment.html>
On Fri, Jun 29, 2018 at 9:57 PM, Aqs Younas <aqsyounas at gmail.com> wrote:
> you can check by starting your rtpengine with this parameter "--table=0". If
> kernal modules is properly installed you will not face any error.
>
> Best Regards,
>
> Aqs Younas
>
>
>
> On Fri, 29 Jun 2018 at 03:33, Mojtaba <mespio at gmail.com> wrote:
>>
>> Thank you. I installed RTPEngine from git
>> (https://github.com/sipwise/rtpengine).
>> Let me know how can i be sure kernel module is loaded? and how can i load
>> it?
>> Thanks
>>
>> On Thu, Jun 28, 2018 at 6:20 PM, Richard Fuchs <rfuchs at sipwise.com> wrote:
>> > Looks like you haven't set up the kernel module properly. For the "proc"
>> > method of recording to work, the kernel module must be loaded and in
>> > use.
>> >
>> > Cheers
>> >
>> >
>> > On 2018-06-28 05:47, Mojtaba wrote:
>> >>
>> >> Hi all,
>> >> I installed RTPEngine (Version: 6.4.0.0+0~mr6.4.0.0
>> >> git-master-4eb80da) in my VM machine (Debian GNU/Linux 8 (jessie), i
>> >> also installed kamailio 5.1.
>> >>
>> >> In kamailio routes, i have:
>> >> route {
>> >> ...
>> >> #rtpengine_manage("record-call")
>> >> rtpengine_manage();
>> >> start_recording();
>> >> ...
>> >> }
>> >> Here is all other configuration files:
>> >>
>> >> In /etc/default/ngcp-rtpengine-daemon file:
>> >> RUN_RTPENGINE=yes
>> >> CONFIG_FILE=/etc/rtpengine/rtpengine.conf
>> >> CONFIG_SECTION=rtpengine
>> >> PIDFILE=/var/run/ngcp-rtpengine-daemon.pid
>> >> MANAGE_IPTABLES=yes
>> >> TABLE=0
>> >>
>> >> In /etc/default/ngcp-rtpengine-recording-daemon file:
>> >> RUN_RTPENGINE_RECORDING=yes
>> >> CONFIG_FILE=/etc/rtpengine/rtpengine-recording.conf
>> >> CONFIG_SECTION=rtpengine-recording
>> >> PIDFILE=/var/run/ngcp-rtpengine-recording-daemon.pid
>> >> MUST_NFS=no
>> >> NFS_HOST=192.168.1.1
>> >> NFS_REMOTE_PATH=/var/recordings
>> >> NFS_LOCAL_MOUNT=/var/lib/rtpengine-recording # must match output-dir if
>> >> used
>> >> NFS_OPTIONS=hard,intr,tcp
>> >>
>> >> In /etc/rtpengine/rtpengine.conf file:
>> >> [rtpengine]
>> >> table = 0
>> >> interface = 192.168.122.200
>> >> listen-ng = 127.0.0.1:2223
>> >> recording-dir = /var/spool/rtpengine/
>> >> recording-method = proc
>> >>
>> >> In
>> >> [rtpengine-recording]
>> >> table = 0
>> >> # output-storage = db (use default)
>> >> # output-format = mp3 (use default)
>> >> # output-mixed = 1
>> >> spool-dir = /var/spool/rtpengine/metadata
>> >> output-dir = /var/spool/rtpengine/recording
>> >>
>> >> But the recording is not work, I have these issues in syslog:
>> >> [1530178531.860171] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'start recording' from 127.0.0.1:38654
>> >> [1530178531.860191] NOTICE:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Turning on call
>> >> recording.
>> >> [1530178531.860239] WARNING:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Call recording through
>> >> /proc interface requested, but kernel table not open
>> >> [1530178531.860262] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860269] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860275] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860281] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860287] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860292] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860303] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>> >> recording' from 127.0.0.1:38654 (elapsed time 0.000112 sec)
>> >> [1530178531.969040] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'start recording' from 127.0.0.1:39374
>> >> [1530178531.969069] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>> >> recording' from 127.0.0.1:39374 (elapsed time 0.000004 sec)
>> >> [1530178537.176906] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'delete' from 127.0.0.1:40258
>> >> [1530178537.177003] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Scheduling deletion of
>> >> call branch '9052b05a' (via-branch '') in 30 seconds
>> >> [1530178537.177026] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'delete'
>> >> from 127.0.0.1:40258 (elapsed time 0.000084 sec)
>> >> [1530178537.178368] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'start recording' from 127.0.0.1:40258
>> >> [1530178537.178392] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>> >> recording' from 127.0.0.1:40258 (elapsed time 0.000004 sec)
>> >> ^C[1530178543.752740] INFO: Version 6.4.0.0+0~mr6.4.0.0
>> >> git-master-4eb80da shutting down
>> >>
>> >> Also when i start RTPEngine, I have FATAL error about module
>> >> xt_RTPENGINEer in syslog:
>> >> Jun 28 05:44:58 debian8 systemd[1]: Starting NGCP RTP/media Proxy
>> >> Daemon...
>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>> >> modprobe: FATAL: Module xt_RTPENGINE not found.
>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>> >> iptables: No chain/target/match by that name.
>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>> >> ip6tables: No chain/target/match by that name.
>> >> Jun 28 05:44:58 debian8 systemd[1]: Started NGCP RTP/media Proxy
>> >> Daemon.
>> >> Jun 28 05:44:58 debian8 rtpengine[10219]: [1530179098.989322] INFO:
>> >> Generating new DTLS certificate
>> >> Jun 28 05:44:59 debian8 rtpengine[10219]: [1530179099.033499] ERR:
>> >> FAILED TO CREATE KERNEL TABLE 0 (No such file or directory), KERNEL
>> >> FORWARDING DISABLED
>> >> J
>> >>
>> >> Let me know what is the problem and how can i solve it?
>> >>
>> >
>> > _______________________________________________
>> > Kamailio (SER) - Users Mailing List
>> > sr-users at lists.kamailio.org
>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>>
>> --
>> --Mojtaba Esfandiari.S
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
--Mojtaba Esfandiari.S
ll
On Fri, Jun 29, 2018 at 9:57 PM, Aqs Younas <aqsyounas at gmail.com> wrote:
> you can check by starting your rtpengine with this parameter "--table=0".
If
> kernal modules is properly installed you will not face any error.
>
> Best Regards,
>
> Aqs Younas
>
>
>
> On Fri, 29 Jun 2018 at 03:33, Mojtaba <mespio at gmail.com> wrote:
>>
>> Thank you. I installed RTPEngine from git
>> (https://github.com/sipwise/rtpengine).
>> Let me know how can i be sure kernel module is loaded? and how can i
load
>> it?
>> Thanks
>>
>> On Thu, Jun 28, 2018 at 6:20 PM, Richard Fuchs <rfuchs at sipwise.com>
wrote:
>> > Looks like you haven't set up the kernel module properly. For the
"proc"
>> > method of recording to work, the kernel module must be loaded and in
>> > use.
>> >
>> > Cheers
>> >
>> >
>> > On 2018-06-28 05:47, Mojtaba wrote:
>> >>
>> >> Hi all,
>> >> I installed RTPEngine (Version: 6.4.0.0+0~mr6.4.0.0
>> >> git-master-4eb80da) in my VM machine (Debian GNU/Linux 8 (jessie), i
>> >> also installed kamailio 5.1.
>> >>
>> >> In kamailio routes, i have:
>> >> route {
>> >> ...
>> >> #rtpengine_manage("record-call")
>> >> rtpengine_manage();
>> >> start_recording();
>> >> ...
>> >> }
>> >> Here is all other configuration files:
>> >>
>> >> In /etc/default/ngcp-rtpengine-daemon file:
>> >> RUN_RTPENGINE=yes
>> >> CONFIG_FILE=/etc/rtpengine/rtpengine.conf
>> >> CONFIG_SECTION=rtpengine
>> >> PIDFILE=/var/run/ngcp-rtpengine-daemon.pid
>> >> MANAGE_IPTABLES=yes
>> >> TABLE=0
>> >>
>> >> In /etc/default/ngcp-rtpengine-recording-daemon file:
>> >> RUN_RTPENGINE_RECORDING=yes
>> >> CONFIG_FILE=/etc/rtpengine/rtpengine-recording.conf
>> >> CONFIG_SECTION=rtpengine-recording
>> >> PIDFILE=/var/run/ngcp-rtpengine-recording-daemon.pid
>> >> MUST_NFS=no
>> >> NFS_HOST=192.168.1.1
>> >> NFS_REMOTE_PATH=/var/recordings
>> >> NFS_LOCAL_MOUNT=/var/lib/rtpengine-recording # must match output-dir
if
>> >> used
>> >> NFS_OPTIONS=hard,intr,tcp
>> >>
>> >> In /etc/rtpengine/rtpengine.conf file:
>> >> [rtpengine]
>> >> table = 0
>> >> interface = 192.168.122.200
>> >> listen-ng = 127.0.0.1:2223
>> >> recording-dir = /var/spool/rtpengine/
>> >> recording-method = proc
>> >>
>> >> In
>> >> [rtpengine-recording]
>> >> table = 0
>> >> # output-storage = db (use default)
>> >> # output-format = mp3 (use default)
>> >> # output-mixed = 1
>> >> spool-dir = /var/spool/rtpengine/metadata
>> >> output-dir = /var/spool/rtpengine/recording
>> >>
>> >> But the recording is not work, I have these issues in syslog:
>> >> [1530178531.860171] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'start recording' from 127.0.0.1:38654
>> >> [1530178531.860191] NOTICE:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Turning on call
>> >> recording.
>> >> [1530178531.860239] WARNING:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Call recording through
>> >> /proc interface requested, but kernel table not open
>> >> [1530178531.860262] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860269] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860275] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860281] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860287] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860292] ERR:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>> >> recording metadata file '(null)' for writing: Bad address
>> >> [1530178531.860303] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>> >> recording' from 127.0.0.1:38654 (elapsed time 0.000112 sec)
>> >> [1530178531.969040] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'start recording' from 127.0.0.1:39374
>> >> [1530178531.969069] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>> >> recording' from 127.0.0.1:39374 (elapsed time 0.000004 sec)
>> >> [1530178537.176906] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'delete' from 127.0.0.1:40258
>> >> [1530178537.177003] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Scheduling deletion of
>> >> call branch '9052b05a' (via-branch '') in 30 seconds
>> >> [1530178537.177026] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'delete'
>> >> from 127.0.0.1:40258 (elapsed time 0.000084 sec)
>> >> [1530178537.178368] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>> >> 'start recording' from 127.0.0.1:40258
>> >> [1530178537.178392] INFO:
>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>> >> recording' from 127.0.0.1:40258 (elapsed time 0.000004 sec)
>> >> ^C[1530178543.752740] INFO: Version 6.4.0.0+0~mr6.4.0.0
>> >> git-master-4eb80da shutting down
>> >>
>> >> Also when i start RTPEngine, I have FATAL error about module
>> >> xt_RTPENGINEer in syslog:
>> >> Jun 28 05:44:58 debian8 systemd[1]: Starting NGCP RTP/media Proxy
>> >> Daemon...
>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>> >> modprobe: FATAL: Module xt_RTPENGINE not found.
>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>> >> iptables: No chain/target/match by that name.
>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>> >> ip6tables: No chain/target/match by that name.
>> >> Jun 28 05:44:58 debian8 systemd[1]: Started NGCP RTP/media Proxy
>> >> Daemon.
>> >> Jun 28 05:44:58 debian8 rtpengine[10219]: [1530179098.989322] INFO:
>> >> Generating new DTLS certificate
>> >> Jun 28 05:44:59 debian8 rtpengine[10219]: [1530179099.033499] ERR:
>> >> FAILED TO CREATE KERNEL TABLE 0 (No such file or directory), KERNEL
>> >> FORWARDING DISABLED
>> >> J
>> >>
>> >> Let me know what is the problem and how can i solve it?
>> >>
>> >
>> > _______________________________________________
>> > Kamailio (SER) - Users Mailing List
>> > sr-users at lists.kamailio.org
>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>>
>> --
>> --Mojtaba Esfandiari.S
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
--Mojtaba Esfandiari.S
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180701/26aec020/attachment.html>
On Sun, Jul 1, 2018 at 2:27 PM, Domenico Briganti <dometec at gmail.com> wrote:
> ll
>
> Il 01 lug 2018 11:48 AM, "Mojtaba" <mespio at gmail.com> ha scritto:
>
> I have strange issue,
> the output of of `uname -r` command is "3.16.0-4-amd64", while all the
> debs file are "4.9.0-0.bpo.6-amd64".
> ngcp-rtpengine_6.4.0.0+0~mr6.4.0.0_all.deb
> ngcp-rtpengine-daemon_6.4.0.0+0~mr6.4.0.0_amd64.deb
> ngcp-rtpengine-iptables_6.4.0.0+0~mr6.4.0.0_amd64.deb
> ngcp-rtpengine-kernel-dkms_6.4.0.0+0~mr6.4.0.0_all.deb
> ngcp-rtpengine-kernel-source_6.4.0.0+0~mr6.4.0.0_all.deb
> ngcp-rtpengine-recording-daemon_6.4.0.0+0~mr6.4.0.0_amd64.deb
> ngcp-rtpengine-utils_6.4.0.0+0~mr6.4.0.0_all.deb
> Is it the reason of my issue?
>
> On Fri, Jun 29, 2018 at 9:57 PM, Aqs Younas <aqsyounas at gmail.com> wrote:
>> you can check by starting your rtpengine with this parameter "--table=0".
>> If
>> kernal modules is properly installed you will not face any error.
>>
>> Best Regards,
>>
>> Aqs Younas
>>
>>
>>
>> On Fri, 29 Jun 2018 at 03:33, Mojtaba <mespio at gmail.com> wrote:
>>>
>>> Thank you. I installed RTPEngine from git
>>> (https://github.com/sipwise/rtpengine).
>>> Let me know how can i be sure kernel module is loaded? and how can i
>>> load
>>> it?
>>> Thanks
>>>
>>> On Thu, Jun 28, 2018 at 6:20 PM, Richard Fuchs <rfuchs at sipwise.com>
>>> wrote:
>>> > Looks like you haven't set up the kernel module properly. For the
>>> > "proc"
>>> > method of recording to work, the kernel module must be loaded and in
>>> > use.
>>> >
>>> > Cheers
>>> >
>>> >
>>> > On 2018-06-28 05:47, Mojtaba wrote:
>>> >>
>>> >> Hi all,
>>> >> I installed RTPEngine (Version: 6.4.0.0+0~mr6.4.0.0
>>> >> git-master-4eb80da) in my VM machine (Debian GNU/Linux 8 (jessie), i
>>> >> also installed kamailio 5.1.
>>> >>
>>> >> In kamailio routes, i have:
>>> >> route {
>>> >> ...
>>> >> #rtpengine_manage("record-call")
>>> >> rtpengine_manage();
>>> >> start_recording();
>>> >> ...
>>> >> }
>>> >> Here is all other configuration files:
>>> >>
>>> >> In /etc/default/ngcp-rtpengine-daemon file:
>>> >> RUN_RTPENGINE=yes
>>> >> CONFIG_FILE=/etc/rtpengine/rtpengine.conf
>>> >> CONFIG_SECTION=rtpengine
>>> >> PIDFILE=/var/run/ngcp-rtpengine-daemon.pid
>>> >> MANAGE_IPTABLES=yes
>>> >> TABLE=0
>>> >>
>>> >> In /etc/default/ngcp-rtpengine-recording-daemon file:
>>> >> RUN_RTPENGINE_RECORDING=yes
>>> >> CONFIG_FILE=/etc/rtpengine/rtpengine-recording.conf
>>> >> CONFIG_SECTION=rtpengine-recording
>>> >> PIDFILE=/var/run/ngcp-rtpengine-recording-daemon.pid
>>> >> MUST_NFS=no
>>> >> NFS_HOST=192.168.1.1
>>> >> NFS_REMOTE_PATH=/var/recordings
>>> >> NFS_LOCAL_MOUNT=/var/lib/rtpengine-recording # must match output-dir
>>> >> if
>>> >> used
>>> >> NFS_OPTIONS=hard,intr,tcp
>>> >>
>>> >> In /etc/rtpengine/rtpengine.conf file:
>>> >> [rtpengine]
>>> >> table = 0
>>> >> interface = 192.168.122.200
>>> >> listen-ng = 127.0.0.1:2223
>>> >> recording-dir = /var/spool/rtpengine/
>>> >> recording-method = proc
>>> >>
>>> >> In
>>> >> [rtpengine-recording]
>>> >> table = 0
>>> >> # output-storage = db (use default)
>>> >> # output-format = mp3 (use default)
>>> >> # output-mixed = 1
>>> >> spool-dir = /var/spool/rtpengine/metadata
>>> >> output-dir = /var/spool/rtpengine/recording
>>> >>
>>> >> But the recording is not work, I have these issues in syslog:
>>> >> [1530178531.860171] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>>> >> 'start recording' from 127.0.0.1:38654
>>> >> [1530178531.860191] NOTICE:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Turning on call
>>> >> recording.
>>> >> [1530178531.860239] WARNING:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Call recording through
>>> >> /proc interface requested, but kernel table not open
>>> >> [1530178531.860262] ERR:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>>> >> recording metadata file '(null)' for writing: Bad address
>>> >> [1530178531.860269] ERR:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>>> >> recording metadata file '(null)' for writing: Bad address
>>> >> [1530178531.860275] ERR:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>>> >> recording metadata file '(null)' for writing: Bad address
>>> >> [1530178531.860281] ERR:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>>> >> recording metadata file '(null)' for writing: Bad address
>>> >> [1530178531.860287] ERR:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>>> >> recording metadata file '(null)' for writing: Bad address
>>> >> [1530178531.860292] ERR:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Failed to open
>>> >> recording metadata file '(null)' for writing: Bad address
>>> >> [1530178531.860303] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>>> >> recording' from 127.0.0.1:38654 (elapsed time 0.000112 sec)
>>> >> [1530178531.969040] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>>> >> 'start recording' from 127.0.0.1:39374
>>> >> [1530178531.969069] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>>> >> recording' from 127.0.0.1:39374 (elapsed time 0.000004 sec)
>>> >> [1530178537.176906] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>>> >> 'delete' from 127.0.0.1:40258
>>> >> [1530178537.177003] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Scheduling deletion of
>>> >> call branch '9052b05a' (via-branch '') in 30 seconds
>>> >> [1530178537.177026] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'delete'
>>> >> from 127.0.0.1:40258 (elapsed time 0.000084 sec)
>>> >> [1530178537.178368] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Received command
>>> >> 'start recording' from 127.0.0.1:40258
>>> >> [1530178537.178392] INFO:
>>> >> [MWFhMWM4MmVhYjFmYjY3MzVlZDlmZWMyYjNmNGVhNmY.]: Replying to 'start
>>> >> recording' from 127.0.0.1:40258 (elapsed time 0.000004 sec)
>>> >> ^C[1530178543.752740] INFO: Version 6.4.0.0+0~mr6.4.0.0
>>> >> git-master-4eb80da shutting down
>>> >>
>>> >> Also when i start RTPEngine, I have FATAL error about module
>>> >> xt_RTPENGINEer in syslog:
>>> >> Jun 28 05:44:58 debian8 systemd[1]: Starting NGCP RTP/media Proxy
>>> >> Daemon...
>>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>>> >> modprobe: FATAL: Module xt_RTPENGINE not found.
>>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>>> >> iptables: No chain/target/match by that name.
>>> >> Jun 28 05:44:58 debian8 ngcp-rtpengine-iptables-setup[10203]:
>>> >> ip6tables: No chain/target/match by that name.
>>> >> Jun 28 05:44:58 debian8 systemd[1]: Started NGCP RTP/media Proxy
>>> >> Daemon.
>>> >> Jun 28 05:44:58 debian8 rtpengine[10219]: [1530179098.989322] INFO:
>>> >> Generating new DTLS certificate
>>> >> Jun 28 05:44:59 debian8 rtpengine[10219]: [1530179099.033499] ERR:
>>> >> FAILED TO CREATE KERNEL TABLE 0 (No such file or directory), KERNEL
>>> >> FORWARDING DISABLED
>>> >> J
>>> >>
>>> >> Let me know what is the problem and how can i solve it?
>>> >>
>>> >
>>> > _______________________________________________
>>> > Kamailio (SER) - Users Mailing List
>>> > sr-users at lists.kamailio.org
>>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>>
>>> --
>>> --Mojtaba Esfandiari.S
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
>
>
> --
> --Mojtaba Esfandiari.S
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
--Mojtaba Esfandiari.S
--
Pali Rohár
pali.rohar at gmail.com
Hi,
I would like to setup up my SIP server / PBX for my business, now we have
some candidates:
- Asterisk PBX,
- Freeswitch PBX
- Kamailio
- OpenSIPS
2. Business solution:
- Brekeke PBX(https://www.brekeke.com
- Vodia PBX(https://www.vodia.com)
- 3CX PBX(https://www.3cx.com)
- PortSIP PBX(https://www.portsip.com/portsip-pbx)
- Video call recording (For the finance industry, the video recording is
necessary)
- Push notifications for mobile app
- Multi-tenant support
- Both Linux and Windows support (at 1st stage, we would like to run it
on Windows server and migrate it to Linux server in the future if users
increased), the Linux support is required, the Windows support is preferred.
We have some questions:
- The Vodia PBX, PortSIP PBX and brrekeke all are support Multi-tenant,
the 3CX is not.
- The 3CX and PortSIP support push notifications,
- The PortSIP also provide client SDK, with 3CX we only see the 3CX
provide client apps, does 3CX has client SDK provided ?
- It's seems all these PBX are support video recording ?
- The PortSIP PBX and 3CX both support Linux.
Please help me to make the decision, base on your experiences, which one
(open source or business solution) is good to us ? I'm really new to
VoIP...
Thanks in advance.
Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180701/b1410bc6/attachment.html>
> Hi,
> I have installed kamailio in my system but while starting I am geeting
> following errors-
>
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: db_mysql
> [km_my_con.c:129]: db_mysql_new_connection(): driver error: Access denied
> for user 'kamailio'@'localhost' (using password: YES)
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: <core> [db.c:318]:
> db_do_init2(): could not add connection to the pool
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: usrloc [dlist.c:644]:
> register_udomain(): failed to open database connection
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: registrar
> [registrar.c:651]: domain_fixup(): failed to register domain
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: <core>
> [core/route.c:1153]: fix_actions(): fixing failed (code=-1) at
> cfg:/usr/local/kamailio-5.1/etc/kamailio/kamailio.cfg:643
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: <core>
> [core/rvalue.c:3859]: fix_rval_expr(): failure in cfg at line: 643 col: 22
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: <core>
> [core/rvalue.c:3859]: fix_rval_expr(): failure in cfg at line: 643 col: 22
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: ERROR: <core>
> [core/route.c:1153]: fix_actions(): fixing failed (code=-1) at
> cfg:/usr/local/kamailio-5.1/etc/kamailio/kamailio.cfg:646
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: tm [t_funcs.c:85]:
> tm_shutdown(): start
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: tm [t_funcs.c:88]:
> tm_shutdown(): emptying hash table
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: tm [t_funcs.c:90]:
> tm_shutdown(): removing semaphores
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: tm [t_funcs.c:92]:
> tm_shutdown(): destroying tmcb lists
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: tm [t_funcs.c:95]:
> tm_shutdown(): done
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: INFO: <core>
> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: <core>
> [core/mem/shm.c:260]: shm_destroy_manager(): destroying memory manager:
> q_malloc
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: <core>
> [core/mem/q_malloc.c:1169]: qm_shm_lock_destroy(): destroying the shared
> memory lock
> Jul 1 00:32:42 coditas-Vostro-3558
> /usr/local/kamailio-5.1/sbin/kamailio[4354]: DEBUG: <core>
> [core/mem/pkg.c:90]: pkg_destroy_manager(): destroying memory manager:
> q_malloc
> Please look into the problem.
> Thanking You,
> Dip
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180701/3667f184/attachment.html>
The route set MUST be set to the list of URIs in the Record-Route
header field from the response, taken in reverse order and preserving
all URI parameters. If no Record-Route header field is present in
the response, the route set MUST be set to the empty set. This route
set, even if empty, overrides any pre-existing route set for future
requests in this dialog. The remote target MUST be set to the URI
from the Contact header field of the response.
2018-07-01 11:48 GMT+03:00 Yuriy Gorlichenko <ovoshlook at gmail.com>:
--
Alex Balashov | Principal | Evariste Systems LLC
Actually no one...
I just confused
So looks like here is an exception from rules for the Route header handling
in case of UAC behaivor...
It was posted only for to be sure that I have right interpretation of this
particular case:
This route
> set, even if empty, overrides any pre-existing route set for future
> requests in this dialog. The remote target MUST be set to the URI
> from the Contact header field of the response.
> On Mon, Jul 02, 2018 at 12:03:24AM +0300, Yuriy Gorlichenko wrote:
>
> > Just in continue of the discussion
> > forund in the RFC3261 12.1.2 (UAC behaivor) this:
> >
> > The route set MUST be set to the list of URIs in the Record-Route
> > header field from the response, taken in reverse order and preserving
> > all URI parameters. If no Record-Route header field is present in
> > the response, the route set MUST be set to the empty set. This route
> > set, even if empty, overrides any pre-existing route set for future
> > requests in this dialog. The remote target MUST be set to the URI
> > from the Contact header field of the response.
>
> Indeed. What is your intended thesis?
>
> --
> 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/46c45821/attachment.html>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
> The "remote target" in this case refers to the request URI,
> cosmetically.
>
> On Mon, Jul 02, 2018 at 12:10:26AM +0300, Yuriy Gorlichenko wrote:
>
> > Actually no one...
> > I just confused
> >
> > So looks like here is an exception from rules for the Route header
> handling
> > in case of UAC behaivor...
> > It was posted only for to be sure that I have right interpretation of
> this
> > particular case:
> >
> > Because of me these 2 descriptions are very opposite
> >
> > This route
> > > set, even if empty, overrides any pre-existing route set for future
> > > requests in this dialog. The remote target MUST be set to the URI
> > > from the Contact header field of the response.
> >
> >
> > 2018-07-02 0:05 GMT+03:00 Alex Balashov <abalashov at evaristesys.com>:
> >
> > > On Mon, Jul 02, 2018 at 12:03:24AM +0300, Yuriy Gorlichenko wrote:
> > >
> > > > Just in continue of the discussion
> > > > forund in the RFC3261 12.1.2 (UAC behaivor) this:
> > > >
> > > > The route set MUST be set to the list of URIs in the Record-Route
> > > > header field from the response, taken in reverse order and
> preserving
> > > > all URI parameters. If no Record-Route header field is present in
> > > > the response, the route set MUST be set to the empty set. This
> route
> > > > set, even if empty, overrides any pre-existing route set for
> future
> > > > requests in this dialog. The remote target MUST be set to the URI
> > > > from the Contact header field of the response.
> > >
> > > Indeed. What is your intended thesis?
> > >
> > > --
> > > 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 at lists.kamailio.org
> > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> > >
>
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/95c72e2d/attachment.html>
What? No.
There are two kinds of ACKs: hop-by-hop ACKs, which acknowledge negative
final replies on every branch, and end-to-end ACKs, which are handled
according to the rules for in-dialog requests. An ACK for a 2xx reply to
an INVITE is going to be an in-dialog request, and under no
circumstances should any Route headers be ignored unless they refer to
the very proxy through which they are traversing. In that case, they
should be stripped off before continuing with the next-hop Route. This
is the standard loose-routing procedure labouriously articulated in the
RFC, and implemented by loose_route().
--
Alex Balashov | Principal | Evariste Systems LLC
Hi,
We are developing a project for parser and store MEGACO message by kamailio.
During the testing, we find that kamailio inserts one message only once, but there
are duplicated messages in mysql datebase.
Did you meet the similar issue before?
Could you please share some information for us?
[Environment/version]
Environment: Debian-Jessie, docker image
Version: kamialio 5.0.6 docker image.
[Description]
Kamailio stores one message by calling mysql function once, but there are two same
message in DB randomly.
[Kamailio Log]
Jun 26 07:17:49 dnt02-elk-control-worker-edge-01
journal: }]#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: nosip [megaco_capture.c:49]:
megaco_error_code(): No error in MEGCO!
Jun 26 07:17:49 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: nosip [megaco_capture.c:406]:
megaco_capture(): No error code.#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: nosip
[megaco_capture.c:269]: megaco_capture_store():
az_megaco_tmstamp(1529997468887999)//debug log for message, this is duplicated
message in mysql.
Jun 26 07:17:49 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: nosip [megaco_capture.c:305]:
megaco_capture_store(): insert into homer table: [megaco_capture_all_20180626]
Jun 26 07:17:49 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: nosip [megaco_capture.c:308]:
megaco_capture_store(): storing info...
Jun 26 07:17:50 dnt02-elk-control-worker-edge-01 journal: I0626 07:17:50.802482
1 event.go:218] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim",
Namespace:"default", Name:"homer-data-dashboard", UID:"136b3329-78f1-11e8-8d74-
0050568fb61f", APIVersion:"v1", ResourceVersion:"2841229", FieldPath:""}): type:
'Warning' reason: 'ProvisioningFailed' storageclass.storage.k8s.io "glusterfs-
storageclass" not found
Jun 26 07:17:50 dnt02-elk-control-worker-edge-01 journal: I0626 07:17:50.802660
1 event.go:218] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim",
Namespace:"default", Name:"homer-data-semaphore", UID:"1369de0b-78f1-11e8-8d74-
0050568fb61f", APIVersion:"v1", ResourceVersion:"2841228", FieldPath:""}): type:
'Warning' reason: 'ProvisioningFailed' storageclass.storage.k8s.io "glusterfs-
storageclass" not found
Jun 26 07:17:50 dnt02-elk-control-worker-edge-01 journal: I0626 07:17:50.802706
1 event.go:218] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim",
Namespace:"default", Name:"homer-data-mysql", UID:"136e804c-78f1-11e8-8d74-
0050568fb61f", APIVersion:"v1", ResourceVersion:"2841231", FieldPath:""}): type:
'Warning' reason: 'ProvisioningFailed' storageclass.storage.k8s.io "glusterfs-
storageclass" not found
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: I0626 07:17:51.223950
1 trace.go:76] Trace[1532720894]: "GuaranteedUpdate etcd3: *core.Endpoints"
(started: 2018-06-26 07:17:48.964454076 +0000 UTC m=+1830051.184603352) (total
time: 2.259414864s):
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Trace[1532720894]:
[2.259374311s] [2.258991423s] Transaction committed
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: I0626 07:17:51.224190
1 trace.go:76] Trace[557711900]: "Update /api/v1/namespaces/kube-
system/endpoints/kube-scheduler" (started: 2018-06-26 07:17:48.964209184 +0000 UTC
m=+1830051.184358457) (total time: 2.259905913s):
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Trace[557711900]:
[2.259791237s] [2.259619876s] Object stored in database
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: 2018-06-26
07:17:51.220413 W | wal: sync duration of 1.446041666s, expected less than 1s
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: I0626 07:17:51.225704
1 trace.go:76] Trace[656020708]: "GuaranteedUpdate etcd3: *core.Node" (started:
2018-06-26 07:17:50.573518495 +0000 UTC m=+1830052.793667844) (total time:
652.126103ms):
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Trace[656020708]:
[651.833583ms] [647.806507ms] Transaction committed
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 5(22) CRITICAL: <core> [core/xavp.c:446]:
xavp_destroy_list(): destroying xavp list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/parser/parse_fline.c:244]:
parse_first_line(): parse_first_line: bad request first line
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/parser/parse_fline.c:246]:
parse_first_line(): at line 0 char 29:
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/parser/parse_fline.c:252]:
parse_first_line(): parsed so far: MEGACO/2 [175.15.0.254]:32791
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/parser/parse_fline.c:257]:
parse_first_line(): parse_first_line: bad message (offset: 29)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/parser/msg_parser.c:601]:
parse_msg(): invalid message
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/parser/msg_parser.c:676]:
parse_msg(): ERROR: parse_msg: message=<MEGACO/2 [175.15.0.254]:32791
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Transaction = 359 {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Context = - {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Notify =
ROOT {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
ObservedEvents = 1111 {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
20180626T15175177:
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
it/ito
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: }
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: }
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: }
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: }>
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/pvapi.c:1377]: pv_printf():
no more space for spec value
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/pvapi.c:1386]: pv_printf():
buffer overflow -- increase the buffer size...
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: nosip [megaco_capture.c:344]:
megaco_capture(): Dump msg:[MEGACO/2 [175.15.0.254]:32791
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Transaction = 359 {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Context = - {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: Notify =
ROOT {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
ObservedEvents = 1111 {
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
20180626T15175177:
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
it/ito
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: }
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: }
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal: }
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01
journal: }]#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: nosip [megaco_capture.c:49]:
megaco_error_code(): No error in MEGCO!
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: nosip [megaco_capture.c:406]:
megaco_capture(): No error code.#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: nosip
[megaco_capture.c:269]: megaco_capture_store():
az_megaco_tmstamp(1529997471897950)//debug log, this is the non-dup message.
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: nosip [megaco_capture.c:305]:
megaco_capture_store(): insert into homer table: [megaco_capture_all_20180626]
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: nosip [megaco_capture.c:308]:
megaco_capture_store(): storing info...
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Jun 26 07:17:51 dnt02-elk-control-worker-edge-01 journal:
#033[0;39;49m#033[0;33;49m 3(20) CRITICAL: <core> [core/usr_avp.c:631]:
destroy_avp_list(): destroying list (nil)
Best Regards,
Alec Zhong
So when UAC receives this call without my proxy between provider and UAC it
sends ACK to Contact URI (Ignoring Route header that actually also exists
in the Contact field) sent at the 200 according rfc3261 -12.1.2 (that I
shared above)
UAC receives ACK with 2 Route headers (that is right) and sends it to the
topmost Route (myProxy) then my proxy as normal proxy resends it to the
provider using second Route (that topmost for now after myProxy removes
itself from Route set)
But here provider says me - you should use Contact field to reach target
even from myProxy.
> On Mon, Jul 02, 2018 at 09:00:02AM +0300, Yuriy Gorlichenko wrote:
>
> > yep I understand that.
> > I just see that in fact ACK soudl ignore Route header if it... Single?
>
> What? No.
>
> There are two kinds of ACKs: hop-by-hop ACKs, which acknowledge negative
> final replies on every branch, and end-to-end ACKs, which are handled
> according to the rules for in-dialog requests. An ACK for a 2xx reply to
> an INVITE is going to be an in-dialog request, and under no
> circumstances should any Route headers be ignored unless they refer to
> the very proxy through which they are traversing. In that case, they
> should be stripped off before continuing with the next-hop Route. This
> is the standard loose-routing procedure labouriously articulated in the
> RFC, and implemented by loose_route().
>
> --
> 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/0eeabe16/attachment.html>
* which contains last interface i sent INVITE to - means that uri in the
Route hasinterface and it just same with interface I sent invite to. I
understand hat it is not a dependency.
* (Ignoring Route header that actually also exists in the Contact field) -
means aslo existsi in the resquest. Not in the contact field offcource
> But here provider says me - you should use Contact field to reach target
> even from myProxy.
In case direct conntect UAC -> Provider I still need to use Contact field
as URI to send ACK to that explained on the 12.1.2 of rfc3261?
> On Mon, Jul 02, 2018 at 09:31:02AM +0300, Yuriy Gorlichenko wrote:
>
> > But here provider says me - you should use Contact field to reach target
> > even from myProxy.
>
> Not if they added another Record-Route hop of theirs.
>
> --
> 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/f81d33d3/attachment.html>
--
Alex Balashov | Principal | Evariste Systems LLC
For me for now not clear question abot direct connect for now.
> On Mon, Jul 02, 2018 at 09:59:12AM +0300, Yuriy Gorlichenko wrote:
>
> > That was my point also...
> > But they sent me lint to rfc3261 12.1.2 and that confused me
> >
> > So just for resume:
> >
> > So am I right if I say that in case If provider receives INVITE with
> > Record-Route from my side (myProxy)
> > Provider should care about it's own Record-Route and it should have uri
> > where myProxy should sent ACK to instead of using Contact in thi case
> >
> > In case direct conntect UAC -> Provider I still need to use Contact field
> > as URI to send ACK to that explained on the 12.1.2 of rfc3261?
>
> If the provider sent you a Record-Route of their own in addition to any
> that you have placed there, your UAC must still follow it when
> contacting them for in-dialog requests.
>
> --
> 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/12356066/attachment.html>
Thank you
vinod,M.N
On Fri, Jun 29, 2018 at 12:18 PM, vinod mn <vinodmn.dbit at gmail.com> wrote:
> 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
>
--
Thanks and regards
Vinod.M.N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/0fd6b872/attachment.html>
Jut in update
In kamailio case all goes well
Kamailio sets to UAC Record-Route in the 200 reply and then UAC sends ACK
via Route sent...
I totally confised...
In both examples from my provider 200 contains Route set but in case of
kamailio UAC uses route and in case of provider it uses Contact...
Thx Alex
Finally I clarified question for myself
UAC not ignores Route in case of direct connection to provider
It sends to needed ip:port on the transport:network layers
So provider wrong in case that avaits ACK at the different port than Route.
Hi ,
Can someone explain me what is \1 and \3 doing in the subst expression
?
Regards,
Mahesh.b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/322bd646/attachment.html>
Hi Aleksandar,
> Hi everyone,
>
> so adding some xlogs We've managed to find out what's happening.
> The request route was using:
> ```
> if(is_method("KDMQ")){
> ```
> but this if was never triggered(!?)
> We changed that to
> ```
> if($rm == "KDMQ"){
> ```
> And now it's working.
>
> So why is that? In the documentation there's an example with is_method:
> https://kamailio.org/docs/modules/5.2.x/modules/dmq.
> html#dmq.f.dmq_handle_message
> and I can recall it working a month ago.
>
>
Either way should work - there should be no difference between them. We are
using is_method everywhere and it works just fine.
You do not, in fact, need to maintain a dedicated node who's only role is
"DMQ server" as you have described it. I would recommend removing it
completely and allowing your other nodes to discover/communicate between
themselves.
> This portion of DMQ documentation says that `Default value is "NULL".`
> for the notification_address:
> https://kamailio.org/docs/modules/5.2.x/modules/dmq.
> html#dmq.p.notification_address
> But with NULL or NOT specifying a value kamailio does not start.
> Am I misunderstanding the documentation? Could this be a feature
> request or it's a bug?
>
Omitting the notification address should not cause an issue - what error do
you see in your log when it fails to start? If you get rid of the "DMQ
server' node as suggested above, though, this should be a none-issue.
> In a situation like our where kamailio nodes start and stop on demand
> without any prior defined topology or IP addresses defined it's hard
> to use DMQ module like that. That's why we introduced a DMQ server
> with a fixed IP address that it's handling only those packets (but
> it's a workaround).
>
> So my next question is:
> Do you guys have an idea on how could we handle DMQ on a very
> mutational infrastructure?
> Example: I have 2 kamailio nodes in the begining (no fixed IPs - using
> DHCP), then when there's demand the infrastructure starts another 2
> nodes, now I have 4 of them, then 3, one of the nodes randomly is
> stopped.
> And I want to use DMQ on these node to propagate information without
> using a DB. How could we do that?
>
Use multi_notify -
https://www.kamailio.org/docs/modules/stable/modules/dmq.html#dmq.p.multi_notify
If nodes are being added/removed dynamically then you'll probably also want
to employ some kind of service discovery mechanism, e.g. consul.
> Also another thing that we noticed is that the last node to be added
> is the one with no prior information regarding usrloc for example, it
> has only the changes happening from when it starts on. Could there be
> a method or modparam flag to force dmq sync of all the information
> upon the startup of another node (another possible feature request)?
>
>
See sync parameter -
https://www.kamailio.org/docs/modules/stable/modules/dmq_usrloc.html#usrloc_dmq.p.s
ync
Cheers,
Charles
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/c8d281f8/attachment.html>
They are references to groups in the regex match. The groups are in
parenthesis. Whatever is matched by group 1 and 3 will be included in the
substitution.
So if i understand properly :
group 1 is here <sip:anonymous@
group 2 is empty
group 3 is ;tag=41008079_nab_FFFF_isp_FFFF_cco_FFFF_igo_FFFF_mgt_78DD
Here
group 1 is <sip:anonymous@
group 2 is empty
group 3 is ;tag=42006C96_nab_FFFF_isp_FFFF_cco_FFFF_igo_FFFF_mgt_8092
Regards,
Mahesh.b
> They are references to groups in the regex match. The groups are in
> parenthesis. Whatever is matched by group 1 and 3 will be included in the
> substitution.
>
> https://regexr.com/ and https://regex101.com/ are both good sites for
> building and explaining regexes.
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/41b062b1/attachment.html>
Hi,
I would like to setup up my SIP server / PBX for my business, now we have
some candidates:
2. Business solution:
- Brekeke PBX(https://www.brekeke.com
- Vodia PBX(https://www.vodia.com)
- 3CX PBX(https://www.3cx.com)
- PortSIP PBX(https://www.portsip.com/portsip-pbx)
- Video call recording (For the finance industry, the video recording is
necessary)
- Push notifications for mobile app
- Multi-tenant support
- Both Linux and Windows support (at 1st stage, we would like to run it
on Windows server and migrate it to Linux server in the future if users
increased), the Linux support is required, the Windows support is preferred.
- The Vodia PBX, PortSIP PBX and brrekeke all are support Multi-tenant,
the 3CX is not.
- The 3CX and PortSIP support push notifications,
- The PortSIP also provide client SDK, with 3CX we only see the 3CX
provide client apps, does 3CX has client SDK provided ?
- It's seems all these PBX are support video recording ?
- The PortSIP PBX and 3CX both support Linux.
Please help me to make the decision, base on your experiences, which one
(open source or business solution) is good to us ? I'm really new to
VoIP...
Thanks in advance.
Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180702/81208c8e/attachment.html>
From jpetrini at coredial.com Mon Jul 2 16:21:23 2018
From: jpetrini at coredial.com (John Petrini)
Date: Mon, 2 Jul 2018 10:21:23 -0400
Subject: [SR-Users] subst query
In-Reply-To: <CACYt9VjK0+VqA1qh16PEQza=8wMbBFsM_FWOqjVQ-SM+WKKD0A@mail.gmail.com>
References: <CACYt9ViRyBbuQ+kYKBTk2XXRvogyWNj8t6ETuO4ZPt0mJ-tnUQ@mail.gmail.com>
<CAD4AmV65Jq=04Jhou9XAV-PVmp4FgTGGVZiM6fP3kA6AbLcwVA@mail.gmail.com>
<CACYt9VjK0+VqA1qh16PEQza=8wMbBFsM_FWOqjVQ-SM+WKKD0A@mail.gmail.com>
Message-ID: <CAD4AmV4tHkWYuRhPUumRhX852WxpA4RTMfZcVbo2+AJ9Y68TSA@mail.gmail.com>
subst('/^From:(.*)\[2008:abcd:1234:2260:208:5dff:fe93:5b65\](
.*)>(.*)/From:\1[2008:abcd:1234:2260:20c:29ff:fe9a:b9cb]>\3/ig');
John Petrini
Platforms Engineer
it is subst('/
^From:(.*)\[2008:abcd:1234:2260:208:5dff:fe93:5b65\](.*)>(.*)/From:\1\
[2008:abcd:1234:2260:20c:29ff:fe9a:b9cb\]>\3
/ig');
Thank you!
Hello.
Hi Daniel,
When there are multiple metrics for one type of reply, for example:
core-rcv_replies_401
core-rcv_replies_404
core-rcv_replies_407
core-rcv_replies_480
core-rcv_replies_486
core-rcv_replies_4xx
Would a 404 reply count towards ONLY to the more exact metric (
core-rcv_replies_401) or to both the exact metric and the generic
metric (core-rcv_replies_401
& core-rcv_replies_4xx)?
I assume that a reply that doesn't have a specific metric only and always
counts towards the generic (core-rcv_replies_4xx)? Example: 402 Payment
Required. Would this assumption be correct?
Thanks,
Joel.
On Fri, Jun 29, 2018 at 6:06 AM, Konstantin Polyakov <piligrim_pk at mail.ru>
wrote:
Are you using the default Kamailio conf? If so, it will do a NAT test to see if it
should trigger the RTP proxy
hello dears ,
i'm trying to use "http_client" module to post SMS from kamailio to kannel using
the following configuration :
.......
.........
http_connect("kannel","cgi-bin/sendsms?user=username&pass=password&charset=utf-
16&coding=2&from=$avp(from)&to=$avp(to)&text=$(avp(text)
{s.escape.user})","$var(result)");
.......
And this test success for English characters & phrases, but when i'm trying to send
Arabic or Chinese characters it only success if the content of the SMS only has one
word.
in other-word i mean when i'm trying to send more than one Arabic word with a space
between each word it reply with HTTP error code 400.
Hi,
-- Alex
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
I think i found the reason, it needs a \ before [ , could you please tell
me whats the syntax to put the replacement expression in this page?
[image: image.png]
Regards,
Mahesh.B
I have a need to encapsulate SIP traffic depending on destination and obviously de-
encapsulate traffic incoming from those destinations. The approach to dealing with
outbound SIP traffic seems pretty straight forward, I create an appropriate routing
block that determines if I need to encap the SIP message, if I do, I forward it off
to my module. The incoming traffic isn't particularly complicated, I'm just not
100% sure on the way to give that de-encapsulated SIP message back to kamailio to
be processed.
It looks like I can achieve this using the TM module with the uac_req_t struct and
tm_bind.request but I really only see it used for SIP text messages in modules like
XMPP and SMS. Is this the appropriate approach to achieve what I need?
Will
Hi,
just my 5 cents: we (sipwise) created a patch to introduce metrics of
received reply codes per each method separately:
- statistics for INVITE CANCEL, BYE, REG, MESSAGE, PRACK, UPDATE,
REFER methods implemented.
- 6 replies categories counted: 1xx, 2xx, 3xx, 4xx, 5xx, 6xx
We are planning to send it as a pull request to the project later this
week or next week.
Andrew
Hi,
I have Kam 5.1.3 running on top of Ubuntu Xenial docker image. Today I've
added new RTPEngine set and tried to reload rtpengine from db but no luck.
Command executes without any errors (but way too fast)
Last option would be restart but I would prefer not as has multiple WSS
connections active.
Hello,
I haven't added those stats, so I can't say it without digging into the
code -- maybe you can just do some basic tests with such replies and see
what values are incremented.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
if you look for some out of the box solutions of telephony platforms
that embed Kamailio, you can look at some options that offer also open
source and free variants, such as:
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
I assume that the insert into the database is done from your new module.
For us, it is hard to troubleshoot what happens there, not having the
code. If you do the database insert via some kamailio.cfg scripting
using existing modules, then attach it here and we will try to spot if
something is wrong there.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
you can also do authentication for requests within dialog. The default
kamailio.cfg is doing auth only for initial requests because (at least
in the past) there were devices not able to do auth for requests within
dialog. You have to execute route(AUTH) for what requests you want to
authenticate, being initial or within dialog -- it is your choice, the
default kamailio.cfg is more like a starting point for what people need
out there.
Cheers,
Daniel
On 01.07.18 13:26, yu at yu-boot.ru wrote:
>
> Hello. Have a question on auth and default kamailio.cfg.
>
> Default behavior of kamailio on auth is:
>
> Auth initial requests, delete auth headers before forwarding to next hop.
>
> In-dialog requests are forwarded "as-is" so all auth related info is
> propagated to uplinks or just another Kami users.
>
> How should it be done correctly or "kamailio-way"? As for now, I just
> delete auth headers for all in-dialog requests, but I'm not sure it is
> correct.
>
> I looked how it works on softswitches like Yate. Registers and initial
> Invites are authenticated, ACK is not authenticated, but all other
> requests like reINVITE and BYE are.
>
> How is should be done?
>
> Thanks.
>
> --
> sent from myMail for Android
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Ideally, the alias parameter should be only once there, the second one
should be useless, at that point record-route/route headers should be
enough.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
haven't played with CRL lately, but kamailio should just call libssl
functions for validating the certificates, after initializing the
context with CRL file.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi,
The CRL with revoked server certificate needs to be loaded in the sip client. TLS
server doesn’t send CRL to client during handshake.
--
Andy Chen
Sr. Telephony Lead Engineer
415 516 5535 (M)
achen@ <achen at thinkingphones.com>fuze.com
--
*Confidentiality Notice: The information contained in this e-mail and any
attachments immediately. You should not retain, copy or use this e-mail or
any attachment for any purpose, nor disclose all or any part of the
Hello,
Sorry if this has already been answered but can Kamailio be configured to
support clustering and use Anycast? We are looking to use Kamailio as a
front end to Asterisk as the registar and presence server.
If this is supported, are there any documents that explain how to configure
this type of setup?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180703/e215068a/attachment.html>
Thanks Daniel, yes, we have tried the kazoo, but seems too expensive.
BR
> Hello,
>
> if you look for some out of the box solutions of telephony platforms that
> embed Kamailio, you can look at some options that offer also open source
> and free variants, such as:
>
> - sip:provider offered by sipwise.com
>
> - kazoo offered by 2600hz.com
> Cheers,
> Daniel
>
>
> On 02.07.18 15:48, Jeremy Renner wrote:
>
> Hi,
>
> I would like to setup up my SIP server / PBX for my business, now we have
> some candidates:
>
> 1. Open source solution:
>
> - Asterisk PBX,
> - Freeswitch PBX
> - Kamailio
> - OpenSIPS
>
>
> 2. Business solution:
>
> - Brekeke PBX(https://www.brekeke.com
> - Vodia PBX(https://www.vodia.com)
> - 3CX PBX(https://www.3cx.com)
> - PortSIP PBX(https://www.portsip.com/portsip-pbx)
>
>
> *Below features are mandatory for our project:*
>
> - Video call recording (For the finance industry, the video recording
> is necessary)
> - Push notifications for mobile app
> - Multi-tenant support
> - Both Linux and Windows support (at 1st stage, we would like to run
> it on Windows server and migrate it to Linux server in the future if users
> increased), the Linux support is required, the Windows support is preferred.
>
>
> We have some questions:
>
> 1. Does the the Kamailio can works as a PBX ?
> 2. If yes, does the Kamailio support push notifications and video
> recording ?
> 3. Does the Kamailio can works for Multi-tenant ?
> 4. Does Kamailio support Windows ?
>
>
>
> So far according to our research, with the business solution:
>
> - The Vodia PBX, PortSIP PBX and brrekeke all are support
> Multi-tenant, the 3CX is not.
> - The 3CX and PortSIP support push notifications,
> - The PortSIP also provide client SDK, with 3CX we only see the 3CX
> provide client apps, does 3CX has client SDK provided ?
> - It's seems all these PBX are support video recording ?
> - The PortSIP PBX and 3CX both support Linux.
>
>
> Please help me to make the decision, base on your experiences, which one
> (open source or business solution) is good to us ? I'm really new to
> VoIP...
>
> Thanks in advance.
>
> Best regards,
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180703/e1437852/attachment.html>
Dear All
Yes.
A common request.
> If this is supported, are there any documents that explain how to
> configure this type of setup?
Hi All,
For interoperability reasons I need to re-write the From URI Domain ($fd)
in requests proxied by Kamailio to the source IP (socket) that Kamailio
will send them via.
Is this possible? I can hardcode IPs if required but would rather keep it
dynamic if I can.
Thanks in advance,
Matthew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180703/ffdf925e/attachment.html>
Both I think. I'll check the SIP messaging with ngrep and let you know if I see any
publish or subscribe requests.
________________________________
From: Daniel-Constantin Mierla <miconda at gmail.com>
Sent: Tuesday, July 3, 2018 7:18:13 AM
To: Kamailio (SER) - Users Mailing List; Justin Foley
Subject: Re: [SR-Users] Having trouble getting presence working with Polycom VVX
phones
Hello,
are you looking to get user presence (availability states) or dialog states (blf)?
Cheers,
Daniel
Hey everyone. I've set up a kamailio server on a local dev box and running the
phones on the same subnet as it to avoid any NAT issues. Seems to work fine, phones
register & can call eachother and hear voice but the issue I'm running into is I
can't seem to get presence to work. I've enabled it in the kamailio.cfg file with
#!WITH_PRESENCE but if I go into "do not disturb" or try to call on phone1, it's
not indicated on phone2. Also running ngrep on port 5060, I'm not seeing the
anything regarding presence being sent over the SIP protocol.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference -- www.kamailioworld.com<http://www.kamailioworld.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180703/54df6d48/attachment.html>
Hello community ,
on kamailio server i'm using the module "ims_usrloc_scsc" with the following
configuration :
.........................................................
modparam("ims_usrloc_scscf", "db_url", "mysql://eyas:eyas at localhost/scscf")
modparam("ims_usrloc_scscf", "db_mode", 1)
modparam("ims_usrloc_scscf", "enable_debug_file", 0)
modparam("ims_usrloc_scscf", "matching_mode", 0)
modparam("ims_registrar_scscf", "error_reply_code", 503)
..........................................................
when i'm running kamailio and try to register i found the following :
could any one tell me where was my wrong and why it can't write on the DB & thanks
in advance
On Wed, Jul 4, 2018 at 11:07 AM, Daniel Tryba <d.tryba at pocos.nl> wrote:
Hi Jeremy,
Thank you.
--
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180705/25ba3371/attachment.html>
--
--Mojtaba Esfandiari.S
In regard of my last post, If you have issue about kernel module, run
this command to update it:
apt-get install -t jessie-backports linux-image-amd64
Thanks
On Tue, Jun 26, 2018 at 1:43 PM, Mojtaba <mespio at gmail.com> wrote:
> Thank you, I do it successfully.
> I use these commands to install all dependencies:
> apt-get -t jessie-backports install debhelper libmysqlclient-dev
> iptables-dev libavcodec-dev libavfilter-dev libcurl4-openssl-dev
> libevent-dev libglib2.0-dev libhiredis-dev libjson-glib-dev
> libpcap0.8-dev libssl-dev libxmlrpc-core-c3-dev markdown
>
> apt-get -t jessie-backports install dkms module-assistant
> With Regards. Mojtaba
>
> On Mon, Jun 25, 2018 at 7:01 PM, Aqs Younas <aqsyounas at gmail.com> wrote:
>> Hello, Mojtaba.
>>
>> I don't remember the exact setups and unfortunately don't have access to
>> server. But let me write few things I did which may help you.
>> Added below line in source.list.
>> 1. deb http://ftp.debian.org/debian jessie-backports main
>> 2. apt-get update
>> 3. apt-get -t jessie-backports install debhelper
>> 4. Installed latest version of ffmpeg from source
>>
>> I was not able to successfully create .deb files but i was able to compile
>> it manually.
>> These links might help you.
>>
>> https://voipmagazine.wordpress.com/2015/02/17/rtpengine-compilation-and-
installation-in-fedora-redhat/
>> http://hrhashmi.blogspot.com/2016/06/rtpengine-installation-on-amazon-ami.html
>>
>> Br, Aqs
>>
>>
>>
>>
>> On Mon, 25 Jun 2018 at 14:19, Mojtaba <mespio at gmail.com> wrote:
>>>
>>> Hi,
>>> Please share the source.list for getting the lasted version of debhelper.
>>> Thanks
>>>
>>> On Sat, Apr 7, 2018 at 2:45 AM, Aqs Younas <aqsyounas at gmail.com> wrote:
>>> > Thanks for the answer.
>>> >
>>> > I had installed debhelper from Debian package but it had Version:
>>> > 9.20150101+deb8u2.
>>> >
>>> > root at debian-769mb-miami-01:/usr/src/rtpengine# dpkg -s debhelper | grep
>>> > '^Version:'
>>> > Version: 9.20150101+deb8u2
>>> >
>>> > Whereas rtpengine demands debhelper (>= 10~)
>>> >
>>> > That is why i was trying to install it from debs.
>>> >
>>> > Anyway, I updated my source.list and was able to get the lasted version
>>> > of
>>> > debhelpler.
>>> >
>>> > Thanks for your help.
>>> >
>>> >
>>> >
>>> >
>>> > On 6 April 2018 at 20:45, Ulrich Henning <HUlrich at telba.de> wrote:
>>> >>
>>> >> Hi Aqs,
>>> >>
>>> >>
>>> >>
>>> >> just use the corresponding build flag ‘export
>>> >> DEB_BUILD_PROFILES="pkg.ngcp-rtpengine.nobcg729"’ as stated in the
>>> >> readme
>>> >> (https://github.com/sipwise/rtpengine) and your issue should be fixed.
>>> >>
>>> >>
>>> >>
>>> >> BR,
>>> >>
>>> >> Henning
>>> >>
>>> >>
>>> >>
>>> >> Von: sr-users [mailto:sr-users-bounces at lists.kamailio.org] Im Auftrag
>>> >> von
>>> >> Aqs Younas
>>> >> Gesendet: Freitag, 6. April 2018 17:31
>>> >> An: Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
>>> >> Betreff: [SR-Users] rtpengine installation dependencies
>>> >>
>>> >>
>>> >>
>>> >> Greetings list.
>>> >>
>>> >>
>>> >>
>>> >> This might not be related to Kamailio but I thought someone would be
>>> >> able
>>> >> to give a hand in resolving dependency during the installation of
>>> >> rtpengine
>>> >> on Debian 8 Jessie.
>>> >>
>>> >>
>>> >>
>>> >> It is complaining about below dependencies.
>>> >>
>>> >>
>>> >>
>>> >> root at debian-769mb-miami-01:/usr/src/rtpengine# dpkg-buildpackage
>>> >>
>>> >> dpkg-buildpackage: source package ngcp-rtpengine
>>> >>
>>> >> dpkg-buildpackage: source version 6.3.0.0+0~mr6.3.0.0
>>> >>
>>> >> dpkg-buildpackage: source distribution unstable
>>> >>
>>> >> dpkg-buildpackage: source changed by Sipwise Jenkins Builder
>>> >> <jenkins at sipwise.com>
>>> >>
>>> >> dpkg-buildpackage: host architecture amd64
>>> >>
>>> >> dpkg-source --before-build rtpengine
>>> >>
>>> >> dpkg-source: info: using options from rtpengine/debian/source/options:
>>> >> --extend-diff-ignore=.gitreview
>>> >>
>>> >> dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 10~)
>>> >> libbcg729-dev
>>> >>
>>> >> dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied;
>>> >> aborting
>>> >>
>>> >> dpkg-buildpackage: warning: (Use -d flag to override.)
>>> >>
>>> >>
>>> >>
>>> >> I tried to install debhelper from deb but complained from dh-autoreconf
>>> >> and that itself complained abount debhelpler. So, no one is being
>>> >> installed.
>>> >>
>>> >> Also, If someone can help me how to resolve dependency for
>>> >> libbcg729-dev
>>> >> too.
>>> >>
>>> >> Any pointer or hint or link to some installation guide would be more
>>> >> than
>>> >> welcome.
>>> >>
>>> >>
>>> >>
>>> >> Br, Aqs.
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> Kamailio (SER) - Users Mailing List
>>> >> sr-users at lists.kamailio.org
>>> >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>> >>
>>> >
>>> >
>>> > _______________________________________________
>>> > Kamailio (SER) - Users Mailing List
>>> > sr-users at lists.kamailio.org
>>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>> >
>>>
>>>
>>>
>>> --
>>> --Mojtaba Esfandiari.S
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
>
> --
> --Mojtaba Esfandiari.S
--
--Mojtaba Esfandiari.S
Dear all,
Ok Thanks for your inputs, seems a good idea and I think we're on a
good path to solve our issues.
> Omitting the notification address should not cause an issue - what error do you
see in your log when it fails to start? If you get rid of the "DMQ server' node as
suggested above, though, this should be a none-issue.
So just to recap:
- Not specifying a notification_address DOES give issues
- Having a DNS record for the notification_address that does not
resolve makes kamailio to crash
Thanks,
--
Aleksandar Sosic
mail: alex.sosic at evosip.cloud
Cheers,
Charles
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180705/01dc8db8/attachment.html>
Hello,
starting here a discussion about an issue with the database API and
signed/unsigned number type to see how to address it.
So far, the database API supported only signed types for numbers,
respectively DB1_INT (int in c) and DB1_BIGINT (long long in c).
However, many database table columns are defined as UNSIGNED INT or
UNSIGNED BIGINT. The database connector modules are mapping UNSIGED
values retrieved from database over signed fields in DB API structure.
The other way around is done as well: signed values are the inserted in
the unsigned columns.
However, it can bite at any time and needs to be addressed. So far, two
solutions come in mind:
1) drop using UNSIGNED INT for those db columns, use only INT and do
unsigned cast in the C code when reading and cast to int when writing.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
5.2.0~dev6+0~20180616010152.1138+xenial
Thank you!
--
Aleksandar Sosic
mail: alex.sosic at evosip.cloud
Hi,
I'm now creating a dns record inside kubernetes with a headless service.
Unfortunately I must use a busybox that will start before the kamailio
nodes so the dns record will be created before kamailio starts because
otherwise it will crash as I told you before. IMHO it will be useful
to have a flag that allows me to choose if kamailio should start even
if the notification_address of the DMQ module does not resolve. That
would allow me to start nodes, populate the dns and then slowly add
nodes to the cluster without having a busybox to do that.
As you can see from the logs kamailio notices the busybox IP
(10.32.68.202) which obviously not being a kamailio node gives me this
errors:
```
17(109) ERROR: dispatcher [dispatch.c:1910]: ds_select_dst_limit(): no
destination sets
33(125) ERROR: dmq [notification_peer.c:596]:
notification_resp_callback_f(): deleting server sip:10.32.68.202:5061
because of failed request
33(125) ERROR: dmq [notification_peer.c:596]:
notification_resp_callback_f(): deleting server
sip:43.100.109.113:5061 because of failed request
```
Being a workaround for creating the DNS record before starting
kamailio nodes that's ok.
But notice the IP 43.100.109.113 which is not an IP that the DNS
record for the notification_address resolves:
```
$ nslookup dmq-proxy-service
Server: 10.96.0.10
Address: 10.96.0.10#53
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.83
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.84
Name: dmq-proxy-service.default.svc.cluster.local
Address: 10.32.68.202
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.81
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.82
```
So why is that?
Then I noticed that on one node I do have all the other IPs:
```kamcmd> dmq.list_nodes
{
host: 172.22.5.81
port: 5061
resolved_ip: 172.22.5.81
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.82
port: 5061
resolved_ip: 172.22.5.82
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.83
port: 5061
resolved_ip: 172.22.5.83
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.84
port: 5061
resolved_ip: 172.22.5.84
status: active
last_notification: 0
local: 1
}
```
```
router-0 3/3 Running 0
13m 172.22.5.94 master.alex.cloud.evox.it
router-1 3/3 Running 0
13m 172.22.5.3 master.alex.cloud.evox.it
router-2 3/3 Running 0
12m 172.22.5.4 master.alex.cloud.evox.it
router-3 3/3 Running 0
12m 172.22.5.5 master.alex.cloud.evox.it
```
```
root at router-0:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.3
port: 5062
resolved_ip: 172.22.5.3
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.4
port: 5062
resolved_ip: 172.22.5.4
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.94
port: 5062
resolved_ip: 172.22.5.94
status: active
last_notification: 0
local: 1
}
```
```
root at router-1:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.4
port: 5062
resolved_ip: 172.22.5.4
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.94
port: 5062
resolved_ip: 172.22.5.94
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.3
port: 5062
resolved_ip: 172.22.5.3
status: active
last_notification: 0
local: 1
}
```
```
root at router-2:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.94
port: 5062
resolved_ip: 172.22.5.94
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.3
port: 5062
resolved_ip: 172.22.5.3
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.4
port: 5062
resolved_ip: 172.22.5.4
status: active
last_notification: 0
local: 1
}
```
```
root at router-3:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.5
port: 5062
resolved_ip: 172.22.5.5
status: active
last_notification: 0
local: 1
}
```
```
nslookup dmq-router-service
Server: 10.96.0.10
Address: 10.96.0.10#53
Non-authoritative answer:
Name: dmq-router-service.default.svc.cluster.local
Address: 172.22.5.5
Name: dmq-router-service.default.svc.cluster.local
Address: 172.22.5.4
Name: dmq-router-service.default.svc.cluster.local
Address: 172.22.5.3
Name: dmq-router-service.default.svc.cluster.local
Address: 10.32.68.217
Name: dmq-router-service.default.svc.cluster.local
Address: 172.22.5.94
```
```
proxy-94b6ccf46-6n49v 3/3 Running 0
1m 172.22.5.99 master.alex.cloud.evox.it
proxy-94b6ccf46-7jrgj 3/3 Running 0
1m 172.22.5.98 master.alex.cloud.evox.it
proxy-94b6ccf46-rbskb 3/3 Running 0
1m 172.22.5.95 master.alex.cloud.evox.it
proxy-94b6ccf46-rtzh9 3/3 Running 0
1m 172.22.5.96 master.alex.cloud.evox.it`
```
```
root at proxy-94b6ccf46-6n49v:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.99
port: 5061
resolved_ip: 172.22.5.99
status: active
last_notification: 0
local: 1
}
```
```
root at proxy-94b6ccf46-7jrgj:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.95
port: 5061
resolved_ip: 172.22.5.95
status: active
last_notification: 0
local: 0
}
{
host: 172.22.5.98
port: 5061
resolved_ip: 172.22.5.98
status: active
last_notification: 0
local: 1
}
```
```
root at proxy-94b6ccf46-rbskb:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.95
port: 5061
resolved_ip: 172.22.5.95
status: active
last_notification: 0
local: 1
}
```
```
root at proxy-94b6ccf46-rtzh9:/# kamcmd
kamcmd 1.5
Copyright 2006 iptelorg GmbH
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
kamcmd> dmq.list_nodes
{
host: 172.22.5.96
port: 5061
resolved_ip: 172.22.5.96
status: active
last_notification: 0
local: 1
}
```
```
nslookup dmq-proxy-service
Server: 10.96.0.10
Address: 10.96.0.10#53
Non-authoritative answer:
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.99
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.98
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.96
Name: dmq-proxy-service.default.svc.cluster.local
Address: 172.22.5.95
Name: dmq-proxy-service.default.svc.cluster.local
Address: 10.32.68.218
```
I have Certificate Authority, who signed the server certificate and client
certificate.
Server certificate and root CA is added to server.
Client certificate and root CA is added to client.
Now CRL file path is update with server and it's own server certificate is
revoked. In this case what should be kamailio server behavior, if any
client wants to establish TLS connection? or Since it's own server
certificate is revoked TLS should be disabled on server side?
Regards,
Amarnath
> The CRL with revoked server certificate needs to be loaded in the sip
> client. TLS server doesn’t send CRL to client during handshake.
>
> Sent from my iPhone
>
> On Jul 3, 2018, at 6:16 AM, Daniel-Constantin Mierla <miconda at gmail.com>
> wrote:
>
> Hello,
>
> haven't played with CRL lately, but kamailio should just call libssl
> functions for validating the certificates, after initializing the context
> with CRL file.
>
> Maybe you can open an issue on github.com/kamailio/kamailio tracker, add
> there all log messages printed by kamailio with debug=3 in kamailio.cfg. In
> this way we do not forget about it and can be investigated properly.
> Cheers,
> Daniel
>
> On 28.06.18 08:47, Amarnath Kanchivanam wrote:
>
> Hi All,
>
> I'm trying to configured kamailio as TLS server with below configuration
> (tls.cfg) and TLS server is started successfully.
>
> [server:default]
> method = TLSv1+
> verify_certificate = yes
> require_certificate = yes
> private_key = ./sip/server.key
> certificate = ./sip/server.crt
> ca_list = ./bundle.crt
> crl = ./sip_crl.pem
> verify_depth = 9
>
> [client:default]
> verify_certificate = no
> require_certificate = no
>
> TLS connection works fine.
> Later i have updated the sip_crl.pem with server certificate revoked
> details and performed tls.reload command to load the latest update.
> After this I expect any TLS client trying to establish TLS connection
> should fail, as the client and server certificates are signed by same
> authority and server certificate is revoked. But the clients are able to
> establish TLS connection without any errors.
>
> I'm not getting any traces to confirm CRL validation has been performed
> before accepting the TLS connection.
>
> Any advice would be help to proceed with evaluating CRL functionality.
>
> -Amar
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180706/4fe09941/attachment.html>
Hi Enrico,
Are you calling it in conjunction with rtpengine? maybe this can help
you: https://lists.kamailio.org/pipermail/sr-users/2015-August/089434.html
Daniel
On 07/05/2018 02:02 PM, Enrico Bandiera wrote:
> Hi, I'm encountering an issue where calling keep_codecs_by_name does
> not modify the SDP on the INVITE unless I call the "evil function"
> msg_apply_changes
>
> Any help is welcome,
> Thanks,
> Enrico.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Thank you.
> Hi Enrico,
> Are you calling it in conjunction with rtpengine? maybe this can help you:
> https://lists.kamailio.org/pipermail/sr-users/2015-August/089434.html
>
>
> Daniel
>
>
> On 07/05/2018 02:02 PM, Enrico Bandiera wrote:
>
> Hi, I'm encountering an issue where calling keep_codecs_by_name does not
> modify the SDP on the INVITE unless I call the "evil function"
> msg_apply_changes
>
> Any help is welcome,
> Thanks,
> Enrico.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180706/98474be9/attachment.html>
Hello Support,
--
*Regards,*
*Abtin Mir*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180706/a4abf169/attachment.html>
Hello Daniel,
> [..]
> So far, the database API supported only signed types for numbers,
> respectively DB1_INT (int in c) and DB1_BIGINT (long long in c).
> However, many database table columns are defined as UNSIGNED INT or
> UNSIGNED BIGINT. The database connector modules are mapping UNSIGED
> values retrieved from database over signed fields in DB API structure.
> The other way around is done as well: signed values are the inserted in
> the unsigned columns.
>
> There is no issue if the value in C is a positive number, however, if
> the value goes over MAX_UINT/2 (over 2147483647), it becomes negative
> and inserting the value in database results in an exception and 0 being
> stored instead.
>
> So far, I guess the issue was rarely exposed, if at all, because no
> report on it, even these data types for DB1 are since the SER project
> was started in 2001. As I looked at database definition schema, most of
> unsigned columns are for internal flags or ids (e.g., lcr_id), where I
> guess no large values were used or needed so far.
Good summary. I wondered also about it a long time ago, I think for the
same reasons it was not yet exposed.
> However, it can bite at any time and needs to be addressed. So far, two
> solutions come in mind:
>
> 1) drop using UNSIGNED INT for those db columns, use only INT and do
> unsigned cast in the C code when reading and cast to int when writing.
>
> 2) update the db connector modules to support unsigned types -- I added
> support for them in DB API, but each db_* module has to be updated. The
> also each module that uses UNSIGNED DB columns must be updated
>
> 1) should be simpler, 2) more work but better in long term
>
> Any other ideas? Which of the options you prefer to go for
I also think that option 2) is better, in the end our internal (Kamailio
"v1") DB API should provide a good coverage for the actual types that
the respective databases offer. Its also a legacy (from SER times) that
we don't need to keep. This change would be also much less intrusive for
the upgrade path for our users, as no database schema changes are necessary.
As you already mentioned, many modules use this columns for flags or
IDs, so a conversion should be straight-forward in most cases.
> Not to forget: somehow related, probably we have to switch from int to
> long for PV number values, otherwise timestamp variables can go negative
> once unix timestamp approaches MAX_UINT/2 (still plenty of time, but
> should not be delayed for long ...).
Good idea as well. We should introduce this change at the start of the
next development cycle, if this introduces a lot of changes in our
module code base.
Best regards,
Henning
-- Alex
--
Sent via mobile, please forgive typos and brevity.
Dear all,
BR
Laurent
Dear all,
As you can see the Path value is set to "." But it must be set to [not set]
The Socket is also not set.
Any idea ?
BR
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180708/80f8f394/attachment.html>
Hello all,
There are some rtpengine parameters that permit to send an RPC command to
kamailio in order to terminate a dialog.
- timeout = xx
- b2b-url = http://xxxx:xx/RPC
- xmlrpc-format = 1
Abdoul OSSENI
Ingénieur DevOps chez Néo-Soft
Co-Fondateur de ON SERVICES
Tél : +33 601 135 167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180708/36580d3c/attachment.html>
<VI1PR0702MB3664A466EC829F6C60ABB0B781450@VI1PR0702MB3664.eurprd07.prod.outlook.com
>
Message-ID: <f7982144-ac45-be18-8a0b-f5d80bef79c6@gmail.com>
Hello,
I will check it -- reminders are good, somehow first message was not
noticed...
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
In RTPEngine recording-daemon, I enabled "forward-to" option to
unix_socket. All things work right, I got metadata at first, then
media packets (RTP-UDP-IP).
The metadata for each calls is received just at first packet, but i
want to know, if i have more than one concurrent active call in
RTPEngine, How can i distinct which media packet was from which call?
Thanks with Regards.
--Mojtaba Esfandiari.S
<VI1PR0702MB3664A466EC829F6C60ABB0B781450@VI1PR0702MB3664.eurprd07.prod.outlook.com
>
<f7982144-ac45-be18-8a0b-f5d80bef79c6@gmail.com>
Message-ID: <a8cca24e-1bef-c810-6ea7-beeb7b811c05@gmail.com>
Hello,
- rpc ul.add command doesn't have the last two parameters: received
and socket -- those were added in 5.1 -- so socket is not going to be
set no matter parameter you give
- path parameter was expecting "0" (s:0) in order not to set it -- for
coherence I pushed a patch to skip setting it if '.' is given
However, if you want to set one of the last two parameters, you have to
upgrade to 5.1.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi,
You can. For every new call a new connection is established using the
UNIX socket. So different connections means different calls.
Regards,
Paul
On Mon, Jul 9, 2018 at 1:54 PM, Pawel Kuzak <pawel.kuzak at 1und1.de> wrote:
> Hi,
>
> You can. For every new call a new connection is established using the UNIX
> socket. So different connections means different calls.
>
> Regards,
> Paul
>
>
>
> Am 09.07.2018 um 10:43 schrieb Mojtaba:
>>
>> Hello,
>> In RTPEngine recording-daemon, I enabled "forward-to" option to
>> unix_socket. All things work right, I got metadata at first, then
>> media packets (RTP-UDP-IP).
>> The metadata for each calls is received just at first packet, but i
>> want to know, if i have more than one concurrent active call in
>> RTPEngine, How can i distinct which media packet was from which call?
>> Thanks with Regards.
>> --Mojtaba Esfandiari.S
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
--Mojtaba Esfandiari.S
Hi All,
When we are using the kamailio to handle around 70 INVITE's per second, kamailio is
sending 100 Trying with the delay of around 3-4sec for few INVITE's.
Also, I tried increasing the number of threads for SIP routing processes. This
doesnt seem to help.
Please help.
Thank you,
Vivek.
Hi,
Kamailio doesn't delay sending of 100 trying after calling t_relay().
You probably have something blocking in your script: a SQL operation, a
Http query or some long operation. Check your routing script for the
presence of such operations.
Regards,
Federico
>
>
> Hi All,
>
>
>
>
>
>
>
> When we are using the kamailio to handle around 70 INVITE's per second,
> kamailio is sending 100 Trying with the delay of around 3-4sec for few
> INVITE's.
>
>
>
>
>
>
>
> How can I reduce the delay in 100 Trying?
>
>
>
>
>
>
>
> Also, I tried increasing the number of threads for SIP routing processes.
> This doesnt seem to help.
>
>
>
>
>
>
>
> Also tried "modparam("tm", "auto_inv_100", 0)" . This is not working.
>
>
>
>
>
>
>
> Please help.
>
>
>
>
>
>
>
> Thank you,
>
>
>
> Vivek.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180709/9bcb5911/attachment.html>
Hello,
just as hint to troubleshoot which actions take too long to execute, see
benchmark module as well as *latency* related core parameters.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi All,
Thanks,
Amit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180709/86047f6b/attachment.html>
Hi folks,
route[CPS] {
$var(rateHashSec) = $si+":sec:"+$timef(%Y/%m/%d_%H_%M_%S);
$var(rateHashMin) = $si+":min:"+$timef(%Y/%m/%d_%H_%M_00);
xlog("L_INFO", "var(rateHashSec)=$var(rateHashSec);
var(rateHashMin)=$var(rateHashMin)\n");
$var(ratePerSec) = $shtinc(rhs=>$var(rateHashSec));
$var(ratePerMin) = $shtinc(rhm=>$var(rateHashMin));
xlog("L_INFO", "var(ratePerSec)=$var(ratePerSec);
var(ratePerMin)=$var(ratePerMin)\n");
$var(limitPerSec) = 1;
$var(limitPerMin) = 1;
Much obliged.
--Sergiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180709/d3ac8686/attachment.html>
Have you considered using pipelimit for this? It's as simple as:
There was a time when that wasn't possible because pipes couldn't easily
be created dynamically for a given customer ID or whatever, and htable
was the preferred vehicle for that. That has changed, and nowadays it's
a lot simpler. :-)
-- Alex
> Hi folks,
>
> Trying to implement CPS throttling based on this
> <https://lists.kamailio.org/pipermail/sr-users/2013-
September/079713.html>article,
> having some trouble.
>
> modparam("htable", "htable", "rhs=>size=32;initval=0;autoexpire=300;"
> modparam("htable", "htable", "rhm=>size=32;initval=0;autoexpire=1800;")
>
> route[CPS] {
> $var(rateHashSec) = $si+":sec:"+$timef(%Y/%m/%d_%H_%M_%S);
> $var(rateHashMin) = $si+":min:"+$timef(%Y/%m/%d_%H_%M_00);
> xlog("L_INFO", "var(rateHashSec)=$var(rateHashSec);
> var(rateHashMin)=$var(rateHashMin)\n");
> $var(ratePerSec) = $shtinc(rhs=>$var(rateHashSec));
> $var(ratePerMin) = $shtinc(rhm=>$var(rateHashMin));
> xlog("L_INFO", "var(ratePerSec)=$var(ratePerSec);
> var(ratePerMin)=$var(ratePerMin)\n");
> $var(limitPerSec) = 1;
> $var(limitPerMin) = 1;
>
> if ($var(ratePerSec) > $var(limitPerSec) || $var(ratePerMin) >
> $var(limitPerMin)) {
> xlog("L_INFO", "CPS Limit on IP $si\n");
> send_reply("503", "CPS Limit on IP $si");
> exit;
> }
>
> }
>
> Logs show hashes are created but *$var(ratePerSec/Min)* won't increment no
> matter how many calls I place per second or minute:
>
> Jul 9 14:35:52 proxy /usr/local/sbin/kamailio[1484]: INFO: <script>:
> var(rateHashSec)=65.39.XX.XX:sec:2018/07/09_14_35_52;
> var(rateHashMin)=65.39.XX.XX:min:2018/07/09_14_35_00
> Jul 9 14:35:52 proxy /usr/local/sbin/kamailio[1484]: INFO: <script>:
> var(ratePerSec)=0; var(ratePerMin)=0
>
> Much obliged.
> --Sergiu
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
I have not until now that you recommended it, looks much simpler indeed,
thanks.
Say I wanted 1 call per minute pipe, what would be the 'timer_interval' and
pl_check limit?
> Have you considered using pipelimit for this? It's as simple as:
>
> if(!pl_check("$avp(customer_id)", "TAILDROP", "$avp(cps_limit)")) {
> pl_drop();
> exit;
> }
>
> There was a time when that wasn't possible because pipes couldn't easily
> be created dynamically for a given customer ID or whatever, and htable
> was the preferred vehicle for that. That has changed, and nowadays it's
> a lot simpler. :-)
>
> -- Alex
>
> On Mon, Jul 09, 2018 at 02:41:44PM -0400, Sergiu Pojoga wrote:
>
> > Hi folks,
> >
> > Trying to implement CPS throttling based on this
> > <
> https://lists.kamailio.org/pipermail/sr-users/2013-September/079713.html
> >article,
> > having some trouble.
> >
> > modparam("htable", "htable", "rhs=>size=32;initval=0;autoexpire=300;"
> > modparam("htable", "htable", "rhm=>size=32;initval=0;autoexpire=1800;")
> >
> > route[CPS] {
> > $var(rateHashSec) = $si+":sec:"+$timef(%Y/%m/%d_%H_%M_%S);
> > $var(rateHashMin) = $si+":min:"+$timef(%Y/%m/%d_%H_%M_00);
> > xlog("L_INFO", "var(rateHashSec)=$var(rateHashSec);
> > var(rateHashMin)=$var(rateHashMin)\n");
> > $var(ratePerSec) = $shtinc(rhs=>$var(rateHashSec));
> > $var(ratePerMin) = $shtinc(rhm=>$var(rateHashMin));
> > xlog("L_INFO", "var(ratePerSec)=$var(ratePerSec);
> > var(ratePerMin)=$var(ratePerMin)\n");
> > $var(limitPerSec) = 1;
> > $var(limitPerMin) = 1;
> >
> > if ($var(ratePerSec) > $var(limitPerSec) || $var(ratePerMin) >
> > $var(limitPerMin)) {
> > xlog("L_INFO", "CPS Limit on IP $si\n");
> > send_reply("503", "CPS Limit on IP $si");
> > exit;
> > }
> >
> > }
> >
> > Logs show hashes are created but *$var(ratePerSec/Min)* won't increment
> no
> > matter how many calls I place per second or minute:
> >
> > Jul 9 14:35:52 proxy /usr/local/sbin/kamailio[1484]: INFO: <script>:
> > var(rateHashSec)=65.39.XX.XX:sec:2018/07/09_14_35_52;
> > var(rateHashMin)=65.39.XX.XX:min:2018/07/09_14_35_00
> > Jul 9 14:35:52 proxy /usr/local/sbin/kamailio[1484]: INFO: <script>:
> > var(ratePerSec)=0; var(ratePerMin)=0
> >
> > Much obliged.
> > --Sergiu
>
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180709/f3e89dc6/attachment.html>
Cheers
--Sergiu
> I have not until now that you recommended it, looks much simpler indeed,
> thanks.
>
> Although, so far I can't seem to hit a pipe limit. If I watch pl.stats, no
> matter what *timer_interval* I set, the counter increases to 1 upon a
> call then back to 0 the next second.
>
> root at proxy:/# watch -n 1 -d kamcmd pl.stats
> PIPE: id=65.39.XX.XX load=0 counter=0
>
> Say I wanted 1 call per minute pipe, what would be the 'timer_interval'
> and pl_check limit?
>
> On Mon, Jul 9, 2018 at 2:47 PM Alex Balashov <abalashov at evaristesys.com>
> wrote:
>
>> Have you considered using pipelimit for this? It's as simple as:
>>
>> if(!pl_check("$avp(customer_id)", "TAILDROP", "$avp(cps_limit)")) {
>> pl_drop();
>> exit;
>> }
>>
>> There was a time when that wasn't possible because pipes couldn't easily
>> be created dynamically for a given customer ID or whatever, and htable
>> was the preferred vehicle for that. That has changed, and nowadays it's
>> a lot simpler. :-)
>>
>> -- Alex
>>
>> On Mon, Jul 09, 2018 at 02:41:44PM -0400, Sergiu Pojoga wrote:
>>
>> > Hi folks,
>> >
>> > Trying to implement CPS throttling based on this
>> > <
>> https://lists.kamailio.org/pipermail/sr-users/2013-September/079713.html
>> >article,
>> > having some trouble.
>> >
>> > modparam("htable", "htable", "rhs=>size=32;initval=0;autoexpire=300;"
>> > modparam("htable", "htable", "rhm=>size=32;initval=0;autoexpire=1800;")
>> >
>> > route[CPS] {
>> > $var(rateHashSec) = $si+":sec:"+$timef(%Y/%m/%d_%H_%M_%S);
>> > $var(rateHashMin) = $si+":min:"+$timef(%Y/%m/%d_%H_%M_00);
>> > xlog("L_INFO", "var(rateHashSec)=$var(rateHashSec);
>> > var(rateHashMin)=$var(rateHashMin)\n");
>> > $var(ratePerSec) = $shtinc(rhs=>$var(rateHashSec));
>> > $var(ratePerMin) = $shtinc(rhm=>$var(rateHashMin));
>> > xlog("L_INFO", "var(ratePerSec)=$var(ratePerSec);
>> > var(ratePerMin)=$var(ratePerMin)\n");
>> > $var(limitPerSec) = 1;
>> > $var(limitPerMin) = 1;
>> >
>> > if ($var(ratePerSec) > $var(limitPerSec) || $var(ratePerMin) >
>> > $var(limitPerMin)) {
>> > xlog("L_INFO", "CPS Limit on IP $si\n");
>> > send_reply("503", "CPS Limit on IP $si");
>> > exit;
>> > }
>> >
>> > }
>> >
>> > Logs show hashes are created but *$var(ratePerSec/Min)* won't increment
>> no
>> > matter how many calls I place per second or minute:
>> >
>> > Jul 9 14:35:52 proxy /usr/local/sbin/kamailio[1484]: INFO: <script>:
>> > var(rateHashSec)=65.39.XX.XX:sec:2018/07/09_14_35_52;
>> > var(rateHashMin)=65.39.XX.XX:min:2018/07/09_14_35_00
>> > Jul 9 14:35:52 proxy /usr/local/sbin/kamailio[1484]: INFO: <script>:
>> > var(ratePerSec)=0; var(ratePerMin)=0
>> >
>> > Much obliged.
>> > --Sergiu
>>
>> > _______________________________________________
>> > Kamailio (SER) - Users Mailing List
>> > sr-users at 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 at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180709/2243077f/attachment.html>
Hello list,
Hope you all doing fine!
I've been trying to install Kamailio packages from the opensuse repo (as
per https://www.kamailio.org/wiki/packages/rpms) but the installation is
failing with this message:
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
kamailio-ims-5.0.7-1.el7.cento
FAILED
http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-
rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-1.el7.centos.x86_64.rpm:
[Errno 14] HTTP Error 416 - Requested Range Not Satisfiable --:--:-- ETA
Trying other mirror.
kamailio-5.0.7-1.el7.centos.x8
FAILED 77%
[============================================================-
] 1.0 MB/s | 4.9 MB 00:00:01 ETA
http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-
rpms/CentOS_7/x86_64/kamailio-5.0.7-1.el7.centos.x86_64.rpm:
[Errno -1] Package does not match intended download. Suggestion: run yum
--enablerepo=home_kamailio_v5.0.x-rpms clean metadata
Trying other mirror.
I've successfully installed the 5.0.7 version on Friday (06/07) but I've
noticed the packages have changed last Saturday (07/07/2018).... Given this
error message looks like the repository is broken somehow....
Is anyone aware of such issue? I haven't tried the 5.1.X repo because my
script was not migrated to 5.1.X yet....
Thanks,
Kind regards,
Patrick Wakano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180710/03e2ab17/attachment.html>
Cheers!
Patrick Wakano
Hi,
Regards,
Amarnath
Hello,
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi guys,
i've a Kamailio with forking scenario using addbranch technique.Now I've a problem;
i know it's very very very rare but it could be possible so it's better for me to
find a solution.
A -> B,C,D in forking parallel mode, so B C and D rings simultaneulsy.
What is happen if B anser the call, and at the same time C decline the call?It
seems that, using my cfg scripts, C sends DECLINE but this message never arrive to
A because it receives a 200OK of B.
How I can prevent this? I would like that if DECLINE is the first message, all
other answers will be ignored (first answer win).
Any help or comment?
ThanksMarino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180710/f33123bf/attachment.html>
Hello,
look at t_cancel_branches():
-
https://www.kamailio.org/docs/modules/stable/modules/tmx.html#tmx.f.t_cancel_branch
es
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Greeting list,
Could someone please help me out how to fix this. Cancels are handles
automatically so, i cannot hardcore anything to resolve it.
Best Regards,
Aqs Younas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180711/a816a097/attachment.html>
Hello,
what the above statement means? Kamailio forwarded the invite to callee,
got 200ok, but sends back the 200 response?
Cheers,
Daniel
>
> 2018/07/10 19:47:41.125893 172.31.21.87:5060
> <http://172.31.21.87:5060> -> 39.38.156.111:59969
> <http://39.38.156.111:59969>
> SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM )
> Via: SIP/2.0/UDP
> 39.38.156.111:59969;branch=z9hG4bK-524287-1---91c6114330fe6293;rport=59969
> To: <sip:923335550609 at sip.talkhomeappcall.com
> <mailto:sip%3A923335550609 at
sip.talkhomeappcall.com>;transport=UDP>;tag=9fe2d4c84d97a4af81aa65ca8fc51b3d-62cb
> From: <sip:923135082344 at sip.talkhomeappcall.com
> <mailto:sip%3A923135082344 at
sip.talkhomeappcall.com>;transport=UDP>;tag=d72eaf4c
> Call-ID: VkAwxpSgkKSGn5dXaXgn5A..
> CSeq: 2 INVITE
> Content-Length: 0
>
>
> root at sip:~# kamailio -V
> version: kamailio 5.1.3 (x86_64/linux)
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
> USE_DST_BLACKLIST, HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled on 08:06:26 May 2 2018 with gcc 4.9.2
>
>
> Could someone please help me out how to fix this. Cancels are handles
> automatically so, i cannot hardcore anything to resolve it.
>
> Best Regards,
>
> Aqs Younas
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi,
I’m wondering if there is a flag somewhere in the UAC module config that prevents
remote registration from happening.
It looks like I’ve loaded the uacreg table but I can’t see any REGISTER methods
being sent from Kamailio to the remote peer.
listen=udp:172.16.176.150:5060
loadmodule "db_postgres.so"
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "ctl.so"
loadmodule "cfg_rpc.so"
loadmodule "counters.so"
loadmodule "uac.so"
request_route {
route(RELAY);
}
route[RELAY] {
t_on_reply("MANAGE_REPLY");
if (!t_relay()) {
sl_reply_error();
}
exit;
}
$ kamcmd uac.reg_dump
{
l_uuid: 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f
l_username: 126231943099723776
l_domain: 172.16.176.150
r_username: 1000
r_domain: 172.16.176.129
realm: 172.16.176.129
auth_username: 1000
auth_password: password
auth_proxy: sip:172.16.176.129:5080
expires: 0
flags: 0
diff_expires: -1531235076
timer_expires: 0
reg_init: 1531234841
reg_delay: 0
}
I can get Kamailio to forward an OPTIONS message to the remote peer () to verify
network connectivity, e.g. :
But Kamailio does not appear to generate REGISTER messages either after first boot
or as a result of the manual refresh.
This is using an instance of Kamailio 5.0.1. Should I try with a newer version?
If I increase the debug verbosity, I get quite granular detail for the DB traffic,
but the uac module doesn’t appear to emit much diagnostics.
Many thanks,
Ben
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
my topo:
/
(public iP)Kamailio server1(load balance)(Private IP)
\
\
After setting the expires field to 360 and the reg_delay to 3, kamailio sent the
REGISTER messages to the auth proxy:
So now the uac module has successfully registered with the remote proxy.
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180711/64396061/attachment.html>
After setting the expires field to 360 and the reg_delay to 3, kamailio sent the
REGISTER messages to the auth proxy:
So now the uac module has successfully registered with the remote proxy.
Hi,
You could use this tutorial - Load Balancing in OpenSIPS. It is
similar to Kamailio.
http://www.opensips.org/Documentation/Tutorials-LoadBalancing-1-9
With Regards
Mojtaba
On Wed, Jul 11, 2018 at 6:34 PM, SamSung TV <samsungtv32inc at gmail.com> wrote:
> I want to use kamailio as load balancing server
>
>
>
> my topo:
>
> (Private IP) Kamailio server2
>
> /
>
> /
> (public iP)Kamailio server1(load balance)(Private IP)
>
> \
> \
>
> (Private IP) Kamailio server1
>
> Any body can recomment me some tutorial to do this?
> Thanks any advance!
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
--Mojtaba Esfandiari.S
Sorry, if i could not explain it well before. I hope below picture will
make it clear.
[image: image.png]
BTW what is the best way to call multiple async functions in kamailio.
Best Regards,
Aqs Younas
> Hello,
>
> On 10.07.18 22:08, Aqs Younas wrote:
>
> Greeting list,
>
> I am using two async functions(http_async_query) in configuration one for
> authentication and other one for push notifications. I am also using tsilio
> module to suspend the transaction and resumed it.
>
> I am resetting this flag 'T_ASYNC_SUSPENDED' before suspending the
> transaction. Everything is working fine except. When caller send CANCEL on
> the call, kamailio successfully completes sip flow at callee(B party) side
> but send back below packet towards caller.
>
>
> what the above statement means? Kamailio forwarded the invite to callee,
> got 200ok, but sends back the 200 response?
>
> Cheers,
> Daniel
>
>
> 2018/07/10 19:47:41.125893 172.31.21.87:5060 -> 39.38.156.111:59969
> SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM )
> Via: SIP/2.0/UDP 39.38.156.111:59969
> ;branch=z9hG4bK-524287-1---91c6114330fe6293;rport=59969
> To: <sip:923335550609 at sip.talkhomeappcall.com
> ;transport=UDP>;tag=9fe2d4c84d97a4af81aa65ca8fc51b3d-62cb
> From: <sip:923135082344 at sip.talkhomeappcall.com
> ;transport=UDP>;tag=d72eaf4c
> Call-ID: VkAwxpSgkKSGn5dXaXgn5A..
> CSeq: 2 INVITE
> Content-Length: 0
>
>
> root at sip:~# kamailio -V
> version: kamailio 5.1.3 (x86_64/linux)
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
> HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled on 08:06:26 May 2 2018 with gcc 4.9.2
>
>
> Could someone please help me out how to fix this. Cancels are handles
> automatically so, i cannot hardcore anything to resolve it.
>
> Best Regards,
>
> Aqs Younas
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180711/df28b5f3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 170854 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180711/df28b5f3/attachment.png>
As an extra hint, you have to set the socket attribute to your private
ip socket to do bridge from external to internal networks.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Cheers,
Daniel
On 12.07.18 00:11, Ben Hood wrote:
>
>
>> On 11 Jul 2018, at 17:11, Daniel-Constantin Mierla <miconda at gmail.com
>> <mailto:miconda at gmail.com>> wrote:
>>
>> is the 'expires' value in the db records greater than 0? It is shown
>> 0 in the rpc dump.
>>
>
> Yes, that was it.
>
> After setting the expires field to 360 and the reg_delay to 3,
> kamailio sent the REGISTER messages to the auth proxy:
>
> 7(9339) DEBUG: tm [uac.c:427]: t_uac_prepare():
> next_hop=<sip:172.16.176.129:5080>
>
> So now the uac module has successfully registered with the remote proxy.
>
> Many thanks for you help, very much appreciated :-)
>
> Ben
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
If not, then run with debug=3 in kamailio config and send full log
messages for such call.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
I am trying make presence module work with Kamailio. Right now I am testing
these modules: presence, presence_xml, presence_dialoginfo, pua and
pua_dialoginfo.
I had some success, the BLF is working only when the monitored extension is
calling. When the monitored extension is calling, then the BLF changes its
color (red). After end of the call the BLF changes color to green.
Second question is about BLF and offline state. I can not found
anything in RFC, there is no offline state, no way to turn off the BLF
lamp from green to OFF.
I could not find anything related to error. Below are the full detailed
logs. Again thanks for you help.
Best Regards,
Aqs
Very unlikely, but may be try playing with the TM's params, like for e.g.
https://kamailio.org/docs/modules/5.1.x/modules/tm.html#remap_503_500
On Thu, Jul 12, 2018 at 2:56 AM Aqs Younas <aqsyounas at gmail.com> wrote:
> Sorry, if i could not explain it well before. I hope below picture will
> make it clear.
>
> [image: image.png]
>
> is it some configuration issue?
>
> BTW what is the best way to call multiple async functions in kamailio.
>
> Any suggestion is much appreciated.
>
> Best Regards,
>
> Aqs Younas
>
> On Wed, 11 Jul 2018 at 12:39, Daniel-Constantin Mierla <miconda at gmail.com>
> wrote:
>
>> Hello,
>>
>> On 10.07.18 22:08, Aqs Younas wrote:
>>
>> Greeting list,
>>
>> I am using two async functions(http_async_query) in configuration one for
>> authentication and other one for push notifications. I am also using tsilio
>> module to suspend the transaction and resumed it.
>>
>> I am resetting this flag 'T_ASYNC_SUSPENDED' before suspending the
>> transaction. Everything is working fine except. When caller send CANCEL on
>> the call, kamailio successfully completes sip flow at callee(B party) side
>> but send back below packet towards caller.
>>
>>
>> what the above statement means? Kamailio forwarded the invite to callee,
>> got 200ok, but sends back the 200 response?
>>
>> Cheers,
>> Daniel
>>
>>
>> 2018/07/10 19:47:41.125893 172.31.21.87:5060 -> 39.38.156.111:59969
>> SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM )
>> Via: SIP/2.0/UDP 39.38.156.111:59969
>> ;branch=z9hG4bK-524287-1---91c6114330fe6293;rport=59969
>> To: <sip:923335550609 at sip.talkhomeappcall.com
>> ;transport=UDP>;tag=9fe2d4c84d97a4af81aa65ca8fc51b3d-62cb
>> From: <sip:923135082344 at sip.talkhomeappcall.com
>> ;transport=UDP>;tag=d72eaf4c
>> Call-ID: VkAwxpSgkKSGn5dXaXgn5A..
>> CSeq: 2 INVITE
>> Content-Length: 0
>>
>>
>> root at sip:~# kamailio -V
>> version: kamailio 5.1.3 (x86_64/linux)
>> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
>> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
>> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
>> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
>> HAVE_RESOLV_RES
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>> id: unknown
>> compiled on 08:06:26 May 2 2018 with gcc 4.9.2
>>
>>
>> Could someone please help me out how to fix this. Cancels are handles
>> automatically so, i cannot hardcore anything to resolve it.
>>
>> Best Regards,
>>
>> Aqs Younas
>>
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>> Kamailio World Conference -- www.kamailioworld.com
>>
>> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180712/a93a5e17/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 170854 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180712/a93a5e17/attachment.png>
Thanks Daniel!
I'm folow: https://www.kamailio.org/docs/modules/stable/modules/
dispatcher.html#dispatcher.ex.install
but my kamailio get errors:
parameter <dstid_avp> of type <1> not found in module <dispatcher>
parameter <attrs_avp> of type <1> not found in module <dispatcher>
parameter <sock_avp> of type <1> not found in module <dispatcher>
parameter <cnt_avp> of type <1> not found in module <dispatcher>
I have no infor how to fix it
Can you show me more detail about how to do:
- *Fix error*
* - Set the socket attribute to your private ip socket to do bridge
from external to internal networks. *
(just add to "attrs(str,opt)", and in my situation, it is
my private IP of Kamailio server1 ? forexample:
1 sip:<PublicIP>:<Port> 0 0
duid=kamilioserver1;socket=<protocol>:<KamailioServer1_PrivateIP>:<Port>;my=xyz)
(I don't understand what my=xyz mean..)
* - Do i have to do something in Kamailio server2 and KamailioServer3
(or just create kamailio database each server and synchronyze kamailio
database between them?)*
*Thanks!*
And thanks Mojtaba! I had read your recomment tutorial with OpenSIP, but
do not know how to apply to my system. Have you got an other more clearly
tutorial for this?
Hello,
can you give here the INVITE that is sent out by Kamailio? In the
screenshot that you gave in a previous email it was the incoming INVITE.
>From the logs, the 487 is matching the first branch, but that should be
the one that was suspended, not the outgoing one.
How do you do that? Can you list the order of operations that happen,
like next?
- INVITE received
- http async for auth
- reset the T_ASYNC_SUSPENDED flag ?!?
- http async for push
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Do not reply to the digest message of the mailing list manager if you
want to participate in a discussion.
It seems you are using the master branch (development version), which is
not really recommended for production, unless it is exactly what you want.
So, either install version 5.1.x to use with the link I provided before
or for master branch read the appropriate docs at:
*
https://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.ex.insta
ll
There were changes in dispatcher from 5.1 to devel branch, using now
xavps instead of avps.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
v=0
o=Z 0 0 IN IP4 18.130.57.226
s=Z
c=IN IP4 18.130.57.226
t=0 0
m=audio 39698 RTP/AVP 3 110 8 0 97 101
a=rtpmap:3 GSM/8000
a=rtpmap:110 speex/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:97 mode=30
a=fmtp:101 0-16
a=sendrecv
a=rtcp:39699
*#!define T_ASYNC_SUSPENDED 5*
1. Call comes
2. Send a http async for authentication.
3. On 200 OK from http I perform user lookup
4. If B party is registered call is send towards it.
i) Push notification is sent for further registration against device B.
route[USER_LOOKUP]
{
send_reply("100", "Trying");
if (is_method("INVITE")) {
if (!lookup("location"))
{
route(SEND_PUSH);
}else{
ts_store();
$sht(vtp=>stored::$rU) = 1;
xlog("L_INFO","[USER-LOOKUP:$ci] -> stored transaction
[$T(id_index):$T(id_label)] $fU=> $rU\n");
t_on_reply("EXTERNAL_REPLY");
t_on_failure("EXTERNAL_FAULT");
t_relay();
route(SEND_PUSH);
}
}
}
Thanks for your time. Please let me know if any further information is
required.
Best Regards,
Aqs.
> Hello,
> can you give here the INVITE that is sent out by Kamailio? In the
> screenshot that you gave in a previous email it was the incoming INVITE.
>
> From the logs, the 487 is matching the first branch, but that should be
> the one that was suspended, not the outgoing one.
>
> Reading back this email thread, you said:
>
> "I am resetting this flag 'T_ASYNC_SUSPENDED' before suspending the
> transaction."
>
> How do you do that? Can you list the order of operations that happen, like
> next?
>
> - INVITE received
> - http async for auth
> - reset the T_ASYNC_SUSPENDED flag ?!?
> - http async for push
>
> Cheers,
> Daniel
>
> On 12.07.18 10:37, Aqs Younas wrote:
>
> I could not find anything related to error. Below are the full detailed
> logs. Again thanks for you help.
>
> [...]
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/udp_server.c:492]: udp_rcv_loop(): received on udp socket:
> (118/100/591) [[SIP/2.0 487 Request Terminated 0D 0A CSeq: 2 INVITE 0D 0A
> Call-ID: v51-8AifZ2mXi4RFMRej9A.. 0D 0A From: <sip:923135]]
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:614]: parse_msg(): SIP Reply (status):
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:616]: parse_msg(): version: <SIP/2.0>
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:618]: parse_msg(): status: <487>
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:620]: parse_msg(): reason: <Request Terminated>
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:152]: get_hdr_field(): cseq <CSeq>: <2> <INVITE>
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/parse_addr_spec.c:185]: parse_to_param(): add param:
> tag=26d24c34
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header
> reached, state=29
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:171]: get_hdr_field(): <To> [71]; uri=[
> sip:923335550609 at sip.talkhomeappcall.com;transport=UDP]
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:172]: get_hdr_field(): to body [<
> sip:923335550609 at sip.talkhomeappcall.com;transport=UDP>]
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 232,
> <branch> = <z9hG4bK4e9b.c598ebabb2493d5c9aebf673208c6bea.0>; state=9
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/parse_via.c:2681]: parse_via(): parsing via: next via
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 235,
> <rport> = <61717>; state=6
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 232,
> <branch> = <z9hG4bK-524287-1---6a391e4fb0f8a8f6>; state=16
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/parse_via.c:2639]: parse_via(): end of header reached, state=5
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:492]: parse_headers(): Via found, flags=2
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:494]: parse_headers(): this is the first via
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/receive.c:205]:
> receive_msg(): --- received sip message - reply - call-id:
> [v51-8AifZ2mXi4RFMRej9A..] - cseq: [2 INVITE]
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:1019]:
> t_check_msg(): msg (0x7f3ac975e930) id=1140 global id=1139 T
> start=0xffffffffffffffff
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:897]:
> t_reply_matching(): t_reply_matching: hash 47588 label 0 branch 0
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:951]:
> t_reply_matching(): reply (0x7f3ac975e930) matched an active transaction
> (T=0x7f3ac5004448)!
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:1088]:
> t_check_msg(): msg (0x7f3ac975e930) id=1140 global id=1140 T
> end=0x7f3ac5004448
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_reply.c:2207]:
> reply_received(): org. status uas=180, uac[0]=180 local=0 is_invite=1)
> Jul 12 08:12:09 sip kamailio[22302]: INFO: <script>:
> [R-EXTERNAL_REPLY:v51-8AifZ2mXi4RFMRej9A..] -> saw reply to METHOD:INVITE
> RESPONSE:'487 Request Terminated' from 115.186.137.147:5060
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:1019]:
> t_check_msg(): msg (0x7f3ac975e930) id=1140 global id=1140 T
> start=0x7f3ac5004448
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:1091]:
> t_check_msg(): T (0x7f3ac5004448) already found for msg (0x7f3ac975e930)!
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:183]: get_hdr_field(): content_length=0
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: siputils [sipops.c:171]:
> is_first_hop(): no record-route header - first hop
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: textops [textops.c:3063]:
> has_body_helper(): content length is zero
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_reply.c:1263]:
> t_should_relay_response(): ->>>>>>>>> T_code=180, new_code=487
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:1019]:
> t_check_msg(): msg (0x7f3ac50441b0) id=1104 global id=1104 T
> start=0x7f3ac5004448
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_lookup.c:1091]:
> t_check_msg(): T (0x7f3ac5004448) already found for msg (0x7f3ac50441b0)!
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tmx [t_var.c:534]:
> pv_get_tm_reply_code(): reply code is <487>
> Jul 12 08:12:09 sip kamailio[22302]: INFO: <script>:
> v51-8AifZ2mXi4RFMRej9A..|start|external failure route, 487 generated for
> method INVITE after progress
> Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core>
> [core/msg_translator.c:159]: check_via_address(): (115.186.137.147,
> 115.186.137.147, 0)
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_reply.c:1629]:
> cleanup_uac_timers(): RETR/FR timers reset*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_reply.c:596]:
> _reply_light(): reply sent out. buf=0x7f3ac9760da0: SIP/2.0 500 I'm
> terr..., shmem=0x7f3ac5025330: SIP/2.0 500 I'm terr*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_reply.c:606]:
> _reply_light(): finished*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_reply.c:1786]:
> relay_reply(): branch=0, save=0, relay=-1 icode=0*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: tm [t_reply.c:1629]:
> cleanup_uac_timers(): RETR/FR timers reset*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/receive.c:362]:
> receive_msg(): reply-route executed in: 2909 usec*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/xavp.c:446]:
> xavp_destroy_list(): destroying xavp list (nil)*
> *Jul 12 08:12:09 sip kamailio[22302]: DEBUG: <core> [core/receive.c:378]:
> receive_msg(): cleaning up*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/udp_server.c:492]: udp_rcv_loop(): received on udp socket:
> (106/100/419) [[ACK sip:923335550609 at sip.talkhomeappcall.com
> <sip%3A923335550609 at sip.talkhomeappcall.com>;transport=UDP SIP/2.0 0D 0A
> Via: SIP/2.0/UDP 115.186.137.147]]*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:604]: parse_msg(): SIP Request:*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:606]: parse_msg(): method: <ACK>*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:608]: parse_msg(): uri:
> <sip:923335550609 at sip.talkhomeappcall.com
> <sip%3A923335550609 at sip.talkhomeappcall.com>;transport=UDP>*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:610]: parse_msg(): version: <SIP/2.0>*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 232,
> <branch> = <z9hG4bK-524287-1---6a391e4fb0f8a8f6>; state=16*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/parse_via.c:2639]: parse_via(): end of header reached, state=5*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:492]: parse_headers(): Via found, flags=2*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:494]: parse_headers(): this is the first via*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/parse_addr_spec.c:185]: parse_to_param(): add param:
> tag=9fe2d4c84d97a4af81aa65ca8fc51b3d-9b76*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header
> reached, state=29*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:171]: get_hdr_field(): <To> [100];
> uri=[sip:923335550609 at sip.talkhomeappcall.com
> <sip%3A923335550609 at sip.talkhomeappcall.com>;transport=UDP]*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:172]: get_hdr_field(): to body
> [<sip:923335550609 at sip.talkhomeappcall.com
> <sip%3A923335550609 at sip.talkhomeappcall.com>;transport=UDP>]*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:152]: get_hdr_field(): cseq <CSeq>: <2> <ACK>*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/receive.c:205]:
> receive_msg(): --- received sip message - request - call-id:
> [v51-8AifZ2mXi4RFMRej9A..] - cseq: [2 ACK]*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/receive.c:248]:
> receive_msg(): preparing to run routing scripts...*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: sl [sl_funcs.c:387]:
> sl_filter_ACK(): too late to be a local ACK!*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:183]: get_hdr_field(): content_length=0*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/parse_addr_spec.c:185]: parse_to_param(): add param:
> tag=dc4e5a14*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core>
> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header
> reached, state=29*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: sanity [sanity_mod.c:256]:
> w_sanity_check(): sanity checks result: 1*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: maxfwd [mf_funcs.c:74]:
> is_maxfwd_present(): value = 70*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: maxfwd [maxfwd.c:148]:
> process_maxfwd_header(): value 70 decreased to 50*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: pv [pv_core.c:966]:
> pv_get_useragent(): no User-Agent header*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: pv [pv_core.c:966]:
> pv_get_useragent(): no User-Agent header*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: pv [pv_core.c:966]:
> pv_get_useragent(): no User-Agent header*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: siputils [sipops.c:159]:
> is_first_hop(): no 2nd via found - first hop*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: textops [textops.c:3063]:
> has_body_helper(): content length is zero*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: siputils [checks.c:123]:
> has_totag(): totag found*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: rr [loose.c:112]:
> find_first_route(): No Route headers found*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: rr [loose.c:944]:
> loose_route(): There is no Route HF*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: tm [t_lookup.c:1019]:
> t_check_msg(): msg (0x7f3ac975e930) id=1109 global id=1108 T
> start=0xffffffffffffffff*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: tm [t_lookup.c:477]:
> t_lookup_request(): start searching: hash=47588, isACK=1*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: tm [t_lookup.c:420]:
> matching_3261(): RFC3261 transaction matched,
> tid=-524287-1---6a391e4fb0f8a8f6*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: tm [t_lookup.c:676]:
> t_lookup_request(): transaction found (T=0x7f3ac5004448)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: tm [t_lookup.c:1088]:
> t_check_msg(): msg (0x7f3ac975e930) id=1109 global id=1109 T
> end=0x7f3ac5004448*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: tm [t_reply.c:1629]:
> cleanup_uac_timers(): RETR/FR timers reset*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/timer.c:575]:
> timer_add_safe(): timer_add called on an active timer 0x7f3ac50044c8
> (0x7f3ac44f3ce0, 0x7f3ac44f3ce0), flags 201*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: tm [t_funcs.c:147]:
> put_on_wait(): transaction 0x7f3ac5004448 already on wait*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/receive.c:289]:
> receive_msg(): request-route executed in: 2922 usec*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/usr_avp.c:636]:
> destroy_avp_list(): destroying list (nil)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/xavp.c:446]:
> xavp_destroy_list(): destroying xavp list (nil)*
> *Jul 12 08:12:09 sip kamailio[22303]: DEBUG: <core> [core/receive.c:378]:
> receive_msg(): cleaning up*
> *Jul 12 08:12:10 sip kamailio[22302]: DEBUG: <core>
> [core/udp_server.c:514]: udp_rcv_loop(): probing packet received from
> 217.33.40.242 57067*
>
>
> Thanks for your time.
>
> Best Regards,
> Aqs
>
> On Thu, 12 Jul 2018 at 12:56, Daniel-Constantin Mierla <miconda at gmail.com>
> wrote:
>
>> Have you looked at log messages, any errors?
>>
>> If not, then run with debug=3 in kamailio config and send full log
>> messages for such call.
>>
>> Cheers,
>> Daniel
>>
>> On 11.07.18 19:15, Aqs Younas wrote:
>>
>> Sorry, if i could not explain it well before. I hope below picture will
>> make it clear.
>>
>> ...
>>
>> is it some configuration issue?
>>
>> BTW what is the best way to call multiple async functions in kamailio.
>>
>> Any suggestion is much appreciated.
>>
>> Best Regards,
>>
>> Aqs Younas
>>
>> On Wed, 11 Jul 2018 at 12:39, Daniel-Constantin Mierla <miconda at gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> On 10.07.18 22:08, Aqs Younas wrote:
>>>
>>> Greeting list,
>>>
>>> I am using two async functions(http_async_query) in configuration one
>>> for authentication and other one for push notifications. I am also using
>>> tsilio module to suspend the transaction and resumed it.
>>>
>>> I am resetting this flag 'T_ASYNC_SUSPENDED' before suspending the
>>> transaction. Everything is working fine except. When caller send CANCEL on
>>> the call, kamailio successfully completes sip flow at callee(B party) side
>>> but send back below packet towards caller.
>>>
>>>
>>> what the above statement means? Kamailio forwarded the invite to callee,
>>> got 200ok, but sends back the 200 response?
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>> 2018/07/10 19:47:41.125893 172.31.21.87:5060 -> 39.38.156.111:59969
>>> SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM )
>>> Via: SIP/2.0/UDP 39.38.156.111:59969
>>> ;branch=z9hG4bK-524287-1---91c6114330fe6293;rport=59969
>>> To: <sip:923335550609 at sip.talkhomeappcall.com
>>> ;transport=UDP>;tag=9fe2d4c84d97a4af81aa65ca8fc51b3d-62cb
>>> From: <sip:923135082344 at sip.talkhomeappcall.com
>>> ;transport=UDP>;tag=d72eaf4c
>>> Call-ID: VkAwxpSgkKSGn5dXaXgn5A..
>>> CSeq: 2 INVITE
>>> Content-Length: 0
>>>
>>>
>>> root at sip:~# kamailio -V
>>> version: kamailio 5.1.3 (x86_64/linux)
>>> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
>>> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
>>> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
>>> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
>>> HAVE_RESOLV_RES
>>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>>> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>> id: unknown
>>> compiled on 08:06:26 May 2 2018 with gcc 4.9.2
>>>
>>>
>>> Could someone please help me out how to fix this. Cancels are handles
>>> automatically so, i cannot hardcore anything to resolve it.
>>>
>>> Best Regards,
>>>
>>> Aqs Younas
>>>
>>>
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>> --
>>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>>> Kamailio World Conference -- www.kamailioworld.com
>>>
>>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>> Kamailio World Conference -- www.kamailioworld.com
>>
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180713/c81729c5/attachment.html>
But this is different scenario than the logs you sent, so I can't relate
them anymore.
Maybe it is better to send both the pcap with all sip messages of the
call and the logs taken for that call. First add in your config:
To be easier to correlate the logs with the sip messages as well as look
at messages with wireshark of other tool.
Cheers,
Daniel
Hello.
My uplink usually gives ringback as both 183 Progress with SDP and 180 Ringing also
with (different) SDP. One of my clients can't handle that behavior and it just
don't plays ringback at all. Is it possible to relay only last provisional response
with SDP and drop anything else 183? Any ideas plz? Can't figure out even a logic
itself.
Thanks.
--
sent from myMail for Android
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180713/0f74d6e5/attachment.html>
https://kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.f.t_drop_replies
> Hello.
>
> My uplink usually gives ringback as both 183 Progress with SDP and 180
> Ringing also with (different) SDP. One of my clients can't handle that
> behavior and it just don't plays ringback at all. Is it possible to relay
> only last provisional response with SDP and drop anything else 183? Any
> ideas plz? Can't figure out even a logic itself.
>
> Thanks.
>
> --
> sent from myMail for Android
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180713/176202b8/attachment.html>
https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/6587394
You can ignore ring ready (180) but still "react" when receiving a 183 with media:
{ignore_early_media=ring_ready}sofia/internal/user at domain
ignore_early_media=ring_ready works the same way as ignore_early_media=true, but it
also sends 180 to the inbound leg when the first 183 is caught.
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn
Sie nicht der richtige Adressat sind und/oder diese E-Mail irrtümlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn
Sie nicht der richtige Adressat sind und/oder diese E-Mail irrtümlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
I simplify my task a bit by just pass only first 183/180 answer and then
drop everything else. Seems to work properly.
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
You may also want to clarify the requested topology, it can be that one
just wants an edge-proxy at the border of the core network, and
registrars done in the next layer of proxies, where the edge proxy does
some security filtering, so even the register goes through the edge proxy.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
From miconda at gmail.com Mon Jul 16 09:56:07 2018
From: miconda at gmail.com (Daniel-Constantin Mierla)
Date: Mon, 16 Jul 2018 09:56:07 +0200
Subject: [SR-Users] File transfer with Kamailio IMS??
In-Reply-To: <CAHnKrE=XUVnsunE8o-3yuArViLSr+Vi==TWz=1Ke0ShuuNci+A@mail.gmail.com>
References: <CAHnKrE=XUVnsunE8o-3yuArViLSr+Vi==TWz=1Ke0ShuuNci+A@mail.gmail.com>
Message-ID: <6da625db-fe16-163b-1975-660c6a47fdef@gmail.com>
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi. I found some additional scenario when kamailio works incorrect with ACK
Cseq after succesfull auth with uac_auth but unsuccesfull call:
So in this case kamialio tries to track Sceq because thining that this ACK
belongs to the dialog that was made to the auth server
Hello,
when you re-route to a new destination, can you try resetting the
internal flag with:
msg_iflag_reset("UAC_AUTH");
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Thanks for an answer. And another question. Is there any sense to trigger
[NATMANAGE] or rtpproxy_manage() after drop()ing 183/180? My Kami is configured to
always proxy all possible media between caller and callee.
--
sent from myMail for Android понедельник, 16 июля 2018г., 11:13 +03:00 от Daniel-
Constantin Mierla miconda at gmail.com :
Hi guys,
I'm not find the issue and the way for fix..
Any idea ?
Regards
Laura
rtpengine_delete("delete-delay=0");
rtpengine_offer("replace-origin replace-session-connection ICE=remove internal
external");
However, both of these lead to the problem that caller receives two
distinct SDP answers on the respective branches.
So, I always understood that the first answer is the final answer,
absent a session-updating request cycle. On the other hand, RFC 3960
("Early Media and Ringing Tone Generation in the Session Initiation
Protocol (SIP)") Section 4 says:
The application server model consists of having the UAS behave as an
application server to establish early media sessions with the UAC.
The UAC indicates support for the early-session disposition type
(defined in [2]) using the early-session option tag. This way, UASs
know that they can keep offer/answer exchanges for early media
(early-session disposition type) separate from regular media (session
disposition type).
So, what I would most prefer is a means of recycling the same answer
port on the "back" side of RTPEngine while pivoting it on the front
across branches/multiple offers.
Many thanks,
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi
thx for answer
But still the same
I tried to use thids flag in case if answer not 401 or 407 in failure route
but ACK still incrased by kamailio.
route[HANDLE_FAILURE] {
if (t_check_status("401|407")) {
uac_auth();
t_on_failure("HANDLE_FAILURE");
t_relay();
exit;
}
else {
if (t_check_status("40[02-689]|4[1-9][0-9]|5[0-9][0-9]") ||
(t_branch_timeout() && !t_branch_replied())) {
msg_iflag_reset("UAC_AUTH");
<getting VM addr here>
t_relay();
exit;
}
}
> Hello,
>
> when you re-route to a new destination, can you try resetting the internal
> flag with:
>
> msg_iflag_reset("UAC_AUTH");
>
> Cheers,
> Daniel
>
> On 16.07.18 10:31, Yuriy Gorlichenko wrote:
>
> Hi. I found some additional scenario when kamailio works incorrect with
> ACK Cseq after succesfull auth with uac_auth but unsuccesfull call:
>
> 1.Caller via kamailio as proxy (Cseq 1)
> 2.Kamailio resends call to provider with Auth method (Cseq 1)
> 3. Provider answers 401/407 (Cseq 1)
> 4. Kamailio inrases Cseq and sends invite with credentians (dialog
> track_cseq_updates = 1, uac_auth()) (Cseq 2)
> 5. Provider says - 404. not found (Cseq 2)
> 6. Kamailio resends INVITE to another server (lets say VM). It contans not
> tracked yet Cseq (Cseq 1)
> 7. VM server says 200 (Cseq 1)
> 8. Kamailio resends 200 to the caller (Сseq 1)
> 9. Caller says ACK (Cseq 1)
> 10. Kamailio incrases CSeq of ACK and resends t VM server (Сseq 2)
>
> So in this case kamialio tries to track Sceq because thining that this ACK
> belongs to the dialog that was made to the auth server
>
> So as I see here is a misunderstanding on the dialog module
> Any suggestions how to avoid it or exclude resent INVITE from the dialog
> module tracking?
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180716/86298600/attachment.html>
Not sure if you've tried, but would RTPengine's loop-protect help with the
duplicate session description I. The second branch?
--
Anthony
Hello,
$dlg_var(cseq_diff) = $null;
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
I have an external program that query RPC for the list of active calls
"kamctl dialog show" and kill calls only when the system decide to close
a customer.. but this cannot be the situation becuase i have these
errors every few seconds...
Cheers,
Laura
Hello,
I have an external program that query RPC for the list of active calls
"kamctl dialog show" and kill calls only when the system decide to close
a customer.. but this cannot be the situation becuase i have these
errors every few seconds...
Cheers,
Laura
Hello,
based on the log messages it appears that the rpc command to end the
dialog is received before 200ok/ACK for initial INVITE or after the call
was ended already. Can you watch the network for these rpc commands and
compare with what happens for sip packets traffic?
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
based on the log messages it appears that the rpc command to end the
dialog is received before 200ok/ACK for initial INVITE or after the call
was ended already. Can you watch the network for these rpc commands and
compare with what happens for sip packets traffic?
Cheers,
Daniel
On 17.07.18 09:42, Laura wrote:
> Hello,
>
> I have an external program that query RPC for the list of active calls
> "kamctl dialog show" and kill calls only when the system decide to
> close a customer.. but this cannot be the situation becuase i have
> these errors every few seconds...
>
> Also I'm using dialog timeout parameters too..
>
> modparam("dialog", "default_timeout", 7200)
>
> Cheers,
>
> Laura
>
>
> Il 16/07/18 19:07, Daniel-Constantin Mierla ha scritto:
>> Hello,
>>
>> do you use an external call controller that tries to terminate dialogs
>> using rpc commands? Or do you set a dialog lifetime (call timeout)?
>>
>> Cheers,
>> Daniel
>>
>>
>> On 16.07.18 17:23, Laura wrote:
>>> Hi guys,
>>>
>>> on a test server with kamailio 4.3.7 statefull configuration with
>>> dialog I see a lot of messages like this..
>>>
>>>
>>> Jul 16 15:20:26 vm-nextaitz-01 /usr/sbin/kamailio[31288]: ERROR:
>>> dialog [dlg_req_within.c:340]: send_bye(): terminating non-confirmed
>>> dialogs not supported
>>> Jul 16 15:20:26 vm-nextaitz-01 /usr/sbin/kamailio[31288]: ERROR:
>>> dialog [dlg_req_within.c:340]: send_bye(): terminating non-confirmed
>>> dialogs not supported
>>> Jul 16 15:20:26 vm-nextaitz-01 media-dispatcher[31555]: error: failed
>>> to end dialog: 500 Operation failed
>>>
>>>
>>> I'm not find the issue and the way for fix..
>>>
>>> Any idea ?
>>>
>>> Regards
>>>
>>> Laura
>>>
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
i just log all the traffic inside this system on 5060, so that i can
control sip signaling, but, how can i trace the rpc command ?
Cheers,
Laura
Hello,
i just log all the traffic inside this system on 5060, so that i can
control sip signaling, but, how can i trace the rpc command ?
Cheers,
Laura
Hello,
what do you use for sending the rpc command? Is via kamctl/kamcmd or you
have your own implementation?
Cheers,
Daniel
Hello,
what do you use for sending the rpc command? Is via kamctl/kamcmd or you
have your own implementation?
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
> Hello,
>
> one more thing, do:
>
> $dlg_var(cseq_diff) = $null;
>
> when you reset the internal flag for uac auth.
>
> Cheers,
> Daniel
>
> On 16.07.18 21:13, Yuriy Gorlichenko wrote:
>
> Hi
> thx for answer
> But still the same
> I tried to use thids flag in case if answer not 401 or 407 in failure
> route but ACK still incrased by kamailio.
> route[HANDLE_FAILURE] {
>
> if (t_check_status("401|407")) {
>
> uac_auth();
> t_on_failure("HANDLE_FAILURE");
> t_relay();
> exit;
>
> }
> else {
>
> if (t_check_status("40[02-689]|4[1-9][0-9]|5[0-9][0-9]") ||
> (t_branch_timeout() && !t_branch_replied())) {
>
> msg_iflag_reset("UAC_AUTH");
> <getting VM addr here>
> t_relay();
> exit;
> }
> }
>
>
> 2018-07-16 14:42 GMT+03:00 Daniel-Constantin Mierla <miconda at gmail.com>:
>
>> Hello,
>>
>> when you re-route to a new destination, can you try resetting the
>> internal flag with:
>>
>> msg_iflag_reset("UAC_AUTH");
>>
>> Cheers,
>> Daniel
>>
>> On 16.07.18 10:31, Yuriy Gorlichenko wrote:
>>
>> Hi. I found some additional scenario when kamailio works incorrect with
>> ACK Cseq after succesfull auth with uac_auth but unsuccesfull call:
>>
>> 1.Caller via kamailio as proxy (Cseq 1)
>> 2.Kamailio resends call to provider with Auth method (Cseq 1)
>> 3. Provider answers 401/407 (Cseq 1)
>> 4. Kamailio inrases Cseq and sends invite with credentians (dialog
>> track_cseq_updates = 1, uac_auth()) (Cseq 2)
>> 5. Provider says - 404. not found (Cseq 2)
>> 6. Kamailio resends INVITE to another server (lets say VM). It contans
>> not tracked yet Cseq (Cseq 1)
>> 7. VM server says 200 (Cseq 1)
>> 8. Kamailio resends 200 to the caller (Сseq 1)
>> 9. Caller says ACK (Cseq 1)
>> 10. Kamailio incrases CSeq of ACK and resends t VM server (Сseq 2)
>>
>> So in this case kamialio tries to track Sceq because thining that this
>> ACK belongs to the dialog that was made to the auth server
>>
>> So as I see here is a misunderstanding on the dialog module
>> Any suggestions how to avoid it or exclude resent INVITE from the dialog
>> module tracking?
>>
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>> Kamailio World Conference -- www.kamailioworld.com
>>
>>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180717/156379cd/attachment.html>
Hi,
Regards
Hi,
Regards
Hello. I want that all dialog- and acc- related stuff were saved on
kamailio restart and then on Kamailio startup was loaded from SQL tables.
dialog settings:
modparam("dialog", "db_url", DBURL)
modparam("dialog", "db_mode", 1)
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "profiles_with_value", "limithash ; caller")
modparam("dialog", "ka_timer", 10)
modparam("dialog", "ka_interval", 30)
modparam("dialog", "send_bye", 1)
modparam("dialog", "wait_ack", 1)
1. I dial from one number to another. There are records in dialog and
dialog_var tables. OK
What's wrong? What can it be? Maybe there's some special fuction to load
dialog data back from SQL to memory to continue dialog tracking?
Thanks.
Hello,
I'm using below routing logic to change the 183 reply to 180 and send it
back to the origination.
route{
if (is_method("INVITE")) {
insert_hf("X-AUTH-IP: $si\r\n");
}
route(FWD);
reply_route {
if (status == "183") {
change_reply_status(180, "Ringing");
exit;
route[FWD] {
forward(x.x.x.x,5060);
I have a case where the supplier sends in some cases an in-dialog invite
(Re-Invite) , which is considered I think as SIP-Request and thus as per
above routing logic , kamailio is sending it back to the supplier , yet I
need to send it to the customer.
Thanks
Ali Taher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180717/d035f10e/attachment.html>
Hello,
I'm using below routing logic to change the 183 reply to 180 and send it
back to the origination.
route{
if (is_method("INVITE")) {
insert_hf("X-AUTH-IP: $si\r\n");
route(FWD);
reply_route {
if (status == "183") {
change_reply_status(180, "Ringing");
exit;
route[FWD] {
I have a case where the supplier sends in some cases an in-dialog invite
(Re-Invite) , which is considered I think as SIP-Request and thus as per
above routing logic , kamailio is sending it back to the supplier , yet I
need to send it to the customer.
Thanks
Ali Taher
Hi,
In-dialog requests must be handled using loose_route(). You can find the
proper boilerplate in the stock configuration file:
https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L587
-- Alex
> Hello,
>
>
>
> I'm using below routing logic to change the 183 reply to 180 and send it
> back to the origination.
>
>
>
> Noting that Kamailio is listening on 5065.
>
> route{
>
> if (is_method("INVITE")) {
>
> xlog("L_INFO","INSIDE request route $si \n");
>
> insert_hf("X-AUTH-IP: $si\r\n");
>
> }
>
> route(FWD);
>
> }
>
>
>
> reply_route {
>
> #xlog("L_INFO","INSDE reply \n");
>
> if (status == "183") {
>
> change_reply_status(180, "Ringing");
>
> exit;
>
> }
>
> }
>
>
>
> route[FWD] {
>
> #xlog("L_INFO","INSIDE FWD \n");
>
> forward(x.x.x.x,5060);
>
> }
>
>
>
>
>
> Below is the scenario , where the customer is sending packets to Kamailio ,
> and Kamailio is forwarding them the supplier (with IP x.x.x.x) , then the
> supplier reply back to kamailio and kamailio relay the reply to the
> customer
>
>
>
> ----Customer---- --> ----Kamailio ---> ---Supplier---
>
>
>
> I have a case where the supplier sends in some cases an in-dialog invite
> (Re-Invite) , which is considered I think as SIP-Request and thus as per
> above routing logic , kamailio is sending it back to the supplier , yet I
> need to send it to the customer.
>
>
>
> How can I solve this issue?
>
>
>
> Thanks
>
> Ali Taher
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Hi,
In-dialog requests must be handled using loose_route(). You can find the
proper boilerplate in the stock configuration file:
https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L587
https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L455
-- Alex
> Hello,
>
>
>
> I'm using below routing logic to change the 183 reply to 180 and send it
> back to the origination.
>
>
>
> Noting that Kamailio is listening on 5065.
>
> route{
>
> if (is_method("INVITE")) {
>
> xlog("L_INFO","INSIDE request route $si \n");
>
> insert_hf("X-AUTH-IP: $si\r\n");
>
> }
>
> route(FWD);
>
> }
>
>
>
> reply_route {
>
> #xlog("L_INFO","INSDE reply \n");
>
> if (status == "183") {
>
> change_reply_status(180, "Ringing");
>
> exit;
>
> }
>
> }
>
>
>
> route[FWD] {
>
> #xlog("L_INFO","INSIDE FWD \n");
>
> forward(x.x.x.x,5060);
>
> }
>
>
>
>
>
> Below is the scenario , where the customer is sending packets to Kamailio ,
> and Kamailio is forwarding them the supplier (with IP x.x.x.x) , then the
> supplier reply back to kamailio and kamailio relay the reply to the
> customer
>
>
>
> ----Customer---- --> ----Kamailio ---> ---Supplier---
>
>
>
> I have a case where the supplier sends in some cases an in-dialog invite
> (Re-Invite) , which is considered I think as SIP-Request and thus as per
> above routing logic , kamailio is sending it back to the supplier , yet I
> need to send it to the customer.
>
>
>
> How can I solve this issue?
>
>
>
> Thanks
>
> Ali Taher
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Hi Alex,
Much appreciated.
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Tuesday, July 17, 2018 3:44 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Cc: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] SIP re-invite Packets
Hi,
In-dialog requests must be handled using loose_route(). You can find the proper
boilerplate in the stock configuration file:
https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L587
To note, your config is not sufficient to handle all aspects of a call between
endpoints in an adequate way. You will want to consider the main request_route in
the main config file and adapt its most essential aspects accordingly:
https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L455
-- Alex
> Hello,
>
>
>
> I'm using below routing logic to change the 183 reply to 180 and send
> it back to the origination.
>
>
>
> Noting that Kamailio is listening on 5065.
>
> route{
>
> if (is_method("INVITE")) {
>
> xlog("L_INFO","INSIDE request route $si \n");
>
> insert_hf("X-AUTH-IP: $si\r\n");
>
> }
>
> route(FWD);
>
> }
>
>
>
> reply_route {
>
> #xlog("L_INFO","INSDE reply \n");
>
> if (status == "183") {
>
> change_reply_status(180, "Ringing");
>
> exit;
>
> }
>
> }
>
>
>
> route[FWD] {
>
> #xlog("L_INFO","INSIDE FWD \n");
>
> forward(x.x.x.x,5060);
>
> }
>
>
>
>
>
> Below is the scenario , where the customer is sending packets to
> Kamailio , and Kamailio is forwarding them the supplier (with IP
> x.x.x.x) , then the supplier reply back to kamailio and kamailio
> relay the reply to the customer
>
>
>
> ----Customer---- --> ----Kamailio ---> ---Supplier---
>
>
>
> I have a case where the supplier sends in some cases an in-dialog
> invite
> (Re-Invite) , which is considered I think as SIP-Request and thus as
> per above routing logic , kamailio is sending it back to the supplier
> , yet I need to send it to the customer.
>
>
>
> How can I solve this issue?
>
>
>
> Thanks
>
> Ali Taher
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Alex,
Noting that I'm using Kamailio only as proxy between my customer and my supplier.
Much appreciated.
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Tuesday, July 17, 2018 3:44 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Cc: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] SIP re-invite Packets
Hi,
In-dialog requests must be handled using loose_route(). You can find the proper
boilerplate in the stock configuration file:
https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L587
To note, your config is not sufficient to handle all aspects of a call between
endpoints in an adequate way. You will want to consider the main request_route in
the main config file and adapt its most essential aspects accordingly:
https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L455
-- Alex
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> Can you please send me a simplified config that suit my case ?
route {
if(!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
exit;
}
if(has_totag()) {
if(loose_route()) {
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
if(t_check_trans())
t_relay();
} else
sl_send_reply("403", "Forbidden");
}
exit;
}
# CANCELs / branches.
if(is_method("CANCEL")) {
if(!t_relay_cancel()) {
sl_send_reply("500", "Server Internal Error");
exit;
}
exit;
}
t_check_trans();
if(is_method("OPTIONS")) {
sl_send_reply("200", "OK");
exit;
}
else if(is_method("INVITE")) {
# Route your calls.
exit;
}
--
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/
> Can you please send me a simplified config that suit my case ?
---
route {
if(!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
exit;
}
if(has_totag()) {
if(loose_route()) {
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
if(t_check_trans())
t_relay();
} else
sl_send_reply("403", "Forbidden");
}
exit;
}
# CANCELs / branches.
if(is_method("CANCEL")) {
if(!t_relay_cancel()) {
sl_send_reply("500", "Server Internal Error");
exit;
}
exit;
}
t_check_trans();
if(is_method("OPTIONS")) {
sl_send_reply("200", "OK");
exit;
}
else if(is_method("INVITE")) {
# Route your calls.
exit;
}
--
Alex Balashov | Principal | Evariste Systems LLC
Hi Alex,
Does below config forward all sip requests coming from the customer to the
supplier , and relay sip replies back to customer ?
Thank you
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Tuesday, July 17, 2018 4:25 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Cc: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] SIP re-invite Packets
> Can you please send me a simplified config that suit my case ?
Try this for a main request route:
---
route {
if(!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
exit;
}
if(has_totag()) {
if(loose_route()) {
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
if(t_check_trans())
t_relay();
} else
sl_send_reply("403", "Forbidden");
}
exit;
}
# CANCELs / branches.
if(is_method("CANCEL")) {
if(!t_relay_cancel()) {
sl_send_reply("500", "Server Internal Error");
exit;
}
exit;
}
t_check_trans();
if(is_method("OPTIONS")) {
sl_send_reply("200", "OK");
exit;
}
else if(is_method("INVITE")) {
# Route your calls.
exit;
}
--
Alex Balashov | Principal | Evariste Systems LLC
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Alex,
Does below config forward all sip requests coming from the customer to the
supplier , and relay sip replies back to customer ?
Thank you
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Tuesday, July 17, 2018 4:25 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Cc: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] SIP re-invite Packets
> Can you please send me a simplified config that suit my case ?
---
route {
if(!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
exit;
}
if(has_totag()) {
if(loose_route()) {
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
if(t_check_trans())
t_relay();
} else
sl_send_reply("403", "Forbidden");
}
exit;
}
# CANCELs / branches.
if(is_method("CANCEL")) {
if(!t_relay_cancel()) {
sl_send_reply("500", "Server Internal Error");
exit;
}
exit;
}
t_check_trans();
if(is_method("OPTIONS")) {
sl_send_reply("200", "OK");
exit;
}
else if(is_method("INVITE")) {
# Route your calls.
exit;
}
--
Alex Balashov | Principal | Evariste Systems LLC
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi
what are the requirements to configure the ims to work with kamailio.
--
Thanks and regards
Vinod.M.N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180717/81f30524/attachment.html>
>Hi Alex,
>
>Thank you for your reply.
>
>Does below config forward all sip requests coming from the customer to the
supplier , and relay sip replies back to customer ?
>
>Where re-invite packets are handled in the below config file?
>
>Thank you
>Ali Taher
>
>-----Original Message-----
>From: sr-users < sr-users-bounces at lists.kamailio.org> On Behalf Of Alex
Balashov
>Sent: Tuesday, July 17, 2018 4:25 PM
>To: Kamailio (SER) - Users Mailing List < sr-users at lists.kamailio.org>
>Cc: sr-users at lists.sip-router.org
>Subject: Re: [SR-Users] SIP re-invite Packets
>
>On Tue, Jul 17, 2018 at 04:21:25PM +0300, Ali Taher wrote:
>
> Can you please send me a simplified config that suit my case ?
>
>Try this for a main request route:
>
>---
>
>route {
>if(!mf_process_maxfwd_header("10")) {
>sl_send_reply("483", "Too Many Hops");
>exit;
>}
>
># Maybe some sanity_check() here.
>
>if(has_totag()) {
>if(loose_route()) {
>if(!t_relay())
>sl_reply_error();
>
>exit;
>} else {
>if(is_method("ACK")) {
>if(t_check_trans())
>t_relay();
>} else
>sl_send_reply("403", "Forbidden");
>}
>
>exit;
>}
>
># CANCELs / branches.
>
>if(is_method("CANCEL")) {
>if(!t_relay_cancel()) {
>sl_send_reply("500", "Server Internal Error");
>exit;
>}
>
>exit;
>}
>
>t_check_trans();
>
>if(is_method("OPTIONS")) {
>sl_send_reply("200", "OK");
>exit;
>}
>
>else if(is_method("INVITE")) {
># Route your calls.
>
>exit;
>}
>
>sl_send_reply("403", "Method unsupported");
>exit;
>}
>
>
>--
>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 at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
>sr-users at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180717/f4fa3b62/attachment.html>
>Hi Alex,
>
>Thank you for your reply.
>
>Does below config forward all sip requests coming from the customer to the
supplier , and relay sip replies back to customer ?
>
>Where re-invite packets are handled in the below config file?
>
>Thank you
>Ali Taher
>
>-----Original Message-----
>From: sr-users < sr-users-bounces at lists.kamailio.org> On Behalf Of Alex
Balashov
>Sent: Tuesday, July 17, 2018 4:25 PM
>To: Kamailio (SER) - Users Mailing List < sr-users at lists.kamailio.org>
>Cc: sr-users at lists.sip-router.org
>Subject: Re: [SR-Users] SIP re-invite Packets
>
>On Tue, Jul 17, 2018 at 04:21:25PM +0300, Ali Taher wrote:
>
> Can you please send me a simplified config that suit my case ?
>
>Try this for a main request route:
>
>---
>
>route {
>if(!mf_process_maxfwd_header("10")) {
>sl_send_reply("483", "Too Many Hops");
>exit;
>}
>
># Maybe some sanity_check() here.
>
>if(has_totag()) {
>if(loose_route()) {
>if(!t_relay())
>sl_reply_error();
>
>exit;
>} else {
>if(is_method("ACK")) {
>if(t_check_trans())
>t_relay();
>} else
>sl_send_reply("403", "Forbidden");
>}
>
>exit;
>}
>
># CANCELs / branches.
>
>if(is_method("CANCEL")) {
>if(!t_relay_cancel()) {
>sl_send_reply("500", "Server Internal Error");
>exit;
>}
>
>exit;
>}
>
>t_check_trans();
>
>if(is_method("OPTIONS")) {
>sl_send_reply("200", "OK");
>exit;
>}
>
>else if(is_method("INVITE")) {
># Route your calls.
>
>exit;
>}
>
>sl_send_reply("403", "Method unsupported");
>exit;
>}
>
>
>--
>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 at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
>sr-users at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180717/f4fa3b62/attachment-0001.html>
One my server with perl external script time to time is stopping processing
SIP messages. Perl script make calls to kamailio database on mysql.
How get info what is load on "tcp receiver". This host in dev mode and
handles not more 5 devices.
Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180718/34e88a1e/attachment.html>
From bitsmaker at gmail.com Wed Jul 18 02:21:59 2018
From: bitsmaker at gmail.com (Bobby Mah)
Date: Tue, 17 Jul 2018 17:21:59 -0700
Subject: [SR-Users] Using the SIP related functions in a lib
Message-ID: <CALCTmMuZWrP8AFrWp4x99mLMX13c9MoYN5HQmqeDEWxUFAJVZg@mail.gmail.com>
Hello all,
Is it worth my time to try and create a SIP lib out of the SIP
functionality available in Kamailio?
Bobby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180717/78623ae5/attachment.html>
Hello,
that is not easy if using fifo or unix socket files, only if using a
proxy for commands (e.g., via socat), but probably doesn't worth the
trouble.
What you can do is to compare the time stamps of the log messages with
the timestamps of the sip traffic to see if the log message is after or
before 200ok/ACK or CANCEL/BYE. Ending the call should be done after
200ok/ACK.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
that is not easy if using fifo or unix socket files, only if using a
proxy for commands (e.g., via socat), but probably doesn't worth the
trouble.
What you can do is to compare the time stamps of the log messages with
the timestamps of the sip traffic to see if the log message is after or
before 200ok/ACK or CANCEL/BYE. Ending the call should be done after
200ok/ACK.
Cheers,
Daniel
I tried the config file shared by Alex below , but I noticed that kamailio is not
dealing with CANCEL requests.
the scenario in my case is that I’m using Kamailio behind a switch to alter some
packets (precisely 183 packets) , so I need to forward all packets coming from my
customer to the switch , which will deal with it (send it to appropriate supplier).
So what I need is the config file that will forward all requests coming to Kamailio
from my customer , to forward them to my switch , then reply back to customer the
reply coming from the switch. 9after altering 183 packet to 180) , handling the in-
dialog invites sent by my switch , which needs to be sent to the customer by
kamailio.
Thanks
Ali Taher
--
sent from myMail for Android
Hi Alex,
Does below config forward all sip requests coming from the customer to the supplier
, and relay sip replies back to customer ?
Thank you
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org <mailto:sr-users-bounces at
lists.kamailio.org> > On Behalf Of Alex Balashov
Sent: Tuesday, July 17, 2018 4:25 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org <mailto:sr-
users at lists.kamailio.org> >
Cc: sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] SIP re-invite Packets
> Can you please send me a simplified config that suit my case ?
---
route {
if(!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
exit;
}
if(has_totag()) {
if(loose_route()) {
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
if(t_check_trans())
t_relay();
} else
sl_send_reply("403", "Forbidden");
}
exit;
}
# CANCELs / branches.
if(is_method("CANCEL")) {
if(!t_relay_cancel()) {
sl_send_reply("500", "Server Internal Error");
exit;
}
exit;
}
t_check_trans();
if(is_method("OPTIONS")) {
sl_send_reply("200", "OK");
exit;
}
else if(is_method("INVITE")) {
# Route your calls.
exit;
}
--
Alex Balashov | Principal | Evariste Systems LLC
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
I tried the config file shared by Alex below , but I noticed that kamailio is not
dealing with CANCEL requests.
the scenario in my case is that I’m using Kamailio behind a switch to alter some
packets (precisely 183 packets) , so I need to forward all packets coming from my
customer to the switch , which will deal with it (send it to appropriate supplier).
So what I need is the config file that will forward all requests coming to Kamailio
from my customer , to forward them to my switch , then reply back to customer the
reply coming from the switch. 9after altering 183 packet to 180) , handling the in-
dialog invites sent by my switch , which needs to be sent to the customer by
kamailio.
Thanks
Ali Taher
Main idea is that an initial request (non in-dialog) hasn't To tag already. It
appears only when your request "hits" remote side (called or callee, as you wish)
and goes back to you. Simplified, but I hope you got an idea :)
--
sent from myMail for Android
вторник, 17 июля 2018г., 17:16 +03:00 от Ali Taher ataher at vanrise.com
<mailto:ataher at vanrise.com> :
Hi Alex,
Does below config forward all sip requests coming from the customer to the supplier
, and relay sip replies back to customer ?
Thank you
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org <mailto:sr-users-bounces at
lists.kamailio.org> > On Behalf Of Alex Balashov
Sent: Tuesday, July 17, 2018 4:25 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org <mailto:sr-
users at lists.kamailio.org> >
Cc: sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] SIP re-invite Packets
> Can you please send me a simplified config that suit my case ?
---
route {
if(!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
exit;
}
if(has_totag()) {
if(loose_route()) {
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
if(t_check_trans())
t_relay();
} else
sl_send_reply("403", "Forbidden");
}
exit;
}
# CANCELs / branches.
if(is_method("CANCEL")) {
if(!t_relay_cancel()) {
sl_send_reply("500", "Server Internal Error");
exit;
}
exit;
}
t_check_trans();
if(is_method("OPTIONS")) {
sl_send_reply("200", "OK");
exit;
}
else if(is_method("INVITE")) {
# Route your calls.
exit;
}
--
Alex Balashov | Principal | Evariste Systems LLC
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
You can use benchmark module or play with latency* core parameters in
order to detect what action in config takes very long time to execute.
You can also increase the value for tcp_children global parameter.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi,
the BLF lights comes online during call. Problem is when the watchers phone
is rebooted and the lights after reboot are off, but before restart they
were green/red.
I looked to the source code of presence module and I think that I found the
problematic part in function *update_subscrition()* in file
*modules/presence/subscribe.c*:
> Hello,
>
> On 12.07.18 16:41, Michal Škuta wrote:
>
> Hello,
>
> I am trying make presence module work with Kamailio. Right now I am
> testing these modules: presence, presence_xml, presence_dialoginfo, pua and
> pua_dialoginfo.
>
> I had some success, the BLF is working only when the monitored extension
> is calling. When the monitored extension is calling, then the BLF changes
> its color (red). After end of the call the BLF changes color to green.
>
> My problem is when a User comes on-line then it sends SUBSCRIBE with *Event:
dialog* and
> don't get notified of its subscribers state and BLF is not changed.
>
>
> does it come online during a call?
>
> I found similar problem in this mail list
:https://lists.kamailio.org/pipermail/sr-users/2017-March/096314.html But is not
working for me.
>
>
>
> Second question is about BLF and offline state. I can not found anything in RFC,
there is no offline state, no way to turn off the BLF lamp from green to OFF.
>
> I found only this pdf from grandstream:
http://www.grandstream.com/sites/default/files/Resources/GXP21x0_Eventlist_BLF_Guid
e.pdf mentioning offline state on page 8.
>
> Does anyone have experience with it?
>
>
> BLF is about dialog states, not user (device) states, so it is about being
> in a call (busy) or or not. Not to get notifications about it, you should
> unsubscribe for dialog event.
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180718/d22426f4/attachment.html>
Hello,
I'm using Kamailio as a proxy behind freeswitch to alter some packets (183
packets precisely).
Here is my scenario:
route{
if (is_method("INVITE")) {
insert_hf("X-AUTH-IP: $si\r\n");
}
route(FWD);
reply_route {
if (status == "183") {
change_reply_status(180, "Ringing");
exit;
route[FWD] {
forward(X.X.X.X,5060);
As I know , loose_route is used to handle such requests , but I'm not sure
how to forward these packets to the customer after receiving them from
freeswitch.
Thanks,
Ali Taher
Hello,
I'm using Kamailio as a proxy behind freeswitch to alter some packets (183
packets precisely).
Here is my scenario:
route{
if (is_method("INVITE")) {
insert_hf("X-AUTH-IP: $si\r\n");
route(FWD);
reply_route {
#xlog("L_INFO","INSDE reply \n");
if (status == "183") {
change_reply_status(180, "Ringing");
exit;
route[FWD] {
forward(X.X.X.X,5060);
As I know , loose_route is used to handle such requests , but I'm not sure
how to forward these packets to the customer after receiving them from
freeswitch.
Thanks,
Ali Taher
On July 18, 2018 9:32:01 AM EDT, Ali Taher <ataher at vanrise.com> wrote:
>Hello,
>
>
>
>I'm using Kamailio as a proxy behind freeswitch to alter some packets
>(183
>packets precisely).
>
>
>
>Here is my scenario:
>
>
>
>(---Customer---) --> ((port 5065)---Kamailio---) -->
>((port5060)---Freeswitch---) --> (---Supplier---)
>
>
>
>Here is my request route :
>
>
>
>route{
>
>
>
>if (is_method("INVITE")) {
>
> xlog("L_INFO","INSIDE request route $si \n");
>
> insert_hf("X-AUTH-IP: $si\r\n");
>
>}
>
>
>
>route(FWD);
>
>}
>
>
>
>
>
>reply_route {
>
>#xlog("L_INFO","INSDE reply \n");
>
> if (status == "183") {
>
> change_reply_status(180, "Ringing");
>
> exit;
>
> }
>
>}
>
>
>
>route[FWD] {
>
>#xlog("L_INFO","INSIDE FWD \n");
>
>forward(X.X.X.X,5060);
>
>}
>
>Where X.X.X.X is the Freeswitch IP
>
>
>
>This script is working normally as long as the customer is sending the
>requests(INVITE,BYE,ACK,CANCEL..) . But when the supplier or freeswitch
>initiated the request , above script causes loop where the packet is
>bounced
>between kamailio and freeswitch.
>
>
>
>As I know , loose_route is used to handle such requests , but I'm not
>sure
>how to forward these packets to the customer after receiving them from
>freeswitch.
>
>
>
>I'm not sure also if what's I'm doing is statefull or stateless.
>
>
>
>Any help is appreciated.
>
>
>
>Thanks,
>
>Ali Taher
-- Alex
--
Sent via mobile, please forgive typos and brevity.
Hi Alex,
Yes I did, but I noticed that all in-dialog requests sent by freeswitch to kamailio
were ignored and no packet was generated from kamailio in this regard.
Thanks.
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Wednesday, July 18, 2018 4:34 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] in-dialog requests
On July 18, 2018 9:32:01 AM EDT, Ali Taher <ataher at vanrise.com> wrote:
>Hello,
>
>
>
>I'm using Kamailio as a proxy behind freeswitch to alter some packets
>(183
>packets precisely).
>
>
>
>Here is my scenario:
>
>
>
>(---Customer---) --> ((port 5065)---Kamailio---) -->
>((port5060)---Freeswitch---) --> (---Supplier---)
>
>
>
>Here is my request route :
>
>
>
>route{
>
>
>
>if (is_method("INVITE")) {
>
> xlog("L_INFO","INSIDE request route $si \n");
>
> insert_hf("X-AUTH-IP: $si\r\n");
>
>}
>
>
>
>route(FWD);
>
>}
>
>
>
>
>
>reply_route {
>
>#xlog("L_INFO","INSDE reply \n");
>
> if (status == "183") {
>
> change_reply_status(180, "Ringing");
>
> exit;
>
> }
>
>}
>
>
>
>route[FWD] {
>
>#xlog("L_INFO","INSIDE FWD \n");
>
>forward(X.X.X.X,5060);
>
>}
>
>Where X.X.X.X is the Freeswitch IP
>
>
>
>This script is working normally as long as the customer is sending the
>requests(INVITE,BYE,ACK,CANCEL..) . But when the supplier or freeswitch
>initiated the request , above script causes loop where the packet is
>bounced between kamailio and freeswitch.
>
>
>
>As I know , loose_route is used to handle such requests , but I'm not
>sure how to forward these packets to the customer after receiving them
>from freeswitch.
>
>
>
>I'm not sure also if what's I'm doing is statefull or stateless.
>
>
>
>Any help is appreciated.
>
>
>
>Thanks,
>
>Ali Taher
-- Alex
--
Sent via mobile, please forgive typos and brevity.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
That may be, but it's still the correct config to use. Your scaled-down version
simply will not work.
On July 18, 2018 9:47:15 AM EDT, Ali Taher <ataher at vanrise.com> wrote:
>Hi Alex,
>
>Yes I did, but I noticed that all in-dialog requests sent by freeswitch
>to kamailio were ignored and no packet was generated from kamailio in
>this regard.
>
>I'm not sure if t_relay is working as expected at my side.
>
>Thanks.
>Ali Taher
>
>-----Original Message-----
>From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex
>Balashov
>Sent: Wednesday, July 18, 2018 4:34 PM
>To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
>Subject: Re: [SR-Users] in-dialog requests
>
>Have you tried the config I suggested to you yesterday?
>
>On July 18, 2018 9:32:01 AM EDT, Ali Taher <ataher at vanrise.com> wrote:
>>Hello,
>>
>>
>>
>>I'm using Kamailio as a proxy behind freeswitch to alter some packets
>>(183
>>packets precisely).
>>
>>
>>
>>Here is my scenario:
>>
>>
>>
>>(---Customer---) --> ((port 5065)---Kamailio---) -->
>>((port5060)---Freeswitch---) --> (---Supplier---)
>>
>>
>>
>>Here is my request route :
>>
>>
>>
>>route{
>>
>>
>>
>>if (is_method("INVITE")) {
>>
>> xlog("L_INFO","INSIDE request route $si \n");
>>
>> insert_hf("X-AUTH-IP: $si\r\n");
>>
>>}
>>
>>
>>
>>route(FWD);
>>
>>}
>>
>>
>>
>>
>>
>>reply_route {
>>
>>#xlog("L_INFO","INSDE reply \n");
>>
>> if (status == "183") {
>>
>> change_reply_status(180, "Ringing");
>>
>> exit;
>>
>> }
>>
>>}
>>
>>
>>
>>route[FWD] {
>>
>>#xlog("L_INFO","INSIDE FWD \n");
>>
>>forward(X.X.X.X,5060);
>>
>>}
>>
>>Where X.X.X.X is the Freeswitch IP
>>
>>
>>
>>This script is working normally as long as the customer is sending the
>>requests(INVITE,BYE,ACK,CANCEL..) . But when the supplier or
>freeswitch
>>initiated the request , above script causes loop where the packet is
>>bounced between kamailio and freeswitch.
>>
>>
>>
>>As I know , loose_route is used to handle such requests , but I'm not
>>sure how to forward these packets to the customer after receiving them
>
>>from freeswitch.
>>
>>
>>
>>I'm not sure also if what's I'm doing is statefull or stateless.
>>
>>
>>
>>Any help is appreciated.
>>
>>
>>
>>Thanks,
>>
>>Ali Taher
>
>
>-- Alex
>
>--
>Sent via mobile, please forgive typos and brevity.
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
>sr-users at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
>sr-users at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
--
Sent via mobile, please forgive typos and brevity.
From ataher at vanrise.com Wed Jul 18 15:55:53 2018
From: ataher at vanrise.com (Ali Taher)
Date: Wed, 18 Jul 2018 16:55:53 +0300
Subject: [SR-Users] in-dialog requests
In-Reply-To: <AE7EFEFD-E94C-46D1-963F-8AB3B00A3BF0@evaristesys.com>
References: <042101d41e9b$b6ec2340$24c469c0$@vanrise.com>
<7CB5C05B-4F9C-4E06-B21F-5FBC1B02E671@evaristesys.com>
<042901d41e9d$d77513e0$865f3ba0$@vanrise.com>
<AE7EFEFD-E94C-46D1-963F-8AB3B00A3BF0@evaristesys.com>
Message-ID: <042b01d41e9f$0be72cc0$23b58640$@vanrise.com>
Hi Alex,
Thanks
Ali Taher
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Wednesday, July 18, 2018 4:50 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] in-dialog requests
That may be, but it's still the correct config to use. Your scaled-down version
simply will not work.
On July 18, 2018 9:47:15 AM EDT, Ali Taher <ataher at vanrise.com> wrote:
>Hi Alex,
>
>Yes I did, but I noticed that all in-dialog requests sent by freeswitch
>to kamailio were ignored and no packet was generated from kamailio in
>this regard.
>
>I'm not sure if t_relay is working as expected at my side.
>
>Thanks.
>Ali Taher
>
>-----Original Message-----
>From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex
>Balashov
>Sent: Wednesday, July 18, 2018 4:34 PM
>To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
>Subject: Re: [SR-Users] in-dialog requests
>
>Have you tried the config I suggested to you yesterday?
>
>On July 18, 2018 9:32:01 AM EDT, Ali Taher <ataher at vanrise.com> wrote:
>>Hello,
>>
>>
>>
>>I'm using Kamailio as a proxy behind freeswitch to alter some packets
>>(183
>>packets precisely).
>>
>>
>>
>>Here is my scenario:
>>
>>
>>
>>(---Customer---) --> ((port 5065)---Kamailio---) -->
>>((port5060)---Freeswitch---) --> (---Supplier---)
>>
>>
>>
>>Here is my request route :
>>
>>
>>
>>route{
>>
>>
>>
>>if (is_method("INVITE")) {
>>
>> xlog("L_INFO","INSIDE request route $si \n");
>>
>> insert_hf("X-AUTH-IP: $si\r\n");
>>
>>}
>>
>>
>>
>>route(FWD);
>>
>>}
>>
>>
>>
>>
>>
>>reply_route {
>>
>>#xlog("L_INFO","INSDE reply \n");
>>
>> if (status == "183") {
>>
>> change_reply_status(180, "Ringing");
>>
>> exit;
>>
>> }
>>
>>}
>>
>>
>>
>>route[FWD] {
>>
>>#xlog("L_INFO","INSIDE FWD \n");
>>
>>forward(X.X.X.X,5060);
>>
>>}
>>
>>Where X.X.X.X is the Freeswitch IP
>>
>>
>>
>>This script is working normally as long as the customer is sending the
>>requests(INVITE,BYE,ACK,CANCEL..) . But when the supplier or
>freeswitch
>>initiated the request , above script causes loop where the packet is
>>bounced between kamailio and freeswitch.
>>
>>
>>
>>As I know , loose_route is used to handle such requests , but I'm not
>>sure how to forward these packets to the customer after receiving them
>
>>from freeswitch.
>>
>>
>>
>>I'm not sure also if what's I'm doing is statefull or stateless.
>>
>>
>>
>>Any help is appreciated.
>>
>>
>>
>>Thanks,
>>
>>Ali Taher
>
>
>-- Alex
>
>--
>Sent via mobile, please forgive typos and brevity.
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
>sr-users at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
>sr-users at lists.kamailio.org
>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
--
Sent via mobile, please forgive typos and brevity.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
TL;DR
How can I execute a routine in my Kamailio python module
(kamailio_python.py) on demand? For example, using kamcmd from the command
line. I know you can execute *app_python.reload *but I don't need to
reload the whole python module, and furthermore, docs for this call say
it's unstable and can even crash your kamailio instance. So my goal is to
execute one single python routine on demand.
https://www.kamailio.org/docs/modules/5.1.x/modules/app_python.html#app_python.r.re
load
Full explanation:
I'm currently implementing OIDC token authentication for Kamailio. I have
a python routine that extracts the token from a custom SIP header, and
validates the token as per the OIDC spec (I'm using pyjwt plus other custom
checks for this). In order to do offline validation of the token, you need
the Identity Provider (IdP) Server's certificate, which I get in advance
and cache in a local file on my Kamailio server. I also have an external
python script which I can run to get the latest certificate from the IdP
server and update it locally.
The part I'm missing is how to tell Kamailio to reload the value of the
certificate from the local cache, WITHOUT stopping kamailio or interrupting
any sessions. This is needed in case the certificate is updated (e.g. due
to expiration or compromise) on the IdP server; if you don't update it so
that Kamailio can use the latest one, all token verification will fail
(tokens signed by IdP server using latest private key corresponding to
latest certificate, but Kamailio trying to validate the signature using the
public key extracted from previous certificate -- this results in a
signature error, as Kamailio needs to be using the public key corresponding
to the private one that was used to sign the token).
By being able to execute one single python routine on demand (e.g. using
kamcmd), I can tell Kamailio to reload the certificate value from the local
cache, which I just updated by running my other (external and unrelated to
Kamailio software) python script.
Hope this makes sense, and hopefully I can get some tips on how to achieve
this.
Thanks,
Martín.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180718/cc10374e/attachment.html>
From laurent.schweizer at peoplefone.com Wed Jul 18 19:32:39 2018
From: laurent.schweizer at peoplefone.com (Laurent Schweizer)
Date: Wed, 18 Jul 2018 17:32:39 +0000
Subject: [SR-Users] ul.add | path & socket not correctly set
In-Reply-To: <a8cca24e-1bef-c810-6ea7-beeb7b811c05@gmail.com>
References:
<VI1PR0702MB366455C552449215F0B9C9AD814A0@VI1PR0702MB3664.eurprd07.prod.outlook.com
>
<VI1PR0702MB3664A466EC829F6C60ABB0B781450@VI1PR0702MB3664.eurprd07.prod.outlook.com
>
<f7982144-ac45-be18-8a0b-f5d80bef79c6@gmail.com>
<a8cca24e-1bef-c810-6ea7-beeb7b811c05@gmail.com>
Message-ID:
<VI1PR0702MB3664574D348FADC9ABC41B6C81530@VI1PR0702MB3664.eurprd07.prod.outlook.com
>
Hello,
BR
Laurent
Hello,
- rpc ul.add command doesn't have the last two parameters: received and socket --
those were added in 5.1 -- so socket is not going to be set no matter parameter you
give
- path parameter was expecting "0" (s:0) in order not to set it -- for coherence
I pushed a patch to skip setting it if '.' is given
However, if you want to set one of the last two parameters, you have to upgrade to
5.1.
Cheers,
Daniel
On 09.07.18 10:37, Daniel-Constantin Mierla wrote:
Hello,
I will check it -- reminders are good, somehow first message was not noticed...
Cheers,
Daniel
BR
Laurent
Dear all,
As you can see the Path value is set to “.” But it must be set to [not set]
The Socket is also not set.
Any idea ?
BR
Laurent
_______________________________________________
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
www.twitter.com/miconda<http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
--
www.twitter.com/miconda<http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Dears
i'm using kamilio 5.2.0 as IMS with Zoiper client and RTP Engine
when i'm trying to terminate a video call ,BYE message does not arrived to
destination with error from S-cscf side "forbidden domain not served "
has any one had the same issue before ? and is there any ideas about how to solve
it ?
?
thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180718/7ec3263b/attachment.html>
Hello, what are the options for duplicating sip traffic to arbitrary tcp
port in Kamailio?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180718/7d9c7467/attachment.html>
loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_tout", 1)
modparam("rtpproxy", "rtpproxy_retr", 2)
modparam("rtpproxy", "timeout_socket", "xmlrpc:http://127.0.0.1:8000/RPC2")
loadmodule "xmlrpc.so"
modparam("xmlrpc", "route", "XMLRPC");
modparam("xmlrpc", "mode", 1)
modparam("xmlrpc", "url_match", "^/RPC2")
$ netstat -nlp
it only shows SIP listening ports. Kamailio should also start listening on
127.0.0.1:8000.
Below are the RTPproxy logs, RTPproxy is also unable to bridge the media
But if I comment out the param "Timeout_Socket" then there is no issue in bridging
the media.
Regards
Hamid R. Hashmi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/c341508f/attachment.html>
Hello,
have you already looked into the sipcapture module? From the README:
Best regards,
Henning
Regards
Hamid R. Hashmi
______________________________
www.hrhashmi.blogspot.com<http://www.trgworld.com/pakistan>
Sype: hamidrhashmi
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Hamid Hashmi
<hamid2kviii at hotmail.com>
Sent: Thursday, July 19, 2018 12:59 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] Module RTPPROXY param Timeout_Socket not Working
loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_tout", 1)
modparam("rtpproxy", "rtpproxy_retr", 2)
modparam("rtpproxy", "timeout_socket", "xmlrpc:http://127.0.0.1:8000/RPC2")
loadmodule "xmlrpc.so"
modparam("xmlrpc", "route", "XMLRPC");
modparam("xmlrpc", "mode", 1)
modparam("xmlrpc", "url_match", "^/RPC2")
$ netstat -nlp
it only shows SIP listening ports. Kamailio should also start listening on
127.0.0.1:8000.
Below are the RTPproxy logs, RTPproxy is also unable to bridge the media
But if I comment out the param "Timeout_Socket" then there is no issue in bridging
the media.
Regards
Hamid R. Hashmi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/2f924c2b/attachment.html>
Hi,
Sorry if this question has been answered before, but I'm rather puzzled
as to the intent behind sht_lock() / sht_unlock().
Thanks,
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Hello,
readn and write operations are safe, done under mutex locking. So it is
always safe to do:
$sht(x=>y) = $var(y);
or:
$var(y) = $sht(x=>y);
But there could be operations where you want that the value is not
changed by another process while doing some operations, like: get the
value from hash table, test it against some limit and act in different
ways. For example, you keep active calls per user:
>From the moment you read for IF condition till the moment of increment,
the CPU can be given to another kamailio process which does same
operation, reading same value and at the end it gets incremented with 1
instead with 2, obviously if the value was 9, then one call is allowed
when it shouldn't be.
So you have to protect the above example by locking the slot for
$sht(ac=>$fU).
This was a rather simple example, but hopefully clarifies when explicit
sht lock/unlock is needed.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
- read/write $sht(x=>y)
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Oh, I see. So, if I understood correctly, the primary intended use-case is really
to make operations consisting of multiple accesses/writes atomic?
-- Alex
--
Sent via mobile, please forgive typos and brevity.
Hello,
I have a test environment with Kamailio 5.1.4 where I can investigate the
bug.
After restart 'kamctl dialog show' command shows the present dialog. After
hangup kamailio does an insert into acc table and makes delete from dialog
and dialog_vars tables.
Any idea?
Thanks,
Szabolcs
> Hello,
>
> after restart, if you list the dialogs via rpc command, do you see them in
> what is returned?
>
> Cheers,
> Daniel
>
> On 29.11.17 20:52, Kordován Szabolcs wrote:
>
> Hi All,
>
> In March there was a discus about this issue.
>
> We tested the new 5.2 dev and 5.0.4 version of Kamailio and we experience
> that If we restart Kamailio during the call the cdr won't be stored in
> table acc_cdrs but the data will be inserted to table acc and data will be
> deleted from table dialog and dialog_vars.
> Did I omit the fix for it?
>
> Thanks for your help.
> Best regards,
> Szabolcs
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - www.asipto.com
> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/dfad06b3/attachment.html>
Hello list,
When the dialog state for a call is < 4, is it possible to use dlg_bye()
function to end the call?
Best regards
Abdoul OSSENI
Ingénieur DevOps chez Néo-Soft
Co-Fondateur de ON SERVICES
Tél : +33 601 135 167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/59211cde/attachment.html>
Hello,
Statement A:
is_myself("$ru")
Statement B:
uri == myself
Thanks,
Karthik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/5dfb2b37/attachment.html>
Yes.
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
Are they used at the same place in config? Note that $ru can be changed
by different functions such as those from registrar, dispatcher, lcr, ...
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Lower state than 3 means that the dialog was not answered yet (no 200ok
received). While SIP allows BYE at that stage to end a particular branch
of the call, dialog module needs the 200ok, as it operates at dialog
level, not at transaction/branch level.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Yes, they are used at the very same place. here is a code snippet of where
i added it for testing purposes:
route[INIT_VARS] {
// in both cases above the regex part isn't supposed to match and hence
correctly returns false.
...
route{
route(INIT_VARS);
...
}
Thanks,
Karthik
> Hello,
>
>
> On 19.07.18 18:32, Karthik Srinivasan wrote:
> > Hello,
> >
> > Can someone explain to me why statement A returns True and statement B
> > returns False.
> >
> > Statement A:
> > is_myself("$ru")
> >
> > Statement B:
> > uri == myself
> >
> >
> > Isn't uri and $ru referencing the same data?
> >
> > With my current config i am expecting the is_myself to return True; i
> > was expecting the same for Statement B but unfortunately it is
> > returning False.
> >
> they are supposed to be the same in this case.
>
> Are they used at the same place in config? Note that $ru can be changed
> by different functions such as those from registrar, dispatcher, lcr, ...
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/a938b4fe/attachment.html>
Abdoul OSSENI
Ingénieur DevOps chez Néo-Soft
Co-Fondateur de ON SERVICES
Tél : +33 601 135 167
> Hello,
>
>
> On 19.07.18 18:15, Abdoul Osséni wrote:
> > Hello list,
> >
> > When the dialog state for a call is < 4, is it possible to use
> > dlg_bye() function to end the call?
> >
> it should be possible to use it for states 3 and 4.
>
> Lower state than 3 means that the dialog was not answered yet (no 200ok
> received). While SIP allows BYE at that stage to end a particular branch
> of the call, dialog module needs the 200ok, as it operates at dialog
> level, not at transaction/branch level.
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/cbc957c6/attachment.html>
ERRATUM.
Abdoul OSSENI
Ingénieur DevOps chez Néo-Soft
Co-Fondateur de ON SERVICES
Tél : +33 601 135 167
2018-07-19 19:19 GMT+02:00 Abdoul Osséni <abdoul.osseni at gmail.com>:
Also, the INIT_VARS route is the very first thing that executes within the
main routing block.
I tried printing the uri variable but was unsuccessful in doing so. Maybe
if that's the next best step, i can pursue that with some advice on how to
print that variable.
Thanks,
Karthik
On Thu, Jul 19, 2018 at 12:09 PM, Karthik Srinivasan <ksriniva2002 at gmail.com
> wrote:
> Yes, they are used at the very same place. here is a code snippet of where
> i added it for testing purposes:
>
>
> route[INIT_VARS] {
>
> $var(myself) = uri =~ "<regex string to match>" || uri == myself;
> //if i print $var(myself) it prints 0
> $var(myself) = uri =~ "<regex string to match>" || is_myself("$ru");
> //if i print $var(myself) it prints 1
>
> // in both cases above the regex part isn't supposed to match and hence
> correctly returns false.
> ...
>
> }
>
> route{
>
> route(INIT_VARS);
>
> ...
> }
>
> Thanks,
>
> Karthik
>
> On Thu, Jul 19, 2018 at 11:46 AM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>> Hello,
>>
>>
>> On 19.07.18 18:32, Karthik Srinivasan wrote:
>> > Hello,
>> >
>> > Can someone explain to me why statement A returns True and statement B
>> > returns False.
>> >
>> > Statement A:
>> > is_myself("$ru")
>> >
>> > Statement B:
>> > uri == myself
>> >
>> >
>> > Isn't uri and $ru referencing the same data?
>> >
>> > With my current config i am expecting the is_myself to return True; i
>> > was expecting the same for Statement B but unfortunately it is
>> > returning False.
>> >
>> they are supposed to be the same in this case.
>>
>> Are they used at the same place in config? Note that $ru can be changed
>> by different functions such as those from registrar, dispatcher, lcr, ...
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.com
>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Kamailio World Conference -- www.kamailioworld.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/7c299838/attachment.html>
Hello,
-
https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_function_return_cod
$var(myself) =1;
} else {
$var(myself) = 0;
}
Same with is_myself("$ru") instead of uri == myself.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
>From where you need to terminate this ongoing INVITE, from kamailio.cfg
or from external app?
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
$var(myself) = 0;
if (uri =~ "<regex string to match>" || uri == myself){
$var(myself) = 1;
xlog("L_INFO", "[$ci] in uri == myself check: var myself =
$var(myself)");
}
The only log that prints out is the one that says 'in is_myself check
...'(the second if statement.)
I have verified that if there's a regular expression match then both log
writes print. Regular expression match happens when a SIP REGISTER request
comes across the pipe.
Is there a way i can inspect what myself and uri have in them?
Karthik
On Thu, Jul 19, 2018 at 2:18 PM, Daniel-Constantin Mierla <miconda at gmail.com
> wrote:
> Hello,
>
> things are different that one may expect from evaluation of an expression
> compared with other established scripting/programming languages. One thing
> to be sure you are aware of are the return code evaluation:
>
> - https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_
> function_return_cod
>
> To be sure of proper behaviour, you should do:
>
> if(uri =~ "<regex string to match>" || uri == myself) {
>
> $var(myself) =1;
>
> } else {
>
> $var(myself) = 0;
>
> }
>
> Same with is_myself("$ru") instead of uri == myself.
>
> Try and see if you get different values for $var(myself).
> Cheers,
> Daniel
>
> On 19.07.18 19:09, Karthik Srinivasan wrote:
>
> Yes, they are used at the very same place. here is a code snippet of where
> i added it for testing purposes:
>
>
> route[INIT_VARS] {
>
> $var(myself) = uri =~ "<regex string to match>" || uri == myself;
> //if i print $var(myself) it prints 0
> $var(myself) = uri =~ "<regex string to match>" || is_myself("$ru");
> //if i print $var(myself) it prints 1
>
> // in both cases above the regex part isn't supposed to match and hence
> correctly returns false.
> ...
>
> }
>
> route{
>
> route(INIT_VARS);
>
> ...
> }
>
> Thanks,
>
> Karthik
>
> On Thu, Jul 19, 2018 at 11:46 AM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>> Hello,
>>
>>
>> On 19.07.18 18:32, Karthik Srinivasan wrote:
>> > Hello,
>> >
>> > Can someone explain to me why statement A returns True and statement B
>> > returns False.
>> >
>> > Statement A:
>> > is_myself("$ru")
>> >
>> > Statement B:
>> > uri == myself
>> >
>> >
>> > Isn't uri and $ru referencing the same data?
>> >
>> > With my current config i am expecting the is_myself to return True; i
>> > was expecting the same for Statement B but unfortunately it is
>> > returning False.
>> >
>> they are supposed to be the same in this case.
>>
>> Are they used at the same place in config? Note that $ru can be changed
>> by different functions such as those from registrar, dispatcher, lcr, ...
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.com
>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Kamailio World Conference -- www.kamailioworld.com
>>
>>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/45b2243b/attachment.html>
standby, i have the debug mode spitting out tons of logs now.
thanks,
karthik
On Thu, Jul 19, 2018 at 3:15 PM, Karthik Srinivasan <ksriniva2002 at gmail.com>
wrote:
In most cases we have no problems during the three way handshake (invite ->
200Ok -> ACK).
But sometimes, we didn't received the ACK of 200OK (the TCP connection
appears broken during the three way handshake per example). In this case,
we need to cancel the calls to avoid charging customers.
> If state < 0, then practically the INVITE transaction is active, it needs
> to be cancelled or replied with t_reply(...) and a code >=400.
>
> From where you need to terminate this ongoing INVITE, from kamailio.cfg or
> from external app?
>
> Cheers,
> Daniel
>
> On 19.07.18 19:20, Abdoul Osséni wrote:
>
> ERRATUM.
>
> What is the best way to end calls for states < 3 ?
>
> Abdoul OSSENI
> Ingénieur DevOps chez Néo-Soft
> Co-Fondateur de ON SERVICES
> Tél : +33 601 135 167
>
> 2018-07-19 19:19 GMT+02:00 Abdoul Osséni <abdoul.osseni at gmail.com>:
>
>> Thank you Daniel.
>> What is the best way to end calls for states 3 and 4 ?
>>
>> Regards
>>
>> Abdoul OSSENI
>> Ingénieur DevOps chez Néo-Soft
>> Co-Fondateur de ON SERVICES
>> Tél : +33 601 135 167
>>
>> 2018-07-19 18:49 GMT+02:00 Daniel-Constantin Mierla <miconda at gmail.com>:
>>
>>> Hello,
>>>
>>>
>>> On 19.07.18 18:15, Abdoul Osséni wrote:
>>> > Hello list,
>>> >
>>> > When the dialog state for a call is < 4, is it possible to use
>>> > dlg_bye() function to end the call?
>>> >
>>> it should be possible to use it for states 3 and 4.
>>>
>>> Lower state than 3 means that the dialog was not answered yet (no 200ok
>>> received). While SIP allows BYE at that stage to end a particular branch
>>> of the call, dialog module needs the 200ok, as it operates at dialog
>>> level, not at transaction/branch level.
>>>
>>> Cheers,
>>> Daniel
>>>
>>> --
>>> Daniel-Constantin Mierla -- www.asipto.com
>>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>>> Kamailio World Conference -- www.kamailioworld.com
>>>
>>>
>>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/e610726b/attachment.html>
Background info:
- I have a request URI of an INVITE that contains no port number.
- My application is not listening on the default port of 5060
By that i mean, is_myself(...) does not default the port to 5060 when
looking up aliases/(which ip addresses and ports the process is bound to);
it simply does not take port number into account (if no port exists in
request uri) when searching the alias list. BUT, uri==myself does default
to 5060 and hence tries to find an alias binding to 5060.
Can you point me to the place in the source code where 5060 is being set as
default to the uri variable when request uri has no port number please?
Thanks,
Karthik
On Thu, Jul 19, 2018 at 3:37 PM, Karthik Srinivasan <ksriniva2002 at gmail.com>
wrote:
> standby, i have the debug mode spitting out tons of logs now.
>
> time for me to review.
>
> will let you know if i need help.
>
> thanks,
>
> karthik
>
> On Thu, Jul 19, 2018 at 3:15 PM, Karthik Srinivasan <
> ksriniva2002 at gmail.com> wrote:
>
>> Unfortunately same result as before:
>>
>> $var(myself) = 0;
>> if (uri =~ "<regex string to match>" || uri == myself){
>> $var(myself) = 1;
>> xlog("L_INFO", "[$ci] in uri == myself check: var myself =
>> $var(myself)");
>> }
>>
>> if (uri =~ "<regex string to match>" || is_myself("$ru")){
>> $var(myself) = 1;
>> xlog("L_INFO", "[$ci] in is_myself check: var myself =
>> $var(myself)");
>> }
>>
>> The only log that prints out is the one that says 'in is_myself check
>> ...'(the second if statement.)
>>
>> I have verified that if there's a regular expression match then both log
>> writes print. Regular expression match happens when a SIP REGISTER request
>> comes across the pipe.
>>
>> Something odd is going on with the computation of uri == myself vs
>> is_myself("$ru").
>>
>> Is there a way i can inspect what myself and uri have in them?
>>
>> Karthik
>>
>>
>>
>>
>> On Thu, Jul 19, 2018 at 2:18 PM, Daniel-Constantin Mierla <
>> miconda at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> things are different that one may expect from evaluation of an
>>> expression compared with other established scripting/programming languages.
>>> One thing to be sure you are aware of are the return code evaluation:
>>>
>>> - https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_
>>> function_return_cod
>>>
>>> To be sure of proper behaviour, you should do:
>>>
>>> if(uri =~ "<regex string to match>" || uri == myself) {
>>>
>>> $var(myself) =1;
>>>
>>> } else {
>>>
>>> $var(myself) = 0;
>>>
>>> }
>>>
>>> Same with is_myself("$ru") instead of uri == myself.
>>>
>>> Try and see if you get different values for $var(myself).
>>> Cheers,
>>> Daniel
>>>
>>> On 19.07.18 19:09, Karthik Srinivasan wrote:
>>>
>>> Yes, they are used at the very same place. here is a code snippet of
>>> where i added it for testing purposes:
>>>
>>>
>>> route[INIT_VARS] {
>>>
>>> $var(myself) = uri =~ "<regex string to match>" || uri == myself;
>>> //if i print $var(myself) it prints 0
>>> $var(myself) = uri =~ "<regex string to match>" || is_myself("$ru");
>>> //if i print $var(myself) it prints 1
>>>
>>> // in both cases above the regex part isn't supposed to match and hence
>>> correctly returns false.
>>> ...
>>>
>>> }
>>>
>>> route{
>>>
>>> route(INIT_VARS);
>>>
>>> ...
>>> }
>>>
>>> Thanks,
>>>
>>> Karthik
>>>
>>> On Thu, Jul 19, 2018 at 11:46 AM, Daniel-Constantin Mierla <
>>> miconda at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>>
>>>> On 19.07.18 18:32, Karthik Srinivasan wrote:
>>>> > Hello,
>>>> >
>>>> > Can someone explain to me why statement A returns True and statement B
>>>> > returns False.
>>>> >
>>>> > Statement A:
>>>> > is_myself("$ru")
>>>> >
>>>> > Statement B:
>>>> > uri == myself
>>>> >
>>>> >
>>>> > Isn't uri and $ru referencing the same data?
>>>> >
>>>> > With my current config i am expecting the is_myself to return True; i
>>>> > was expecting the same for Statement B but unfortunately it is
>>>> > returning False.
>>>> >
>>>> they are supposed to be the same in this case.
>>>>
>>>> Are they used at the same place in config? Note that $ru can be changed
>>>> by different functions such as those from registrar, dispatcher, lcr,
>>>> ...
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>> --
>>>> Daniel-Constantin Mierla -- www.asipto.com
>>>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>>>> Kamailio World Conference -- www.kamailioworld.com
>>>>
>>>>
>>>
>>> --
>>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>>> Kamailio World Conference -- www.kamailioworld.com
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180719/7224c34b/attachment.html>
Hi, Danial
(gdb) bt full
#0 0x00007f9a2c688fc3 in core_hash (s1=0x7f9a2c89e908 <ci.13657+8>,
s2=0x0, size=0)
at ../../hashes.h:276
p = 0x0
end = 0x0
v = 389295844
h = 0
#1 0x00007f9a2c68ac01 in get_aor_hash (_d=0x7f9a173436e0,
via_host=0x7f9a2c89e908 <ci.13657+8>, via_port=5080, via_proto=53877)
at usrloc.c:147
aorhash = 0
__FUNCTION__ = "get_aor_hash"
#2 0x00007f9a2c68a8a9 in get_hash_slot (_d=0x7f9a173436e0,
via_host=0x7f9a2c89e908 <ci.13657+8>, via_port=5080, via_proto=53877)
at usrloc.c:137
sl = 2000
__FUNCTION__ = "get_hash_slot"
#3 0x00007f9a2c66e9f4 in lock_udomain (_d=0x7f9a173436e0,
via_host=0x7f9a2c89e908 <ci.13657+8>, via_port=5080, via_proto=53877)
at udomain.c:273
sl = 0
#4 0x00007f9a2c67994d in preload_udomain (_c=0x7f9a2e3162f8,
_d=0x7f9a173436e0)
at udomain.c:866
ci = 0x7f9a2c89e900 <ci.13657>
row = 0x7f9a2e340210
columns = {0x7f9a2c89e2b0 <domain_col>, 0x7f9a2c89e2c0 <aor_col>,
0x7f9a2c89e2d0 <host_col>, 0x7f9a2c89e2e0 <port_col>,
0x7f9a2c89e2f0 <protocol_col>, 0x7f9a2c89e300 <received_col>,
0x7f9a2c89e310 <received_port_col>, 0x7f9a2c89e320
<received_proto_col>,
0x7f9a2c89e350 <rx_session_id_col>, 0x7f9a2c89e360
<reg_state_col>,
0x7f9a2c89e370 <expires_col>, 0x7f9a2c89e390 <socket_col>,
0x7f9a2c89e380 <service_routes_col>, 0x7f9a2c89e3a0
<public_ids_col>,
0x7f9a2c89e330 <path_col>}
res = 0x7f9a2e33ff40
aor = {s = 0xb83059 "sip:d4173c5dcbdd1529 at 172.28.20.225:5080
;transport=udp",
len = 53}
i = 0
n = 0
c = 0x7f9a2e335c20
__FUNCTION__ = "preload_udomain"
#5 0x00007f9a2c68852d in child_init (_rank=1) at ul_mod.c:249
ptr = 0x7f9a17342c70
__FUNCTION__ = "child_init"
#6 0x00000000005308c6 in init_mod_child (m=0x7f9a2e2fbcf0, rank=1) at
sr_module.c:921
__FUNCTION__ = "init_mod_child"
#7 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fbfa0, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#8 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fcc80, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#9 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fd260, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#10 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fd610, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#11 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fdc40, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#12 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fe158, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#13 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fe460, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#14 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2fedc8, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#15 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2ff418, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#16 0x00000000005305e3 in init_mod_child (m=0x7f9a2e2ffb48, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#17 0x00000000005305e3 in init_mod_child (m=0x7f9a2e3000f0, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
---Type <return> to continue, or q <return> to quit---
#18 0x00000000005305e3 in init_mod_child (m=0x7f9a2e300510, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#19 0x00000000005305e3 in init_mod_child (m=0x7f9a2e301898, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#20 0x00000000005305e3 in init_mod_child (m=0x7f9a2e302130, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#21 0x00000000005305e3 in init_mod_child (m=0x7f9a2e3026d8, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#22 0x00000000005305e3 in init_mod_child (m=0x7f9a2e302a50, rank=1) at
sr_module.c:918
__FUNCTION__ = "init_mod_child"
#23 0x0000000000530bfe in init_child (rank=1) at sr_module.c:947
No locals.
#24 0x0000000000485bd5 in fork_process (child_id=1,
desc=0x7ffe9c85acc0 "udp receiver child=0 sock=172.28.20.216:4060",
make_sock=1)
at pt.c:327
pid = 0
child_process_no = 1
ret = -1
new_seed1 = 570787820
new_seed2 = 1356713246
sockfd = {-1, -1}
__FUNCTION__ = "fork_process"
#25 0x000000000052024c in main_loop () at main.c:1586
i = 0
pid = 32766
si = 0x7f9a2e2f1f10
si_desc = "udp receiver child=0 sock=172.28.20.216:4060
\000\177\000\000$
[d\000\000\000\000\000\b\000\000\000\000\000\000\000(,4\027\232\177\000\000\000\360
\f\027\232\177\000\000P,4\027\232\177\000\000`\000\000\000\000\000\000\000`\255\205
\234\001\000\000\000\230t\r\027\232\177\000\000`\255\205\234\376\177\000\000H\036\0
64.\232\177\000"
nrprocs = 8
woneinit = 0
__FUNCTION__ = "main_loop"
---Type <return> to continue, or q <return> to quit---
#26 0x0000000000527a79 in main (argc=7, argv=0x7ffe9c85b0d8) at main.c:2616
cfg_stream = 0xad6010
c = -1
r = 0
tmp = 0x7ffe9c85b818 ""
tmp_len = 0
port = 0
proto = 0
options = 0x74b160
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:"
ret = -1
seed = 2634858459
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x0
p = 0x0
st = {st_dev = 19, st_ino = 72092, st_nlink = 2, st_mode = 16832,
st_uid = 0,
st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize =
4096,
st_blocks = 0, st_atim = {tv_sec = 1532054497, tv_nsec =
553300960},
st_mtim = {tv_sec = 1532054692, tv_nsec = 531753344}, st_ctim = {
tv_sec = 1532054692, tv_nsec = 531753344}, __unused = {0, 0, 0}}
__FUNCTION__ = "main"
(gdb)
Hello,
I am also not that familiar with the IMS modules. If you did a modification t
the code and now its crashes the best would be to discuss this on our
developer list sr-dev. The respective module developers are also there and
could assist as well.
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
Hello,
Yet , the ACK packet sent from the proxy to the origination's private IP.
The ACK is sent as reply on the following 200 OK sent from the origination :
8m2EJN41BN/6WSIP/2.0 200 OK
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=
X.X.X.X,SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Call-ID: CbeX8453909200habfGhEfElPce at BC00.XXXXXXXXXXXXXX
Accept: application/sdp
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE
P-Charging-Vector:
icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX
;orig-ioi=MXXXXXXXXXXXXXX
Content-Type: application/sdp
Contact: <sip:172.16.45.65:5060;transport=UDP>
Content-Length: 268
v=0
s=-
t=0 0
a=sendrecv
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=maxptime:20
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0
Via: SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc
Max-Forwards: 69
Content-Length: 0
route {
route(NATDETECT);
record_route();
if(!mf_process_maxfwd_header("10")) {
exit;
if(has_totag()) {
if(loose_route()) {
route(DLGURI);
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
route(DLGURI);
if(t_check_trans()) {
t_relay();
} else
sl_send_reply("403", "Forbidden");
exit;
.....
route[NATDETECT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
add_contact_alias();
setflag(FLT_NATS);
#!endif
return;
route[DLGURI] {
#!ifdef WITH_NAT
if(!isdsturiset()) {
handle_ruri_alias();
#!endif
return;
Can you please check why the ACK is still sent on private IP ?
Thanks
Ali Taher
Hi, anyone how to access keyword variables like dst_port or src_port from
kemi? (specifically python in our case).
Thanks,
Enrico.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180720/9d18c739/attachment.html>
Hello Ali,
if (nat_uac_test("19")) {
fix_nated_contact();
}
Best regards.
Konstantin
>Message: 23
>Date: Fri, 20 Jul 2018 11:13:42 +0300
>From: "Ali Taher" < ataher at vanrise.com >
>To: < sr-users at lists.sip-router.org >
>Subject: [SR-Users] NATHELPER issue
>Message-ID: < 070901d42001$939be2b0$bad3a810$@vanrise.com >
>Content-Type: text/plain; charset="utf-8"
>
>Hello,
>
>
>
>I'm using Kamailio 4.2 as proxy with nathelper enabled.
>
>
>
>Yet , the ACK packet sent from the proxy to the origination's private IP.
>
>
>
>The ACK is sent as reply on the following 200 OK sent from the origination :
>
>
>
>
>8m2EJN41BN/6WSIP/2.0 200 OK
>
>From: <sip:+4444331234567 at X.X.X.X;user=phone>;tag=XQBQNjvjgp4Ze
>
>To: <sip:+905362695933 at 172.16.45.65;user=phone>;tag=12033368836000
>
>Via: SIP/2.0/UDP
>X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=
>X.X.X.X,SIP/2.0/UDP
>X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN
>
>Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
>
>Call-ID: CbeX8453909200habfGhEfElPce at BC00.XXXXXXXXXXXXXX
>
>CSeq: 125698370 INVITE
>
>Accept: application/sdp
>
>Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE
>
>P-Charging-Vector:
>icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX
>;orig-ioi=MXXXXXXXXXXXXXX
>
>Content-Type: application/sdp
>
>Contact: <sip:172.16.45.65:5060;transport=UDP>
>
>Content-Length: 268
>
>
>
>v=0
>
>o=- 5838243 5838244 IN IP4 BC00.XXXXXXXXXXXXXX
>
>s=-
>
>c=IN IP4 172.16.45.144
>
>t=0 0
>
>a=sendrecv
>
>m=audio 47588 RTP/AVP 18 96
>
>c=IN IP4 172.16.45.144
>
>a=rtpmap:18 G729/8000
>
>a=fmtp:18 annexb=yes
>
>a=rtpmap:96 telephone-event/8000
>
>a=fmtp:96 0-15
>
>a=maxptime:20
>
>
>
>Following is the header of the sent ACK packet:
>
>
>
>Request-Line: ACK sip:172.16.45.65:5060;transport=UDP SIP/2.0
>
>Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
>
>Via: SIP/2.0/UDP
>X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0
>
>Via: SIP/2.0/UDP
>X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc
>
>Max-Forwards: 69
>
>From: <sip:+4444331234567 at X.X.X.X;user=phone>;tag=XQBQNjvjgp4Ze
>
>To: <sip:+905362695933 at 172.16.45.65;user=phone>;tag=12033368836000
>
>Call-ID: CbeX8453909200habfGhEfElPce at BC00.XXXXXXXXXXXXXX
>
>CSeq: 125698370 ACK
>
>Content-Length: 0
>
>
>
>Where X.X.X.X is Kamailio server public IP.
>
>
>
>Following is part of my config file :
>
>
>
>route {
>
>route(NATDETECT);
>
>record_route();
>
>
>
> if(!mf_process_maxfwd_header("10")) {
>
> sl_send_reply("483", "Too Many Hops");
>
> exit;
>
> }
>
>
>
> # Maybe some sanity_check() here.
>
>
>
> if(has_totag()) {
>
>
>
> if(loose_route()) {
>
> route(DLGURI);
>
> if(!t_relay())
>
> sl_reply_error();
>
>
>
> exit;
>
> } else {
>
> if(is_method("ACK")) {
>
> route(DLGURI);
>
> if(t_check_trans()) {
>
> t_relay();
>
> }
>
> } else
>
> sl_send_reply("403", "Forbidden");
>
> }
>
> exit;
>
> }
>
>
>
>.....
>
>}
>
>
>
>
>
>route[NATDETECT] {
>
>#!ifdef WITH_NAT
>
> force_rport();
>
> if (nat_uac_test("19")) {
>
> if (is_method("REGISTER")) {
>
> fix_nated_register();
>
> } else {
>
> add_contact_alias();
>
> }
>
> setflag(FLT_NATS);
>
> }
>
>#!endif
>
> return;
>
>}
>
>
>
>route[DLGURI] {
>
>#!ifdef WITH_NAT
>
> if(!isdsturiset()) {
>
> handle_ruri_alias();
>
> }
>
>#!endif
>
> return;
>
>}
>
>
>
>Can you please check why the ACK is still sent on private IP ?
>
>
>
>Thanks
>
>Ali Taher
>
>
Cheers,
Daniel
On 20.07.18 06:48, Karthik Srinivasan wrote:
> So, i think i have determined the root cause of my issue:
>
> Background info:
> - I have a request URI of an INVITE that contains no port number.
> - My application is not listening on the default port of 5060
>
> The is_myself(...) function handles a 'no port in request uri'
> differently than uri==myself.
>
> By that i mean, is_myself(...) does not default the port to 5060 when
> looking up aliases/(which ip addresses and ports the process is bound
> to); it simply does not take port number into account (if no port
> exists in request uri) when searching the alias list. BUT,
> uri==myself does default to 5060 and hence tries to find an alias
> binding to 5060.
>
> So, is_myself("$ru") passes in my case; uri==myself fails.
>
> Can you point me to the place in the source code where 5060 is being
> set as default to the uri variable when request uri has no port number
> please?
>
> I don't intend to change this defaulting behavior; I am just curious
> where it is set.
>
> Thanks,
>
> Karthik
>
> On Thu, Jul 19, 2018 at 3:37 PM, Karthik Srinivasan
> <ksriniva2002 at gmail.com <mailto:ksriniva2002 at gmail.com>> wrote:
>
> standby, i have the debug mode spitting out tons of logs now.
>
> time for me to review.
>
> will let you know if i need help.
>
> thanks,
>
> karthik
>
> On Thu, Jul 19, 2018 at 3:15 PM, Karthik Srinivasan
> <ksriniva2002 at gmail.com <mailto:ksriniva2002 at gmail.com>> wrote:
>
> Unfortunately same result as before:
>
> $var(myself) = 0;
> if (uri =~ "<regex string to match>" || uri == myself){
> $var(myself) = 1;
> xlog("L_INFO", "[$ci] in uri == myself check: var myself
> = $var(myself)");
> }
>
> if (uri =~ "<regex string to match>" || is_myself("$ru")){
> $var(myself) = 1;
> xlog("L_INFO", "[$ci] in is_myself check: var myself =
> $var(myself)");
> }
>
> The only log that prints out is the one that says 'in
> is_myself check ...'(the second if statement.)
>
> I have verified that if there's a regular expression match
> then both log writes print. Regular expression match happens
> when a SIP REGISTER request comes across the pipe.
>
> Something odd is going on with the computation of uri ==
> myself vs is_myself("$ru").
>
> Is there a way i can inspect what myself and uri have in them?
>
> Karthik
>
>
>
>
> On Thu, Jul 19, 2018 at 2:18 PM, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
> Hello,
>
> things are different that one may expect from evaluation
> of an expression compared with other established
> scripting/programming languages. One thing to be sure you
> are aware of are the return code evaluation:
>
> -
>
https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_function_return_cod
>
<https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_function_return_cod>
>
> To be sure of proper behaviour, you should do:
>
> if(uri =~ "<regex string to match>" || uri == myself) {
>
> $var(myself) =1;
>
> } else {
>
> $var(myself) = 0;
>
> }
>
> Same with is_myself("$ru") instead of uri == myself.
>
> Try and see if you get different values for $var(myself).
>
> Cheers,
> Daniel
>
> On 19.07.18 19:09, Karthik Srinivasan wrote:
>> Yes, they are used at the very same place. here is a code
>> snippet of where i added it for testing purposes:
>>
>>
>> route[INIT_VARS] {
>>
>> $var(myself) = uri =~ "<regex string to match>" || uri ==
>> myself;
>> //if i print $var(myself) it prints 0
>> $var(myself) = uri =~ "<regex string to match>" ||
>> is_myself("$ru");
>> //if i print $var(myself) it prints 1
>>
>> // in both cases above the regex part isn't supposed to
>> match and hence correctly returns false.
>> ...
>>
>> }
>>
>> route{
>>
>> route(INIT_VARS);
>>
>> ...
>> }
>>
>> Thanks,
>>
>> Karthik
>>
>> On Thu, Jul 19, 2018 at 11:46 AM, Daniel-Constantin
>> Mierla <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>>
>> Hello,
>>
>>
>> On 19.07.18 18:32, Karthik Srinivasan wrote:
>> > Hello,
>> >
>> > Can someone explain to me why statement A returns
>> True and statement B
>> > returns False.
>> >
>> > Statement A:
>> > is_myself("$ru")
>> >
>> > Statement B:
>> > uri == myself
>> >
>> >
>> > Isn't uri and $ru referencing the same data?
>> >
>> > With my current config i am expecting the is_myself
>> to return True; i
>> > was expecting the same for Statement B but
>> unfortunately it is
>> > returning False.
>> >
>> they are supposed to be the same in this case.
>>
>> Are they used at the same place in config? Note that
>> $ru can be changed
>> by different functions such as those from registrar,
>> dispatcher, lcr, ...
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.com
>> <http://www.asipto.com>
>> www.twitter.com/miconda
>> <http://www.twitter.com/miconda> --
>> www.linkedin.com/in/miconda
>> <http://www.linkedin.com/in/miconda>
>> Kamailio World Conference -- www.kamailioworld.com
>> <http://www.kamailioworld.com>
>>
>>
>
> --
> Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com>
> www.twitter.com/miconda <http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda
> <http://www.linkedin.com/in/miconda>
> Kamailio World Conference -- www.kamailioworld.com
<http://www.kamailioworld.com>
>
>
>
>
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hello,
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Hi Vinod,
Kamailio comes with several modules that are implemented specifically for the
support of IMS configurations. Their names start with “ims_”.
To know, how to load and configure those modules for use in an ims, there are
example config files, afaik in branch 4.4 at examples/pcscf, examples/icscf,
examples/scscf.
KR
Hi
what are the requirements to configure the ims to work with kamailio.
--
Thanks and regards
Vinod.M.N
The information contained in this e-mail message is privileged and confidential and
is for the exclusive use of the addressee. The person who receives this message and
who is not the addressee, one of his employees or an agent entitled to hand it over
to the addressee, is informed that he may not use, disclose or reproduce the
contents thereof, and is kindly asked to notify the sender and delete the e-mail
immediately.
Is anyone using dialog module with DMQ to share dialogs across multiple
kamailio instances?
i've been testing it and it seems unreliable. sometimes the dialog data is
sent from nodeA to nodeB, sometimes it is not.
im wondering if im missing some settings or it's a bug. I tested latest
master branch and version 5.1.4
Thanks!
Emmanuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180720/9e9f21ca/attachment.html>
Karthik
On Fri, Jul 20, 2018 at 7:57 AM, Daniel-Constantin Mierla <miconda at gmail.com
> wrote:
Hello,
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Can you point me to the location of the source code that unpacks the
request uri/from uri and sticks them into the $ru/$fu pseudo vars please.
I already have confirmed (via testing) that $ru won't have a defaulted port
set to it if no port exists in the request uri.
I want to confirm within the code that $fu behaves the same. That is, no
default port is going to get set if no port exists in the from uri.
Confirming via code will help me put this issue; provide confidence that i
am using the right variables here.
I did confirm via code (thank to your help) that the variable "from_uri"
will have a default port set just like the "uri" variable.
Thanks,
Karthik
On Fri, Jul 20, 2018 at 10:26 AM, Karthik Srinivasan <ksriniva2002 at gmail.com
> wrote:
> Yes, i see it defaulting there. Thanks again for the help.
>
> Karthik
>
> On Fri, Jul 20, 2018 at 7:57 AM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>> The evaluation for uri==myself condition is done inside src/core/route.c
>> starting with line 1817. I see there that it takes default SIP port if none
>> is set in the r-uri.
>>
>> Cheers,
>> Daniel
>>
>> On 20.07.18 06:48, Karthik Srinivasan wrote:
>>
>> So, i think i have determined the root cause of my issue:
>>
>> Background info:
>> - I have a request URI of an INVITE that contains no port number.
>> - My application is not listening on the default port of 5060
>>
>> The is_myself(...) function handles a 'no port in request uri'
>> differently than uri==myself.
>>
>> By that i mean, is_myself(...) does not default the port to 5060 when
>> looking up aliases/(which ip addresses and ports the process is bound to);
>> it simply does not take port number into account (if no port exists in
>> request uri) when searching the alias list. BUT, uri==myself does default
>> to 5060 and hence tries to find an alias binding to 5060.
>>
>> So, is_myself("$ru") passes in my case; uri==myself fails.
>>
>> Can you point me to the place in the source code where 5060 is being set
>> as default to the uri variable when request uri has no port number please?
>>
>> I don't intend to change this defaulting behavior; I am just curious
>> where it is set.
>>
>> Thanks,
>>
>> Karthik
>>
>> On Thu, Jul 19, 2018 at 3:37 PM, Karthik Srinivasan <
>> ksriniva2002 at gmail.com> wrote:
>>
>>> standby, i have the debug mode spitting out tons of logs now.
>>>
>>> time for me to review.
>>>
>>> will let you know if i need help.
>>>
>>> thanks,
>>>
>>> karthik
>>>
>>> On Thu, Jul 19, 2018 at 3:15 PM, Karthik Srinivasan <
>>> ksriniva2002 at gmail.com> wrote:
>>>
>>>> Unfortunately same result as before:
>>>>
>>>> $var(myself) = 0;
>>>> if (uri =~ "<regex string to match>" || uri == myself){
>>>> $var(myself) = 1;
>>>> xlog("L_INFO", "[$ci] in uri == myself check: var myself =
>>>> $var(myself)");
>>>> }
>>>>
>>>> if (uri =~ "<regex string to match>" || is_myself("$ru")){
>>>> $var(myself) = 1;
>>>> xlog("L_INFO", "[$ci] in is_myself check: var myself =
>>>> $var(myself)");
>>>> }
>>>>
>>>> The only log that prints out is the one that says 'in is_myself check
>>>> ...'(the second if statement.)
>>>>
>>>> I have verified that if there's a regular expression match then both
>>>> log writes print. Regular expression match happens when a SIP REGISTER
>>>> request comes across the pipe.
>>>>
>>>> Something odd is going on with the computation of uri == myself vs
>>>> is_myself("$ru").
>>>>
>>>> Is there a way i can inspect what myself and uri have in them?
>>>>
>>>> Karthik
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Jul 19, 2018 at 2:18 PM, Daniel-Constantin Mierla <
>>>> miconda at gmail.com> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> things are different that one may expect from evaluation of an
>>>>> expression compared with other established scripting/programming languages.
>>>>> One thing to be sure you are aware of are the return code evaluation:
>>>>>
>>>>> - https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_
>>>>> function_return_cod
>>>>>
>>>>> To be sure of proper behaviour, you should do:
>>>>>
>>>>> if(uri =~ "<regex string to match>" || uri == myself) {
>>>>>
>>>>> $var(myself) =1;
>>>>>
>>>>> } else {
>>>>>
>>>>> $var(myself) = 0;
>>>>>
>>>>> }
>>>>>
>>>>> Same with is_myself("$ru") instead of uri == myself.
>>>>>
>>>>> Try and see if you get different values for $var(myself).
>>>>> Cheers,
>>>>> Daniel
>>>>>
>>>>> On 19.07.18 19:09, Karthik Srinivasan wrote:
>>>>>
>>>>> Yes, they are used at the very same place. here is a code snippet of
>>>>> where i added it for testing purposes:
>>>>>
>>>>>
>>>>> route[INIT_VARS] {
>>>>>
>>>>> $var(myself) = uri =~ "<regex string to match>" || uri == myself;
>>>>> //if i print $var(myself) it prints 0
>>>>> $var(myself) = uri =~ "<regex string to match>" || is_myself("$ru");
>>>>> //if i print $var(myself) it prints 1
>>>>>
>>>>> // in both cases above the regex part isn't supposed to match and
>>>>> hence correctly returns false.
>>>>> ...
>>>>>
>>>>> }
>>>>>
>>>>> route{
>>>>>
>>>>> route(INIT_VARS);
>>>>>
>>>>> ...
>>>>> }
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Karthik
>>>>>
>>>>> On Thu, Jul 19, 2018 at 11:46 AM, Daniel-Constantin Mierla <
>>>>> miconda at gmail.com> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>
>>>>>> On 19.07.18 18:32, Karthik Srinivasan wrote:
>>>>>> > Hello,
>>>>>> >
>>>>>> > Can someone explain to me why statement A returns True and
>>>>>> statement B
>>>>>> > returns False.
>>>>>> >
>>>>>> > Statement A:
>>>>>> > is_myself("$ru")
>>>>>> >
>>>>>> > Statement B:
>>>>>> > uri == myself
>>>>>> >
>>>>>> >
>>>>>> > Isn't uri and $ru referencing the same data?
>>>>>> >
>>>>>> > With my current config i am expecting the is_myself to return
>>>>>> True; i
>>>>>> > was expecting the same for Statement B but unfortunately it is
>>>>>> > returning False.
>>>>>> >
>>>>>> they are supposed to be the same in this case.
>>>>>>
>>>>>> Are they used at the same place in config? Note that $ru can be
>>>>>> changed
>>>>>> by different functions such as those from registrar, dispatcher, lcr,
>>>>>> ...
>>>>>>
>>>>>> Cheers,
>>>>>> Daniel
>>>>>>
>>>>>> --
>>>>>> Daniel-Constantin Mierla -- www.asipto.com
>>>>>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>>>>>> Kamailio World Conference -- www.kamailioworld.com
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>>>>> Kamailio World Conference -- www.kamailioworld.com
>>>>>
>>>>>
>>>>
>>>
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>> Kamailio World Conference -- www.kamailioworld.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180720/044d5260/attachment.html>
thanks again.
Karthik
On Fri, Jul 20, 2018 at 11:36 AM, Karthik Srinivasan <ksriniva2002 at gmail.com
> wrote:
Hi,
I have a kamailio v5.0 setup where cdrs are enabled using acc module. Is
there a way to enable / disable cdrs on per call basis in kamailio script?
For example i want to allow cdrs only for offnet calls and disable them for
onnet calls?
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of eyas barhouk
<eyas37 at hotmail.com>
Sent: Wednesday, July 18, 2018 7:58 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] forbidden domain not served
Dears
i'm using kamilio 5.2.0 as IMS with Zoiper client and RTP Engine
when i'm trying to terminate a video call ,BYE message does not arrived to
destination with error from S-cscf side "forbidden domain not served "
has any one had the same issue before ? and is there any ideas about how to solve
it ?
thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180720/249426e9/attachment.html>
You will probably need to do that for both INVITEs and BYEs
> Hi,
>
> I have a kamailio v5.0 setup where cdrs are enabled using acc module. Is
> there a way to enable / disable cdrs on per call basis in kamailio script?
> For example i want to allow cdrs only for offnet calls and disable them for
> onnet calls?
>
> May be a dialog flag configurable in module parameters to signal acc
> module whether or not to generate cdr for current dialog at the end of call?
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180720/0ada4d4e/attachment.html>
Humm, isn’t acc log_flag is for transaction logging, rather then cdrs?
For cdrs, the acc module has just one relevant module parameter, that is
cdr_enable which enables / disables cdrs for ALL calls.
On Sat, 21 Jul 2018 at 00:01, Sergiu Pojoga <pojogas at gmail.com> wrote:
Still, not setting the acc log_flag should result in no cdrs. Why don't you
give it a try.
> Humm, isn’t acc log_flag is for transaction logging, rather then cdrs?
>
> For cdrs, the acc module has just one relevant module parameter, that is
> cdr_enable which enables / disables cdrs for ALL calls.
> On Sat, 21 Jul 2018 at 00:01, Sergiu Pojoga <pojogas at gmail.com> wrote:
>
>> Assuming your acc log_flag is set to FLT_ACC, it should be as simple as
>> not setting or resetting the FLT_ACC flag, depending on the script logic.
>>
>> You will probably need to do that for both INVITEs and BYEs
>>
>>
>> On Fri, Jul 20, 2018 at 2:48 PM M S <shaheryarkh at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have a kamailio v5.0 setup where cdrs are enabled using acc module. Is
>>> there a way to enable / disable cdrs on per call basis in kamailio script?
>>> For example i want to allow cdrs only for offnet calls and disable them for
>>> onnet calls?
>>>
>>> May be a dialog flag configurable in module parameters to signal acc
>>> module whether or not to generate cdr for current dialog at the end of call?
>>>
>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180721/725556d9/attachment.html>
Thank you.
> I suppose it depends how one generates CDRs, directly from Kamailio or
> using an external process.
>
> Still, not setting the acc log_flag should result in no cdrs. Why don't
> you give it a try.
>
> On Sat, Jul 21, 2018 at 2:16 AM M S <shaheryarkh at gmail.com> wrote:
>
>> Humm, isn’t acc log_flag is for transaction logging, rather then cdrs?
>>
>> For cdrs, the acc module has just one relevant module parameter, that is
>> cdr_enable which enables / disables cdrs for ALL calls.
>> On Sat, 21 Jul 2018 at 00:01, Sergiu Pojoga <pojogas at gmail.com> wrote:
>>
>>> Assuming your acc log_flag is set to FLT_ACC, it should be as simple as
>>> not setting or resetting the FLT_ACC flag, depending on the script logic.
>>>
>>> You will probably need to do that for both INVITEs and BYEs
>>>
>>>
>>> On Fri, Jul 20, 2018 at 2:48 PM M S <shaheryarkh at gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have a kamailio v5.0 setup where cdrs are enabled using acc module.
>>>> Is there a way to enable / disable cdrs on per call basis in kamailio
>>>> script? For example i want to allow cdrs only for offnet calls and disable
>>>> them for onnet calls?
>>>>
>>>> May be a dialog flag configurable in module parameters to signal acc
>>>> module whether or not to generate cdr for current dialog at the end of call?
>>>>
>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180721/a96dd054/attachment.html>
Hello
I have faced when case when private var defined as $var(json_request) is
share between different SIP messages.
In my case first time this var is used from registration processing route.
Then var with same name is used PUBLISH messge processing. And i be able to
this value defined from registration processing.
I expecting that vars is not shared between threads and message handling
routes for var defined as $var(name). Is that not true?
How i can prevent race condition between different message processing
routes when two thread simultaneously change same variable?
Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180721/0e420eca/attachment.html>
From abalashov at evaristesys.com Sat Jul 21 20:27:21 2018
From: abalashov at evaristesys.com (Alex Balashov)
Date: Sat, 21 Jul 2018 14:27:21 -0400
Subject: [SR-Users] $var(name) - Private memory variables
In-Reply-To: <CAHtxdDeN73wBEXW3-m1KWRuPFnSAffUov7H6VahPCTK9=T-8Yg@mail.gmail.com>
References: <CAHtxdDeN73wBEXW3-m1KWRuPFnSAffUov7H6VahPCTK9=T-8Yg@mail.gmail.com>
Message-ID: <20180721182720.GA6790@tlaquepaque.localdomain>
Hi Sergey,
> Hello
> I have faced when case when private var defined as $var(json_request) is
> share between different SIP messages.
> In my case first time this var is used from registration processing route.
> Then var with same name is used PUBLISH messge processing. And i be able to
> this value defined from registration processing.
>
> I expecting that vars is not shared between threads and message handling
> routes for var defined as $var(name). Is that not true?
> How i can prevent race condition between different message processing
> routes when two thread simultaneously change same variable?
>
> Sergey
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
> You need to use an avp or an xavp instead of a var. As far as I understand
> it a var is tied to a particular thread (which will be reused) while avp's
> live in shared memory and are unique to each dialog.
https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#dlg_var_key
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Sergey
> On Sat, Jul 21, 2018 at 02:33:45PM -0400, John Petrini wrote:
>
> > You need to use an avp or an xavp instead of a var. As far as I
> understand
> > it a var is tied to a particular thread (which will be reused) while
> avp's
> > live in shared memory and are unique to each dialog.
>
> Almost accurate. (X)AVPs are transaction-persistent, not
> dialog-persistent.
>
> Dialog-persistent variables are possible, though, either by using
> Record-Route parameters that travel around with every in-dialog request
> and reply, or a more stateful approach using $dlg_var:
>
>
> https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#dlg_var_key
>
> -- Alex
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 <(706)%20510-6800> / +1-800-250-5920
> <(800)%20250-5920> (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180721/4513e06b/attachment.html>
Thanks for clarifying Alex. First time I've heard of dlg_var, good to know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180721/999a7309/attachment.html>
Yes, but I am confused by database part. I need just sip traffic mirroring,
database is just an option there? I don’t need database interaction.
> 19 июля 2018 г., в 11:02, Henning Westerholt <hw at kamailio.org> написал(а):
>
> Am Mittwoch, 18. Juli 2018, 20:16:37 CEST schrieb Максим Баранов:
>> Hello, what are the options for duplicating sip traffic to arbitrary tcp
>> port in Kamailio?
>
> Hello,
>
> have you already looked into the sipcapture module? From the README:
>
> "The sipcapture module stores incoming/outgoing SIP messages in
> database.
>
> Kamailio can capture SIP messages in three modes
> * IPIP encapsulation. (ETHHDR+IPHDR+IPHDR+UDPHDR).
> * Monitoring/mirroring port.
> * Homer encapsulation protocol mode (HEP v1, v2, v3)."
>
> Best regards,
>
> Henning
>
Hello,
1. Overview
Disable the DB with trace_to_database and then have a look to the trace_to_ip
function.
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
Hello Abtin,
But to have a proper answer for your certain scenario, you need to test it.
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
Hello Eyas,
you need to give more details about the error. Do you get an SIP error
message, or an error message in the client?
Did you already tried to debug this in Kamailio, by looking into the logs,
enabling a higher log level etc..?
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
Hi,
https://github.com/sipcapture/homer
On Sun, Jul 22, 2018 at 12:07 PM, Henning Westerholt <hw at kamailio.org>
wrote:
> Am Samstag, 21. Juli 2018, 15:32:44 CEST schrieb Максим Баранов:
> > Yes, but I am confused by database part. I need just sip traffic
> mirroring,
> > database is just an option there? I don’t need database interaction.
> > > 19 июля 2018 г., в 11:02, Henning Westerholt <hw at kamailio.org>
> написал(а):
>
> Hello,
>
> ok - probably the siptrace module is then better:
>
> 1. Overview
>
> The SIPtrace module offer a possibility to store incoming and outgoing
> SIP messages in a database and/or duplicate to the capturing server
> (using HEP, the Homer encapsulation protocol, or plain SIP mode)
>
> Disable the DB with trace_to_database and then have a look to the
> trace_to_ip
> function.
>
> 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180722/d9613941/attachment.html>
Hello,
don't use DMQ with dialog by myself, but if you notice a bug in a stable
released version, it would be great if you could file a bug in our bug tracker
at github. Then it can be further analyzed and tracked.
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
Hi,
https://github.com/kamailio/kamailio/issues/1591
That said, in my initial tests I haven’t seen that problem. Can you
reproduce it?
Can you share your setup and config? (At least the relevant parts)
Thanks!
Joel.
On Sun, Jul 22, 2018 at 04:06 Henning Westerholt <hw at kamailio.org> wrote:
Hello Eyas,
you need to give more details about the error. Do you get an SIP error
message, or an error message in the client?
Did you already tried to debug this in Kamailio, by looking into the logs,
enabling a higher log level etc..?
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 should try to send SIP messages directly to foreign SIP domains
and when it fails (e.g. user not available or foreign SIP is not
running), then forward message to that my SIP <--> XMPP gateway which
will try to deliver it via XMPP.
I guess that Kamailio should be able to configure for such custom
routing/forwarding but I have not figured yet how to do it. I'm using
Kamailio 4.4 with slightly modified default kamailio.cfg config.
--
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180722/9e1f5fb4/attachment.sig>
Thank you, both siptrace and Homer looks like that is what I need.
> Hi,
>
> I think it is better for you to also take a look at Homer. It provides a
> free and very nice web-interface to see captured SIP packets and also
> search for them. For more information refer to:
>
> https://github.com/sipcapture/homer
>
>
> On Sun, Jul 22, 2018 at 12:07 PM, Henning Westerholt <hw at kamailio.org>
> wrote:
>
>> Am Samstag, 21. Juli 2018, 15:32:44 CEST schrieb Максим Баранов:
>> > Yes, but I am confused by database part. I need just sip traffic
>> mirroring,
>> > database is just an option there? I don’t need database interaction.
>> > > 19 июля 2018 г., в 11:02, Henning Westerholt <hw at kamailio.org>
>> написал(а):
>>
>> Hello,
>>
>> ok - probably the siptrace module is then better:
>>
>> 1. Overview
>>
>> The SIPtrace module offer a possibility to store incoming and outgoing
>> SIP messages in a database and/or duplicate to the capturing server
>> (using HEP, the Homer encapsulation protocol, or plain SIP mode)
>>
>> Disable the DB with trace_to_database and then have a look to the
>> trace_to_ip
>> function.
>>
>> 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 at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180723/3648ad23/attachment.html>
<SIXPR0301MB1225C4711C0762CAEF077248E0520@SIXPR0301MB1225.apcprd03.prod.outlook.com
>
Message-ID:
<SIXPR0301MB12258D9294D085C3B99D5E62E0560@SIXPR0301MB1225.apcprd03.prod.outlook.com
>
Regards
Hamid R. Hashmi
______________________________
www.hrhashmi.blogspot.com<http://www.trgworld.com/pakistan>
Sype: hamidrhashmi
________________________________
From: Hamid Hashmi <hamid2kviii at hotmail.com>
Sent: Thursday, July 19, 2018 1:05 PM
To: Hamid Hashmi; Kamailio (SER) - Users Mailing List
Subject: Re: Module RTPPROXY param Timeout_Socket not Working
Regards
Hamid R. Hashmi
______________________________
www.hrhashmi.blogspot.com<http://www.trgworld.com/pakistan>
Sype: hamidrhashmi
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Hamid Hashmi
<hamid2kviii at hotmail.com>
Sent: Thursday, July 19, 2018 12:59 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] Module RTPPROXY param Timeout_Socket not Working
loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_tout", 1)
modparam("rtpproxy", "rtpproxy_retr", 2)
modparam("rtpproxy", "timeout_socket", "xmlrpc:http://127.0.0.1:8000/RPC2")
loadmodule "xmlrpc.so"
modparam("xmlrpc", "route", "XMLRPC");
modparam("xmlrpc", "mode", 1)
modparam("xmlrpc", "url_match", "^/RPC2")
when I type a command
$ netstat -nlp
it only shows SIP listening ports. Kamailio should also start listening on
127.0.0.1:8000.
Below are the RTPproxy logs, RTPproxy is also unable to bridge the media
But if I comment out the param "Timeout_Socket" then there is no issue in bridging
the media.
Regards
Hamid R. Hashmi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180723/411c549b/attachment.html>
<SIXPR0301MB1225C4711C0762CAEF077248E0520@SIXPR0301MB1225.apcprd03.prod.outlook.com
>
<SIXPR0301MB12258D9294D085C3B99D5E62E0560@SIXPR0301MB1225.apcprd03.prod.outlook.com
>
Message-ID: <225f65c9-bd58-03e6-daca-7d43de18c672@yu-boot.ru>
Hello.
Now I use dialog-based keepalives to detect and tear down dead sessions.
I have tested it. It does not work. It only stops sip transaction
accounting but not the cdrs.
I think i have to add support in native code for dialog level flag or
variable to allow the customization of cdrs...humm, lets see.
Thank you.
On Sat, 21 Jul 2018 at 17:40, M S <shaheryarkh at gmail.com> wrote:
There is something strange , as I hear two short different ringing tones then
complete silence till the called party answer the call and RTP flow normally.
Thanks,
Ali
Hello Ali,
if (nat_uac_test("19")) {
fix_nated_contact();
Best regards.
Konstantin
Message: 23
Date: Fri, 20 Jul 2018 11:13:42 +0300
From: "Ali Taher" <ataher at vanrise.com <mailto:ataher at vanrise.com> >
To: <sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org> >
Subject: [SR-Users] NATHELPER issue
Message-ID: <070901d42001$939be2b0$bad3a810$@vanrise.com
<mailto:070901d42001$939be2b0$bad3a810$@vanrise.com> >
Content-Type: text/plain; charset="utf-8"
Hello,
Yet , the ACK packet sent from the proxy to the origination's private IP.
The ACK is sent as reply on the following 200 OK sent from the origination :
8m2EJN41BN/6WSIP/2.0 200 OK
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=
X.X.X.X,SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Accept: application/sdp
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE
P-Charging-Vector:
icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX
;orig-ioi=MXXXXXXXXXXXXXX
Content-Type: application/sdp
Contact: <sip:172.16.45.65:5060;transport=UDP>
Content-Length: 268
v=0
s=-
a=sendrecv
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=maxptime:20
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0
Via: SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc
Max-Forwards: 69
Content-Length: 0
route {
route(NATDETECT);
record_route();
if(!mf_process_maxfwd_header("10")) {
exit;
if(has_totag()) {
if(loose_route()) {
route(DLGURI);
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
route(DLGURI);
if(t_check_trans()) {
t_relay();
} else
sl_send_reply("403", "Forbidden");
exit;
}
.....
route[NATDETECT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
add_contact_alias();
setflag(FLT_NATS);
#!endif
return;
route[DLGURI] {
#!ifdef WITH_NAT
if(!isdsturiset()) {
handle_ruri_alias();
#!endif
return;
Can you please check why the ACK is still sent on private IP ?
Thanks
Ali Taher
ACK is now sent correctly to public IP , yet I have another issue with RBT where
it’s still sent to private IP .Yet the call media is sent correctly to the public
IP.
There is something strange , as I hear two short different ringing tones then
complete silence till the called party answer the call and RTP flow normally.
Thanks,
Ali
if (nat_uac_test("19")) {
fix_nated_contact();
Best regards.
Konstantin
Message: 23
Date: Fri, 20 Jul 2018 11:13:42 +0300
From: "Ali Taher" <ataher at vanrise.com <mailto:ataher at vanrise.com> >
To: <sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org> >
Subject: [SR-Users] NATHELPER issue
Message-ID: <070901d42001$939be2b0$bad3a810$@vanrise.com
<mailto:070901d42001$939be2b0$bad3a810$@vanrise.com> >
Content-Type: text/plain; charset="utf-8"
Hello,
Yet , the ACK packet sent from the proxy to the origination's private IP.
The ACK is sent as reply on the following 200 OK sent from the origination :
8m2EJN41BN/6WSIP/2.0 200 OK
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=
X.X.X.X,SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Accept: application/sdp
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE
P-Charging-Vector:
icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX
;orig-ioi=MXXXXXXXXXXXXXX
Content-Type: application/sdp
Contact: <sip:172.16.45.65:5060;transport=UDP>
Content-Length: 268
v=0
s=-
t=0 0
a=sendrecv
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=maxptime:20
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0
Via: SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc
Max-Forwards: 69
Content-Length: 0
route {
route(NATDETECT);
record_route();
if(!mf_process_maxfwd_header("10")) {
exit;
if(has_totag()) {
if(loose_route()) {
route(DLGURI);
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
route(DLGURI);
if(t_check_trans()) {
t_relay();
} else
sl_send_reply("403", "Forbidden");
exit;
.....
route[NATDETECT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
add_contact_alias();
setflag(FLT_NATS);
}
#!endif
return;
route[DLGURI] {
#!ifdef WITH_NAT
if(!isdsturiset()) {
handle_ruri_alias();
#!endif
return;
Can you please check why the ACK is still sent on private IP ?
Thanks
Ali Taher
> Hello,
>
> all the keywords should have corresponding variables, in these cases:
>
> - dst_port should be $Rp (received on port)
>
> - src_port should be $sp
>
> You can look in the pseudo-variables cookbook on kamailio.org/wiki to
> confirm.
>
> Cheers,
> Daniel
>
> On 20.07.18 12:48, Enrico Bandiera wrote:
>
> Hi, anyone how to access keyword variables like dst_port or src_port from
> kemi? (specifically python in our case).
>
> Thanks,
> Enrico.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180723/943845e5/attachment.html>
for some reason the search functionality on the KEMI documentation didn't
find it when searching for "myself"
Thanks
2018-07-23 10:53 GMT+02:00 Enrico Bandiera <enrico.bandiera at cloud.timenet.it
>:
> Hi Daniel, thank you, any hint for the keyword "myself"?
>
> 2018-07-20 14:59 GMT+02:00 Daniel-Constantin Mierla <miconda at gmail.com>:
>
>> Hello,
>>
>> all the keywords should have corresponding variables, in these cases:
>>
>> - dst_port should be $Rp (received on port)
>>
>> - src_port should be $sp
>>
>> You can look in the pseudo-variables cookbook on kamailio.org/wiki to
>> confirm.
>>
>> Cheers,
>> Daniel
>>
>> On 20.07.18 12:48, Enrico Bandiera wrote:
>>
>> Hi, anyone how to access keyword variables like dst_port or src_port from
>> kemi? (specifically python in our case).
>>
>> Thanks,
>> Enrico.
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
>> Kamailio World Conference -- www.kamailioworld.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180723/f5cc5959/attachment.html>
Hi Konstantin,
INVITE:
Record-Route: <sip:X.X.X.X:5065;lr;ftag=5269152d>
X-AUTH-IP: Y.Y.Y.Y
Max-Forwards: 69
Call-ID: c10f30782b42be0fNjNiNTdjNGM1MWIzNDlhNTM4MzAwYWI0NWY2NGRmOTM.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
Content-Length: 434
v=0
t=0 0
a=rtpmap:101 telephone-event/8000
a=sendrecv
a=x-rtp-session-id:0CDBBC1F22564B72BDA5AD0B07C2AECF
200 OK
200 OK
Record-Route: <sip:X.X.X.X:5065;lr;ftag=5269152d>
Call-ID: c10f30782b42be0fNjNiNTdjNGM1MWIzNDlhNTM4MzAwYWI0NWY2NGRmOTM.
CSeq: 1 INVITE
User-Agent: FIKAR
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER,
NOTIFY, PUBLISH, SUBSCRIBE
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 200
v=0
t=0 0
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
Regards,
Ali
Hello Ali,
Check you SDP bodies in those messages, if you still have there private IPs then
you need to solve usual NAT traversal task in your media software (not proxy).
Kamailio doesn't process media as you know.
Of course you can try fix_nated_sdp function from nathelper module but it will not
work for symmetric NAT because you fix SDP with public IP toward proxy but not
toward UA.
Your media software or hardware should support STUN or ICE protocols to work
correctly via NAT.
Best regards.
ACK is now sent correctly to public IP , yet I have another issue with RBT where
it’s still sent to private IP .Yet the call media is sent correctly to the public
IP.
There is something strange , as I hear two short different ringing tones then
complete silence till the called party answer the call and RTP flow normally.
Thanks,
Ali
Hello Ali,
if (nat_uac_test("19")) {
fix_nated_contact();
Best regards.
Konstantin
Message: 23
Date: Fri, 20 Jul 2018 11:13:42 +0300
From: "Ali Taher" <ataher at vanrise.com <file://e.mail.ru/compose/%3fmailto=mailto
%253aataher at vanrise.com> >
To: <sr-users at lists.sip-router.org <file://e.mail.ru/compose/%3fmailto=mailto
%253asr%252dusers at lists.sip%252drouter.org> >
Subject: [SR-Users] NATHELPER issue
Message-ID: <070901d42001$939be2b0$bad3a810$@vanrise.com <file://e.mail.ru/compose/
%3fmailto=mailto%253a070901d42001$939be2b0$bad3a810$@vanrise.com> >
Content-Type: text/plain; charset="utf-8"
Hello,
I'm using Kamailio 4.2 as proxy with nathelper enabled.
Yet , the ACK packet sent from the proxy to the origination's private IP.
The ACK is sent as reply on the following 200 OK sent from the origination :
8m2EJN41BN/6WSIP/2.0 200 OK
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=
X.X.X.X,SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Accept: application/sdp
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE
P-Charging-Vector:
icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX
;orig-ioi=MXXXXXXXXXXXXXX
Content-Type: application/sdp
Contact: <sip:172.16.45.65:5060;transport=UDP>
Content-Length: 268
v=0
s=-
a=sendrecv
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=maxptime:20
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0
Via: SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc
Max-Forwards: 69
Content-Length: 0
route {
route(NATDETECT);
record_route();
if(!mf_process_maxfwd_header("10")) {
exit;
if(has_totag()) {
if(loose_route()) {
route(DLGURI);
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
route(DLGURI);
if(t_check_trans()) {
t_relay();
} else
sl_send_reply("403", "Forbidden");
exit;
}
.....
route[NATDETECT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
add_contact_alias();
setflag(FLT_NATS);
#!endif
return;
route[DLGURI] {
#!ifdef WITH_NAT
if(!isdsturiset()) {
handle_ruri_alias();
#!endif
return;
Can you please check why the ACK is still sent on private IP ?
Thanks
Ali Taher
С уважением,
Константин Поляков.
Hi Konstantin,
INVITE:
Record-Route: <sip:X.X.X.X:5065;lr;ftag=5269152d>
X-AUTH-IP: Y.Y.Y.Y
Max-Forwards: 69
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
Content-Length: 434
v=0
t=0 0
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
a=sendrecv
a=x-rtp-session-id:0CDBBC1F22564B72BDA5AD0B07C2AECF
200 OK
200 OK
Record-Route: <sip:X.X.X.X:5065;lr;ftag=5269152d>
Call-ID: c10f30782b42be0fNjNiNTdjNGM1MWIzNDlhNTM4MzAwYWI0NWY2NGRmOTM.
CSeq: 1 INVITE
User-Agent: FIKAR
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER,
NOTIFY, PUBLISH, SUBSCRIBE
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 200
v=0
s=FIKAR
t=0 0
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
where:
X.X.X.X is Kamailio IP
Ali
Hello Ali,
Check you SDP bodies in those messages, if you still have there private IPs then
you need to solve usual NAT traversal task in your media software (not proxy).
Kamailio doesn't process media as you know.
Of course you can try fix_nated_sdp function from nathelper module but it will not
work for symmetric NAT because you fix SDP with public IP toward proxy but not
toward UA.
Your media software or hardware should support STUN or ICE protocols to work
correctly via NAT.
Best regards.
ACK is now sent correctly to public IP , yet I have another issue with RBT where
it’s still sent to private IP .Yet the call media is sent correctly to the public
IP.
There is something strange , as I hear two short different ringing tones then
complete silence till the called party answer the call and RTP flow normally.
Thanks,
Ali
Hello Ali,
if (nat_uac_test("19")) {
fix_nated_contact();
Best regards.
Konstantin
Message: 23
Date: Fri, 20 Jul 2018 11:13:42 +0300
From: "Ali Taher" <ataher at vanrise.com <file://e.mail.ru/compose/%3fmailto=mailto
%253aataher at vanrise.com> >
To: <sr-users at lists.sip-router.org <file://e.mail.ru/compose/%3fmailto=mailto
%253asr%252dusers at lists.sip%252drouter.org> >
Subject: [SR-Users] NATHELPER issue
Message-ID: <070901d42001$939be2b0$bad3a810$@vanrise.com <file://e.mail.ru/compose/
%3fmailto=mailto%253a070901d42001$939be2b0$bad3a810$@vanrise.com> >
Content-Type: text/plain; charset="utf-8"
Hello,
Yet , the ACK packet sent from the proxy to the origination's private IP.
The ACK is sent as reply on the following 200 OK sent from the origination :
8m2EJN41BN/6WSIP/2.0 200 OK
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=
X.X.X.X,SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Accept: application/sdp
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE
P-Charging-Vector:
icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX
;orig-ioi=MXXXXXXXXXXXXXX
Content-Type: application/sdp
Contact: <sip:172.16.45.65:5060;transport=UDP>
Content-Length: 268
v=0
s=-
t=0 0
a=sendrecv
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=maxptime:20
Following is the header of the sent ACK packet:
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0
Via: SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc
Max-Forwards: 69
Content-Length: 0
route {
route(NATDETECT);
record_route();
if(!mf_process_maxfwd_header("10")) {
exit;
if(loose_route()) {
route(DLGURI);
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
route(DLGURI);
if(t_check_trans()) {
t_relay();
} else
sl_send_reply("403", "Forbidden");
exit;
.....
route[NATDETECT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
add_contact_alias();
setflag(FLT_NATS);
#!endif
return;
route[DLGURI] {
#!ifdef WITH_NAT
if(!isdsturiset()) {
handle_ruri_alias();
#!endif
return;
Can you please check why the ACK is still sent on private IP ?
Thanks
Ali Taher
С уважением,
Константин Поляков.
There are more scenarios you need to keep in mind. A simple one is if
lookup() fails (not registered if you are running a registrar on this
instance) to just change the domain in the R-URI and relay it there:
if(!lookup("location"))
{
$rd="xmpp.example.org";
route(RELAY);
exit;
}
Be sure to use a different failure route (or add some logic to the if to
avoid infinite loops).
Hello,
I'm trying to build a async http call to a external server and was
trying to use the $http_query_id var to identity the http call in the
response route.
route[ACC_HTTP_REPLY] {
xlog("L_WARN", "route[ACC_HTTP_REPLY]: received reply for query
$http_query_id\n");
}
Thanks,
Jan
> Hello,
>
> I'm trying to build a async http call to a external server and was trying to
> use the $http_query_id var to identity the http call in the response route.
>
> But when i try the following:
>
> $http_req(suspend) = 0;
> $http_req(hdr) = "Content-Type: application/json";
> $http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}";
> http_async_query("http://10.10.10.1/", "ACC_HTTP_REPLY");
> xlog("L_WARN", "ACC Query id: $http_query_id");
>
>
> route[ACC_HTTP_REPLY] {
> xlog("L_WARN", "route[ACC_HTTP_REPLY]: received reply for query
> $http_query_id\n");
> }
>
> I get errors in the kamailio log file :
>
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: <core>
> [core/pvapi.c:903]: pv_parse_spec2(): error searching pvar "http_query_id"
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: <core>
> [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [d/100] in
> [$http_query_id] at [13 (0)]
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: xlog [xlog.c:513]:
> xdbg_fixup_helper(): wrong format[route[ACC_HTTP_REPLY]: received reply for
> query $http_query_id#012]
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: <core>
> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at
> cfg://etc/kamailio/kamailio.cfg:5308
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: <core>
> [core/pvapi.c:903]: pv_parse_spec2(): error searching pvar "http_query_id"
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: <core>
> [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [)/41] in
> [$(http_query_id)] at [15 (1)]
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: xlog [xlog.c:513]:
> xdbg_fixup_helper(): wrong format[route[ACC_HTTP_REPLY]: received reply for
> query $(http_query_id)#012]
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: <core>
> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at
> cfg://etc/kamailio/kamailio.cfg:5308
>
>
> Should i escape the var $http_query_id in some way?
>
> I'm running kamailio 5.1.3.
>
>
> Thanks,
>
> Jan
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Hi,
> Hello,
>
> I'm trying to build a async http call to a external server and was trying to
> use the $http_query_id var to identity the http call in the response route.
>
> But when i try the following:
>
> $http_req(suspend) = 0;
> $http_req(hdr) = "Content-Type: application/json";
> $http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}";
> http_async_query("http://10.10.10.1/", "ACC_HTTP_REPLY");
> xlog("L_WARN", "ACC Query id: $http_query_id");
>
>
> route[ACC_HTTP_REPLY] {
> xlog("L_WARN", "route[ACC_HTTP_REPLY]: received reply for query
> $http_query_id\n");
> }
>
> I get errors in the kamailio log file :
>
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: <core>
> [core/pvapi.c:903]: pv_parse_spec2(): error searching pvar "http_query_id"
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: <core>
> [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [d/100] in
> [$http_query_id] at [13 (0)]
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: xlog [xlog.c:513]:
> xdbg_fixup_helper(): wrong format[route[ACC_HTTP_REPLY]: received reply for
> query $http_query_id#012]
> Jul 23 11:34:14 sip03 /usr/sbin/kamailio[24645]: ERROR: <core>
> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at
> cfg://etc/kamailio/kamailio.cfg:5308
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: <core>
> [core/pvapi.c:903]: pv_parse_spec2(): error searching pvar "http_query_id"
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: <core>
> [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [)/41] in
> [$(http_query_id)] at [15 (1)]
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: xlog [xlog.c:513]:
> xdbg_fixup_helper(): wrong format[route[ACC_HTTP_REPLY]: received reply for
> query $(http_query_id)#012]
> Jul 23 11:36:07 sip03 /usr/sbin/kamailio[24906]: ERROR: <core>
> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at
> cfg://etc/kamailio/kamailio.cfg:5308
>
>
> Should i escape the var $http_query_id in some way?
>
> I'm running kamailio 5.1.3.
>
>
> Thanks,
>
> Jan
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Alex,
Jan
Hello there!
Using kamailio 5.0.1 and msilo module for storing offline messages I
noticed that sometimes, especially when a big number of messages dumping
for one user, some of them can arrive to receiver in wrong order.
Lets say we have 20 messages and the order of receiving could be next
1..18..17..19..20.
That could be a reason of that ?
Thanks,
Philip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180723/07d784fd/attachment.html>
Hello Henning,
Thanks for your reply.
So how you think the concurrency would be now? (Considering 16GB of RAM
and 4 cores of Xeon-Silver 4114) I just need a estimated number by an
expert like you.
--
*Regards,*
*Abtin Mir*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180723/6ec9ee9f/attachment.html>
What I can’t understand is why media packets are sent correctly to the public IP ,
while early media (RBT) are sent on private.
Regards,
Ali
Best regrads
Hi Konstantin,
INVITE:
Record-Route: <sip:X.X.X.X:5065;lr;ftag=5269152d>
X-AUTH-IP: Y.Y.Y.Y
Max-Forwards: 69
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
Content-Length: 434
v=0
t=0 0
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
a=sendrecv
a=x-rtp-session-id:0CDBBC1F22564B72BDA5AD0B07C2AECF
200 OK
200 OK
Record-Route: <sip:X.X.X.X:5065;lr;ftag=5269152d>
Call-ID: c10f30782b42be0fNjNiNTdjNGM1MWIzNDlhNTM4MzAwYWI0NWY2NGRmOTM.
CSeq: 1 INVITE
User-Agent: FIKAR
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER,
NOTIFY, PUBLISH, SUBSCRIBE
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 200
v=0
s=FIKAR
t=0 0
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
where:
X.X.X.X is Kamailio IP
Ali
Hello Ali,
Check you SDP bodies in those messages, if you still have there private IPs then
you need to solve usual NAT traversal task in your media software (not proxy).
Kamailio doesn't process media as you know.
Of course you can try fix_nated_sdp function from nathelper module but it will not
work for symmetric NAT because you fix SDP with public IP toward proxy but not
toward UA.
Your media software or hardware should support STUN or ICE protocols to work
correctly via NAT.
Best regards.
ACK is now sent correctly to public IP , yet I have another issue with RBT where
it’s still sent to private IP .Yet the call media is sent correctly to the public
IP.
There is something strange , as I hear two short different ringing tones then
complete silence till the called party answer the call and RTP flow normally.
Thanks,
Ali
Hello Ali,
if (nat_uac_test("19")) {
fix_nated_contact();
Best regards.
Konstantin
Message: 23
Date: Fri, 20 Jul 2018 11:13:42 +0300
From: "Ali Taher" <ataher at vanrise.com <mailto:ataher at vanrise.com> >
To: <sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org> >
Subject: [SR-Users] NATHELPER issue
Message-ID: <070901d42001$939be2b0$bad3a810$@vanrise.com
<mailto:070901d42001$939be2b0$bad3a810$@vanrise.com> >
Content-Type: text/plain; charset="utf-8"
Hello,
Yet , the ACK packet sent from the proxy to the origination's private IP.
The ACK is sent as reply on the following 200 OK sent from the origination :
8m2EJN41BN/6WSIP/2.0 200 OK
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=
X.X.X.X,SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Accept: application/sdp
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE
P-Charging-Vector:
icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX
;orig-ioi=MXXXXXXXXXXXXXX
Content-Type: application/sdp
Contact: <sip:172.16.45.65:5060;transport=UDP>
Content-Length: 268
v=0
s=-
t=0 0
a=sendrecv
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=maxptime:20
Following is the header of the sent ACK packet:
Record-Route: <sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze>
Via: SIP/2.0/UDP
X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0
Via: SIP/2.0/UDP
X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc
Max-Forwards: 69
Content-Length: 0
route {
route(NATDETECT);
record_route();
if(!mf_process_maxfwd_header("10")) {
exit;
if(loose_route()) {
route(DLGURI);
if(!t_relay())
sl_reply_error();
exit;
} else {
if(is_method("ACK")) {
route(DLGURI);
if(t_check_trans()) {
t_relay();
} else
sl_send_reply("403", "Forbidden");
exit;
.....
route[NATDETECT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test("19")) {
if (is_method("REGISTER")) {
fix_nated_register();
} else {
add_contact_alias();
setflag(FLT_NATS);
#!endif
return;
route[DLGURI] {
#!ifdef WITH_NAT
if(!isdsturiset()) {
handle_ruri_alias();
#!endif
return;
Can you please check why the ACK is still sent on private IP ?
Thanks
Ali Taher
С уважением,
Константин Поляков.
С уважением,
Константин Поляков.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180723/80a63dfe/attachment.html>
Hi Jan,
I have fixed the error in the docs in master, 5.0 and 5.1 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
Hello Sergey!
Hope you are doing fine!
Dependencies Resolved
===================================================================================
======================================================
Package Arch
Version
Repository Size
===================================================================================
======================================================
Installing:
kamailio x86_64
5.0.7-3.el7.centos
home_kamailio_v5.0.x-rpms 5.1 M
Installing for dependencies:
kamailio-ims x86_64
5.0.7-3.el7.centos
home_kamailio_v5.0.x-rpms 1.2 M
Transaction Summary
===================================================================================
======================================================
Install 1 Package (+1 Dependent package)
Hello Abtin,
again - this is hard to say. I know from a past setup in an carrier grade
environment that we sized it to have 3000-6000 concurrent calls per proxy. The
server were not much under load. They handled also more concurrent calls
without any issues in certain fail-over situations. And this was several years
ago, which slower hardware.
Best regards,
Henning
> On Sun, Jul 22, 2018 at 12:23 PM, Henning Westerholt <hw at kamailio.org>
>
> wrote:
> > Am Freitag, 6. Juli 2018, 09:52:16 CEST schrieb Abtin Mir:
> > > As a proxy server , How many concurrent calls can be processed by a
> > > Kamailio which is installed on a VM with 4 cores and 16GB of RAM?
> > >
> > > Your answer is much appreciated.
> >
> > Hello Abtin,
> >
> > this depends a lot on your configuration, if you use a lot of database
> > requests, if the database is local or remote, the database performance,
> > the
> > amount of logging you are doing locally, do you handle RTP as well and so
> > on.
> >
> > If your server is not exceedingly using a lot of this mentioned IO
> > operations,
> > you should be able to handle many thousands concurrent calls with one
> > server.
> >
> > But to have a proper answer for your certain scenario, you need to test
> > it.
> >
> > 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
--
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
Hi,
Example:
entry: 1
size: 1
slot: {
item: {
name: cfg.env
[kamailio]
socket = /myqdata/mysiprdb/data/mysiprdb.sock
user = siprouter
password = ##########
default-character-set = utf8
Cordialement.
Patrick GINHOUX
Federico
> Am Montag, 23. Juli 2018, 13:52:32 CEST schrieb jenus at cyberchaos.nl:
> > Thanks that works, the docs are referring to $http_query_id
> > (
> https://kamailio.org/docs/modules/5.1.x/modules/http_async_client.html#http
> > _async_client.f.http_async_query)
>
> Hi Jan,
>
> I have fixed the error in the docs in master, 5.0 and 5.1 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
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180724/af256d7f/attachment.html>
Hi,
I am using Kamailio 5.1.1 with DMQ with the following config (relevant parts) on 2
nodes.
Node A:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.a.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Node B:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.b.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Now, in order to test it, I only sent a few calls only on node A.
KDMQ messages flowed to node B and dialog state replicated. But I noticed, node B
was randomly sending one of the KDMQ dialog messages back to A and receiving a 500
"Server Internal Error" back from node A... (for a subset of those calls, not all).
Why would this be the case when the nodes correctly recognize their local status by
the "local: 1" set as seen from dmq.list_nodes
Thanks,
Pat.
Hello Patrick
Rebuild is trigered.
Hi Pat,
Are you able to share with us one of the looped messages, both as it is
received by B and then as it is sent back to A?
Cheers,
Charles
> Hi,
>
> I am using Kamailio 5.1.1 with DMQ with the following config (relevant
> parts) on 2 nodes.
>
> Node A:
> modparam("dialog", "enable_dmq", 1)
> modparam("dmq", "server_address", "sip:no.de.a.ip:5060")
> modparam("dmq", "notification_address", "sip:myvoip.local")
> modparam("dmq", "multi_notify", 1)
>
>
> Node B:
> modparam("dialog", "enable_dmq", 1)
> modparam("dmq", "server_address", "sip:no.de.b.ip:5060")
> modparam("dmq", "notification_address", "sip:myvoip.local")
> modparam("dmq", "multi_notify", 1)
>
> "myvoip.local" is a DNS A record that resolves to both the IPs of A and B.
>
> I have the dmq_handle_message(); called if method is of type "KDMQ" in the
> request_route.
>
> Now, in order to test it, I only sent a few calls only on node A.
> KDMQ messages flowed to node B and dialog state replicated. But I noticed,
> node B was randomly sending one of the KDMQ dialog messages back to A and
> receiving a 500 "Server Internal Error" back from node A... (for a subset
> of those calls, not all).
>
> Why would this be the case when the nodes correctly recognize their local
> status by the "local: 1" set as seen from dmq.list_nodes
>
> Anyone else experienced this? What could I be doing wrong?
>
>
> Thanks,
> Pat.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180724/31454bcc/attachment.html>
Hi Charles,
I couldn't spot the looping this time (as it is intermittent), but here is the
trace of messages that may indicate something weird or unexpected happening with
DMQ:
The following message came from Node B to A (which should never have originated
because only A is receiving calls). I am assuming KDMQ will only flow from A --> B
followed by their acks from B.
{"action":3,"h_entry":3521,"h_id":23807,"state":5}
And Node A correctly responded with a 500 because it was not expecting this
Owais
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Charles Chance
<charles.chance at sipcentric.com>
Sent: Tuesday, July 24, 2018 3:46 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the
source
Hi Pat,
Are you able to share with us one of the looped messages, both as it is received by
B and then as it is sent back to A?
Cheers,
Charles
I am using Kamailio 5.1.1 with DMQ with the following config (relevant parts) on 2
nodes.
Node A:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.a.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Node B:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.b.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Now, in order to test it, I only sent a few calls only on node A.
KDMQ messages flowed to node B and dialog state replicated. But I noticed, node B
was randomly sending one of the KDMQ dialog messages back to A and receiving a 500
"Server Internal Error" back from node A... (for a subset of those calls, not all).
Why would this be the case when the nodes correctly recognize their local status by
the "local: 1" set as seen from dmq.list_nodes
Thanks,
Pat.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham
Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180724/e00ef6e4/attachment.html>
Hi
Can we have sipdump only log SIP messages and not KDMQ?
Thanks,
Pat.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180724/a6d98cfc/attachment.html>
Hello Sergey!
Thanks for your attention!
Kind regards,
Patrick Wakano
<HE1PR0201MB1579B236AA2A12E0A319D243FC550@HE1PR0201MB1579.eurprd02.prod.outlook.com
>
Message-ID:
<HE1PR0201MB15790EAE14D17C1D0185DD3BFC540@HE1PR0201MB1579.eurprd02.prod.outlook.com
>
KDMQ messages flow in the wrong direction i.e. (Node B to A) only for dialog state:
5 updates.
And this happens after the actual KDMQ from A to B has already been ack'd with a
200 OK.
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Patrick Murphy
<patmurph7 at outlook.com>
Sent: Tuesday, July 24, 2018 4:43:28 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the
source
Hi Charles,
I couldn't spot the looping this time (as it is intermittent), but here is the
trace of messages that may indicate something weird or unexpected happening with
DMQ:
The following message came from Node B to A (which should never have originated
because only A is receiving calls). I am assuming KDMQ will only flow from A --> B
followed by their acks from B.
{"action":3,"h_entry":3521,"h_id":23807,"state":5}
And Node A correctly responded with a 500 because it was not expecting this
Regards,
Owais
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Charles Chance
<charles.chance at sipcentric.com>
Sent: Tuesday, July 24, 2018 3:46 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the
source
Hi Pat,
In your config, do you exit immediately after handle_dmq_message()?
Are you able to share with us one of the looped messages, both as it is received by
B and then as it is sent back to A?
Cheers,
Charles
I am using Kamailio 5.1.1 with DMQ with the following config (relevant parts) on 2
nodes.
Node A:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.a.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Node B:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.b.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Now, in order to test it, I only sent a few calls only on node A.
KDMQ messages flowed to node B and dialog state replicated. But I noticed, node B
was randomly sending one of the KDMQ dialog messages back to A and receiving a 500
"Server Internal Error" back from node A... (for a subset of those calls, not all).
Why would this be the case when the nodes correctly recognize their local status by
the "local: 1" set as seen from dmq.list_nodes
Thanks,
Pat.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham
Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180725/85ca6b2e/attachment.html>
Hi,
I have just pushed some changes to master - one of these allows startup to
continue even if initial node resolution fails.
There are some other improvements, too, which I have been planning to push
for some time and which should also help in your situation.
Can you try again with these changes applied and let me know the outcome?
Cheers,
Charles
--
*Charles Chance*
Managing Director
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180725/cfe9ecc8/attachment.html>
Rebuild is finished
https://prnt.sc/kauq7y
But time stamp of files inside root repo directory is not updated
And updated inside x86_64
https://download.opensuse.org/repositories/home:/kamailio:/v5.0.x-
rpms/CentOS_7/x86_64/
rm -Rf /var/cache/yum/*
http://178.79.181.125/Maruzzelli_FreeSWITCH_OpenSIPS_WebRTC_Pure_SIP_Video_Call_Con
ferencing_and_Chat_ClueCon_2018_Chicago.pdf
or, shorter,
http://178.79.181.125/Maruzzelli_ClueCon_2018.pdf
FreeSWITCH and OpenSIPS for a Pure SIP Video, Chat and Conference Service
-giovanni
--
Sincerely,
Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180725/aab654c0/attachment.html>
Hello Giovanni,
please use this mailing list (sr-users) only for discussion of Kamailio and
related projects. For discussion about the mentioned other projects please use
their lists.
We have also a dedicated business list, which you can use for marketing if
your solution, service, presentation etc.. its somehow related to Kamailio.
Henning Westerholt
Hello Henning,
-giovanni
On Wed, Jul 25, 2018, 13:46 Henning Westerholt <hw at kamailio.org> wrote:
> Am Mittwoch, 25. Juli 2018, 18:29:47 CEST schrieb Giovanni Maruzzelli:
> > just finished presenting about scaling videoconferencing, chat and
> > moderation/direction controls in SIP, with web clients, deskphones,
> > smartphone apps, server push (google fcm) via cordova and SIP.js
> > [..]
>
> Hello Giovanni,
>
> please use this mailing list (sr-users) only for discussion of Kamailio
> and
> related projects. For discussion about the mentioned other projects please
> use
> their lists.
>
> We have also a dedicated business list, which you can use for marketing if
> your solution, service, presentation etc.. its somehow related to Kamailio.
>
> Thank you and have fun at the CluCon,
>
> Henning Westerholt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180725/e50f5f71/attachment.html>
Very interessing...
Regards
---
I'm SoCIaL, MayBe
Hello Giovanni,
I understand your reasoning, and your e-mail had been indeed (phrased a bit
more general) a good fit for the business list. We want to keep sr-users free
from marketing for consulting services and other commercial offers, this was
my main motivation here.
If you like you can also add a short information about your services in our
business directory at: https://www.kamailio.org/w/business-directory/
Best regards,
Henning Westerholt
Hello Sergey!
I did a yum clean all, the rm -Rf /var/cache/yum/* and still the problem
persist.....
Now I noticed the modified date of the packages was updated, but anyway,
there is something wrong with this repo and so yum does not allow me to
install the Kamailio packages....
I wonder what could have happened since July 10th when the repo was working
fine...
Hi Sergey!
You mean a github ticket?
Patrick Wakano
<HE1PR0201MB1579B236AA2A12E0A319D243FC550@HE1PR0201MB1579.eurprd02.prod.outlook.com
>
<HE1PR0201MB15790EAE14D17C1D0185DD3BFC540@HE1PR0201MB1579.eurprd02.prod.outlook.com
>
Message-ID: <CAOvxgzBvCEMpY=k6o0-dRxtgderCRxovXMhtDKg79jWaFjHiBQ@mail.gmail.com>
Hello,
I have just pushed a fix to master branch and also backported to 5.1.
https://github.com/kamailio/kamailio/commit/a84a3ea618f0e602a8892c37fce7f4e72ab7371
c
https://github.com/kamailio/kamailio/commit/e2eda1376def48ab1c78db7a766c1811d19205b
e
Cheers,
Charles
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180726/3e2ca2a6/attachment.html>
yes
> Hi Sergey!
> You mean a github ticket?
>
> Patrick Wakano
>
>
> On 26 July 2018 at 17:31, Sergey Safarov <s.safarov at gmail.com> wrote:
>
>> I can confirm issue.
>> Could you create ticket for this issue.
>> I look this
>>
>> чт, 26 июл. 2018 г. в 2:12, Patrick Wakano <pwakano at gmail.com>:
>>
>>> Hello Sergey!
>>>
>>> I did a yum clean all, the rm -Rf /var/cache/yum/* and still the problem
>>> persist.....
>>> Now I noticed the modified date of the packages was updated, but anyway,
>>> there is something wrong with this repo and so yum does not allow me to
>>> install the Kamailio packages....
>>> I wonder what could have happened since July 10th when the repo was
>>> working fine...
>>>
>>> Thanks for you time!
>>> Kind regards,
>>> Patrick Wakano
>>>
>>>
>>>
>>> On 25 July 2018 at 23:38, Sergey Safarov <s.safarov at gmail.com> wrote:
>>>
>>>> I "trigger rebuild" and get this results
>>>>
>>>> https://build.opensuse.org/package/live_build_log/home:kamailio:v5.0.x-
rpms/kamailio50/CentOS_7/x86_64
>>>>
>>>> Rebuild is finished
>>>> https://prnt.sc/kauq7y
>>>> But time stamp of files inside root repo directory is not updated
>>>> And updated inside x86_64
>>>>
>>>> https://download.opensuse.org/repositories/home:/kamailio:/v5.0.x-
rpms/CentOS_7/x86_64/
>>>>
>>>> And inside repodata
>>>>
>>>> https://download.opensuse.org/repositories/home:/kamailio:/v5.0.x-
rpms/CentOS_7/repodata/
>>>>
>>>> Could you force delete content of /var/cache/yum
>>>>
>>>> rm -Rf /var/cache/yum/*
>>>>
>>>> And then try again
>>>> Sergey
>>>>
>>>> ср, 25 июл. 2018 г. в 5:05, Patrick Wakano <pwakano at gmail.com>:
>>>>
>>>>> Hello Sergey!
>>>>> Thanks for your attention!
>>>>>
>>>>> I have just tried and it is still not working.... Same error...
>>>>> I noticed the files in here
>>>>> http://download.opensuse.org/repositories/home:/kamailio:/v5.0.x-
rpms/CentOS_7/x86_64/
>>>>> didn't get the modified date changed.... maybe the rebuild didn't work...
>>>>>
>>>>> Kind regards,
>>>>> Patrick Wakano
>>>>>
>>>>>
>>>>>
>>>>> On 25 July 2018 at 01:23, Sergey Safarov <s.safarov at gmail.com> wrote:
>>>>>
>>>>>> Hello Patrick
>>>>>> Rebuild is trigered.
>>>>>>
>>>>>>
>>>>>> вт, 24 июл. 2018 г. в 7:56, Patrick Wakano <pwakano at gmail.com>:
>>>>>>
>>>>>>> Hello Sergey!
>>>>>>> Hope you are doing fine!
>>>>>>>
>>>>>>> I am having this same issue again today....
>>>>>>> Would you be able to check that?
>>>>>>>
>>>>>>> Thanks very much!
>>>>>>> Kind regards,
>>>>>>> Patrick Wakano
>>>>>>>
>>>>>>> # yum install kamailio
>>>>>>> Loaded plugins: fastestmirror
>>>>>>> Loading mirror speeds from cached hostfile
>>>>>>> * base: centos.mirror.serversaustralia.com.au
>>>>>>> * epel: mirror.intergrid.com.au
>>>>>>> * extras: centos.melbourneitmirror.net
>>>>>>> * remi: remi.conetix.com.au
>>>>>>> * remi-safe: remi.conetix.com.au
>>>>>>> * updates: mirror.intergrid.com.au
>>>>>>> Resolving Dependencies
>>>>>>> --> Running transaction check
>>>>>>> ---> Package kamailio.x86_64 0:5.0.7-3.el7.centos will be installed
>>>>>>> --> Processing Dependency: libkamailio_ims.so.0()(64bit) for
>>>>>>> package: kamailio-5.0.7-3.el7.centos.x86_64
>>>>>>> --> Running transaction check
>>>>>>> ---> Package kamailio-ims.x86_64 0:5.0.7-3.el7.centos will be
>>>>>>> installed
>>>>>>> --> Finished Dependency Resolution
>>>>>>>
>>>>>>> Dependencies Resolved
>>>>>>>
>>>>>>>
>>>>>>>
===================================================================================
======================================================
>>>>>>> Package Arch
>>>>>>> Version
>>>>>>> Repository Size
>>>>>>>
>>>>>>>
===================================================================================
======================================================
>>>>>>> Installing:
>>>>>>> kamailio x86_64
>>>>>>> 5.0.7-3.el7.centos
>>>>>>> home_kamailio_v5.0.x-rpms 5.1 M
>>>>>>> Installing for dependencies:
>>>>>>> kamailio-ims x86_64
>>>>>>> 5.0.7-3.el7.centos
>>>>>>> home_kamailio_v5.0.x-rpms 1.2 M
>>>>>>>
>>>>>>> Transaction Summary
>>>>>>>
>>>>>>>
===================================================================================
======================================================
>>>>>>> Install 1 Package (+1 Dependent package)
>>>>>>>
>>>>>>> Total download size: 6.4 M
>>>>>>> Installed size: 29 M
>>>>>>> Is this ok [y/d/N]: y
>>>>>>>
>>>>>>> Downloading packages:
>>>>>>> Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
>>>>>>> kamailio-5.0.7-3.el7.centos.x8
>>>>>>> FAILED
>>>>>>>
>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-
rpms/CentOS_7/x86_64/kamailio-5.0.7-3.el7.centos.x86_64.rpm:
>>>>>>> [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable
>>>>>>> Trying other mirror.
>>>>>>> kamailio-ims-5.0.7-3.el7.cento
>>>>>>> FAILED ]
>>>>>>> 218 kB/s | 710 kB 00:00:26 ETA
>>>>>>>
>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-
rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-3.el7.centos.x86_64.rpm:
>>>>>>> [Errno -1] Package does not match intended download. Suggestion: run yum
>>>>>>> --enablerepo=home_kamailio_v5.0.x-rpms clean metadata
>>>>>>> Trying other mirror.
>>>>>>>
>>>>>>>
>>>>>>> Error downloading packages:
>>>>>>> kamailio-5.0.7-3.el7.centos.x86_64: [Errno 256] No more mirrors to
>>>>>>> try.
>>>>>>> kamailio-ims-5.0.7-3.el7.centos.x86_64: [Errno 256] No more
>>>>>>> mirrors to try.
>>>>>>>
>>>>>>>
>>>>>>> On 10 July 2018 at 14:49, Patrick Wakano <pwakano at gmail.com> wrote:
>>>>>>>
>>>>>>>> Thank you Sergey!!
>>>>>>>> Installation was successful now!!
>>>>>>>>
>>>>>>>> Cheers!
>>>>>>>> Patrick Wakano
>>>>>>>>
>>>>>>>> On 10 July 2018 at 14:24, Sergey Safarov <s.safarov at gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I was trigered rpm rebuild.
>>>>>>>>> Please check after 40 min.
>>>>>>>>>
>>>>>>>>> вт, 10 июля 2018 г., 6:57 Patrick Wakano <pwakano at gmail.com>:
>>>>>>>>>
>>>>>>>>>> Hello list,
>>>>>>>>>> Hope you all doing fine!
>>>>>>>>>>
>>>>>>>>>> I've been trying to install Kamailio packages from the opensuse
>>>>>>>>>> repo (as per https://www.kamailio.org/wiki/packages/rpms) but
>>>>>>>>>> the installation is failing with this message:
>>>>>>>>>> Downloading packages:
>>>>>>>>>> Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
>>>>>>>>>> kamailio-ims-5.0.7-1.el7.cento
>>>>>>>>>> FAILED
>>>>>>>>>>
>>>>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-
rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-1.el7.centos.x86_64.rpm:
>>>>>>>>>> [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable --:--:--
ETA
>>>>>>>>>> Trying other mirror.
>>>>>>>>>> kamailio-5.0.7-1.el7.centos.x8
>>>>>>>>>> FAILED 77%
>>>>>>>>>> [============================================================-
>>>>>>>>>> ] 1.0 MB/s | 4.9 MB 00:00:01 ETA
>>>>>>>>>>
>>>>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-
rpms/CentOS_7/x86_64/kamailio-5.0.7-1.el7.centos.x86_64.rpm:
>>>>>>>>>> [Errno -1] Package does not match intended download. Suggestion: run yum
>>>>>>>>>> --enablerepo=home_kamailio_v5.0.x-rpms clean metadata
>>>>>>>>>> Trying other mirror.
>>>>>>>>>>
>>>>>>>>>> I've successfully installed the 5.0.7 version on Friday (06/07)
>>>>>>>>>> but I've noticed the packages have changed last Saturday
(07/07/2018)....
>>>>>>>>>> Given this error message looks like the repository is broken somehow....
>>>>>>>>>> Is anyone aware of such issue? I haven't tried the 5.1.X repo
>>>>>>>>>> because my script was not migrated to 5.1.X yet....
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Kind regards,
>>>>>>>>>> Patrick Wakano
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>>>>> sr-users at lists.kamailio.org
>>>>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>>>> sr-users at lists.kamailio.org
>>>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>> sr-users at lists.kamailio.org
>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Kamailio (SER) - Users Mailing List
>>>>>> sr-users at lists.kamailio.org
>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Kamailio (SER) - Users Mailing List
>>>>> sr-users at lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180726/32ff2fd9/attachment.html>
Hi Charles,
For example:
```
kamcmd> dmq.list_nodes
{
host: 172.28.1.4
port: 5061
resolved_ip: 172.28.1.4
status: pending
last_notification: 0
local: 0
}
{
host: 172.28.1.6
port: 5061
resolved_ip: 172.28.1.6
status: pending
last_notification: 0
local: 0
}
{
host: 40.100.109.113
port: 5061
resolved_ip: 40.100.109.113
status: pending
last_notification: 0
local: 0
}
{
host: 172.28.1.5
port: 5061
resolved_ip: 172.28.1.5
status: active
last_notification: 0
local: 1
}
```
Non-authoritative answer:
Name: dmq-proxy-service.alex.svc.cluster.local
Address: 172.28.1.7
Name: dmq-proxy-service.alex.svc.cluster.local
Address: 172.28.1.6
Name: dmq-proxy-service.alex.svc.cluster.local
Address: 172.28.1.5
Name: dmq-proxy-service.alex.svc.cluster.local
Address: 172.28.1.4
```
Any clues why that ip is in the dmq nodes list? And why .7 is missing?
Kind regards,
--
Aleksandar Sosic
mail: alex.sosic at evosip.cloud
<HE1PR0201MB1579B236AA2A12E0A319D243FC550@HE1PR0201MB1579.eurprd02.prod.outlook.com
>
<HE1PR0201MB15790EAE14D17C1D0185DD3BFC540@HE1PR0201MB1579.eurprd02.prod.outlook.com
>,
<CAOvxgzBvCEMpY=k6o0-dRxtgderCRxovXMhtDKg79jWaFjHiBQ@mail.gmail.com>
Message-ID:
<HE1PR0201MB15795D6013EAD4383F76DDD1FC2B0@HE1PR0201MB1579.eurprd02.prod.outlook.com
>
Thanks Charles!
Regards
Pat.
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Charles Chance
<charles.chance at sipcentric.com>
Sent: Thursday, July 26, 2018 1:01:22 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the
source
Hello,
I have just pushed a fix to master branch and also backported to 5.1.
https://github.com/kamailio/kamailio/commit/a84a3ea618f0e602a8892c37fce7f4e72ab7371
c
https://github.com/kamailio/kamailio/commit/e2eda1376def48ab1c78db7a766c1811d19205b
e
Cheers,
Charles
KDMQ messages flow in the wrong direction i.e. (Node B to A) only for dialog state:
5 updates.
And this happens after the actual KDMQ from A to B has already been ack'd with a
200 OK.
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org<mailto:sr-users-bounces at
lists.kamailio.org>> on behalf of Patrick Murphy <patmurph7 at
outlook.com<mailto:patmurph7 at outlook.com>>
Sent: Tuesday, July 24, 2018 4:43:28 PM
Hi Charles,
I couldn't spot the looping this time (as it is intermittent), but here is the
trace of messages that may indicate something weird or unexpected happening with
DMQ:
The following message came from Node B to A (which should never have originated
because only A is receiving calls). I am assuming KDMQ will only flow from A --> B
followed by their acks from B.
{"action":3,"h_entry":3521,"h_id":23807,"state":5}
And Node A correctly responded with a 500 because it was not expecting this
Regards,
Owais
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org<mailto:sr-users-bounces at
lists.kamailio.org>> on behalf of Charles Chance <charles.chance at
sipcentric.com<mailto:charles.chance at sipcentric.com>>
Sent: Tuesday, July 24, 2018 3:46 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the
source
Hi Pat,
Are you able to share with us one of the looped messages, both as it is received by
B and then as it is sent back to A?
Cheers,
Charles
I am using Kamailio 5.1.1 with DMQ with the following config (relevant parts) on 2
nodes.
Node A:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.a.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Node B:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.b.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)
Now, in order to test it, I only sent a few calls only on node A.
KDMQ messages flowed to node B and dialog state replicated. But I noticed, node B
was randomly sending one of the KDMQ dialog messages back to A and receiving a 500
"Server Internal Error" back from node A... (for a subset of those calls, not all).
Why would this be the case when the nodes correctly recognize their local status by
the "local: 1" set as seen from dmq.list_nodes
Thanks,
Pat.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham
Science Park, Birmingham B7 4BB.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham
Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180726/adf1ea67/attachment.html>
From charles.chance at sipcentric.com Thu Jul 26 18:14:01 2018
From: charles.chance at sipcentric.com (Charles Chance)
Date: Thu, 26 Jul 2018 17:14:01 +0100
Subject: [SR-Users] DMQ problems
In-Reply-To: <CAA7tqQ5sKzZNQYOMBqiy5WJXqrwVcmDmyiRG-5Jq1-vT-+iLrQ@mail.gmail.com>
References: <CAA7tqQ4_ZoDtFcTt9XedZd3wge1kbLLBz+Yc+KQBaFmQfwe9ag@mail.gmail.com>
<CAOvxgzBtfowonZ_6Pi6UE9DenDcJZzLqh2AEKJrv2yQEdBOTVQ@mail.gmail.com>
<CAA7tqQ5=K312_xxMdgqFp2UHCC3nnEmeBxgkXGRiOQiDjmKg-g@mail.gmail.com>
<CAA7tqQ4RM7qRWoit+3h9kmmheeNLyD1kXP-QUpk9yi1TmDn6Rw@mail.gmail.com>
<CAA7tqQ49NdWTa=_w16eH7b6OiCQuuc7T6JPvDpKFnDm9TJ9oww@mail.gmail.com>
<CAOvxgzBTTG+7TfNOMPEXmLUZiTxi=x6cPKT=+=uwvTNhE_RSug@mail.gmail.com>
<CAA7tqQ71EJ4M7iWbwTfmUZQqYOw3Jbhe4ckpxY6m9i3LGNTHQA@mail.gmail.com>
<CAOvxgzBNsCoq-sJLPGb=iuuebuyaCLq0XQH3OghKTZA7xeB0SA@mail.gmail.com>
<CAA7tqQ7p0NLxDHSKhG+fKs0Aq9kvjwBCTmq-RJVh3X-FEg=CwQ@mail.gmail.com>
<CAA7tqQ6gZ0czqjE_q-HZ_LQ1Ww25KMsMWwwwNYR7ivvar0XCiw@mail.gmail.com>
<CAA7tqQ6AgS8zSGtNJZD077CoLHbxtjk8FDT97uy0cs50mZf68g@mail.gmail.com>
<CAA7tqQ4mV7hLoHvUVEGnmrAU2KkrAaAjhGRs2=ji6POQ1pHQWA@mail.gmail.com>
<CAOvxgzBX+Sm5UFrb=Q4C0-Gy84VL7=EfePx=bZOMACAdVr70_w@mail.gmail.com>
<CAA7tqQ5sKzZNQYOMBqiy5WJXqrwVcmDmyiRG-5Jq1-vT-+iLrQ@mail.gmail.com>
Message-ID: <CAOvxgzDRyf1HQ_ZR=8DDY2Y5irGfYfMn+rJp6znTsS-UPJeQMg@mail.gmail.com>
Hi Aleksandar,
As for the unrecognised IP, I'm afraid I can't answer that one. It must be
coming from somewhere - it's just a case of finding out where. Following
the initial population/depopulation of the node list, DMQ simply repeats
the process over and over until it eventually connects to one or more other
nodes. Are you running on a public cloud somewhere or is it your own,
locally running Kubernetes cluster?
Cheers,
Charles
> Hi Charles,
>
> We're so glad about the improvements you just committed! Thanks!
>
> Now I'm using the latest nightly: 5.2.0~dev6+0~20180726010431.1165+xenial
> Kamailio starts even if the DNS record does not exist at first, that's
> great. I'm having this nodes up and running:
> ```
> proxy-66f79498cc-8ws6d 3/3 Running 0
> 4m 172.28.1.4
> proxy-66f79498cc-b68dd 3/3 Running 0
> 4m 172.28.1.5
> proxy-66f79498cc-lhbxg 3/3 Running 0
> 4m 172.28.1.6
> proxy-66f79498cc-png6p 3/3 Running 0
> 4m 172.28.1.7
> ```
>
> In those 4-5 minutes I've experienced a population and depopulation of
> the dmq nodes.
>
> For example:
> ```
> kamcmd> dmq.list_nodes
> {
> host: 172.28.1.4
> port: 5061
> resolved_ip: 172.28.1.4
> status: pending
> last_notification: 0
> local: 0
> }
> {
> host: 172.28.1.6
> port: 5061
> resolved_ip: 172.28.1.6
> status: pending
> last_notification: 0
> local: 0
> }
> {
> host: 40.100.109.113
> port: 5061
> resolved_ip: 40.100.109.113
> status: pending
> last_notification: 0
> local: 0
> }
> {
> host: 172.28.1.5
> port: 5061
> resolved_ip: 172.28.1.5
> status: active
> last_notification: 0
> local: 1
> }
> ```
>
> And after a few seconds only the loca node itself:
> ```
> kamcmd> dmq.list_nodes
> {
> host: 172.28.1.5
> port: 5061
> resolved_ip: 172.28.1.5
> status: active
> last_notification: 0
> local: 1
> }
> ```
> And then again the 3 nodes and the 40.100.109.113 which is a Microsoft
> IP and I don't know what's doing that IP into my dmq server list.
>
> The DNS record is this:
> ```
> root at proxy-66f79498cc-b68dd:/# nslookup dmq-proxy-service
> Server: 10.96.0.10
> Address: 10.96.0.10#53
>
> Non-authoritative answer:
> Name: dmq-proxy-service.alex.svc.cluster.local
> Address: 172.28.1.7
> Name: dmq-proxy-service.alex.svc.cluster.local
> Address: 172.28.1.6
> Name: dmq-proxy-service.alex.svc.cluster.local
> Address: 172.28.1.5
> Name: dmq-proxy-service.alex.svc.cluster.local
> Address: 172.28.1.4
> ```
> Any clues why that ip is in the dmq nodes list? And why .7 is missing?
> Kind regards,
> --
> Aleksandar Sosic
> mail: alex.sosic at evosip.cloud
>
> On Wed, Jul 25, 2018 at 3:06 PM Charles Chance
> <charles.chance at sipcentric.com> wrote:
> >
> > Hi,
> >
> > I have just pushed some changes to master - one of these allows startup
> to continue even if initial node resolution fails.
> >
> > There are some other improvements, too, which I have been planning to
> push for some time and which should also help in your situation.
> >
> > Can you try again with these changes applied and let me know the outcome?
> >
> > Cheers,
> >
> > Charles
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
*Charles Chance*
Managing Director
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180726/f8325fad/attachment.html>
From pwakano at gmail.com Fri Jul 27 01:25:43 2018
From: pwakano at gmail.com (Patrick Wakano)
Date: Fri, 27 Jul 2018 09:25:43 +1000
Subject: [SR-Users] Kamailio 5.0.X RPM packages/repo broken
In-Reply-To: <CAHtxdDf2hL5Za6B8P52ahRmjBQ3sBijyqvm-CuBi2nb6+hR48A@mail.gmail.com>
References: <CAPu3kNXRuj4cjCDrPmsTPD2Y+p65yEnEQSxkcJ9Rqqgbp7NooQ@mail.gmail.com>
<CAHtxdDe4=CfAUvuMgPgWt11r+QHNwpO60gVZ4b0Ucw-Z0BPPFQ@mail.gmail.com>
<CAPu3kNWgZoVeHSm7FStjkWjnc9KEiSHy-eMSVWQXQbEpjYnEYg@mail.gmail.com>
<CAPu3kNUMGY5Dc0ySDnFTnrT_b6o3JAkobRYAup7tOCj_hWMa2g@mail.gmail.com>
<CAHtxdDcXA3QOX9VR7Nuf=a+BhAhXFm3jRMQpXFN=B-X5dmw8bQ@mail.gmail.com>
<CAPu3kNWcZHwMr0fBqXio0dezL87NAgf2zevxvT3u4TC=moxZSQ@mail.gmail.com>
<CAHtxdDd=8TmeF+qV0bgrQ+CmZS7xnGgb9FopWHdrjDfg+AFyWw@mail.gmail.com>
<CAPu3kNV6K-Cgo__7XFe8yYDEYGnyKD8GJdP3nFRa9XxnH77oOg@mail.gmail.com>
<CAHtxdDdRhXTCHpD3ZcujQCBRovzBh7com9GrDw+19caCz1XHNg@mail.gmail.com>
<CAPu3kNUD_HEzyiHdwbyGey51d+dkEiZY83-NoZ1E39aukGEXQQ@mail.gmail.com>
<CAHtxdDf2hL5Za6B8P52ahRmjBQ3sBijyqvm-CuBi2nb6+hR48A@mail.gmail.com>
Message-ID: <CAPu3kNVdDSNwUcdt+VECPmgytpft_BnNy4+x+WyJqefFhHb=1A@mail.gmail.com>
Ticket created:
https://github.com/kamailio/kamailio/issues/1604
> yes
>
> чт, 26 июл. 2018 г. в 13:29, Patrick Wakano <pwakano at gmail.com>:
>
>> Hi Sergey!
>> You mean a github ticket?
>>
>> Patrick Wakano
>>
>>
>> On 26 July 2018 at 17:31, Sergey Safarov <s.safarov at gmail.com> wrote:
>>
>>> I can confirm issue.
>>> Could you create ticket for this issue.
>>> I look this
>>>
>>> чт, 26 июл. 2018 г. в 2:12, Patrick Wakano <pwakano at gmail.com>:
>>>
>>>> Hello Sergey!
>>>>
>>>> I did a yum clean all, the rm -Rf /var/cache/yum/* and still the
>>>> problem persist.....
>>>> Now I noticed the modified date of the packages was updated, but
>>>> anyway, there is something wrong with this repo and so yum does not allow
>>>> me to install the Kamailio packages....
>>>> I wonder what could have happened since July 10th when the repo was
>>>> working fine...
>>>>
>>>> Thanks for you time!
>>>> Kind regards,
>>>> Patrick Wakano
>>>>
>>>>
>>>>
>>>> On 25 July 2018 at 23:38, Sergey Safarov <s.safarov at gmail.com> wrote:
>>>>
>>>>> I "trigger rebuild" and get this results
>>>>> https://build.opensuse.org/package/live_build_log/home:
>>>>> kamailio:v5.0.x-rpms/kamailio50/CentOS_7/x86_64
>>>>>
>>>>> Rebuild is finished
>>>>> https://prnt.sc/kauq7y
>>>>> But time stamp of files inside root repo directory is not updated
>>>>> And updated inside x86_64
>>>>> https://download.opensuse.org/repositories/home:/kamailio:/
>>>>> v5.0.x-rpms/CentOS_7/x86_64/
>>>>>
>>>>> And inside repodata
>>>>> https://download.opensuse.org/repositories/home:/kamailio:/
>>>>> v5.0.x-rpms/CentOS_7/repodata/
>>>>>
>>>>> Could you force delete content of /var/cache/yum
>>>>>
>>>>> rm -Rf /var/cache/yum/*
>>>>>
>>>>> And then try again
>>>>> Sergey
>>>>>
>>>>> ср, 25 июл. 2018 г. в 5:05, Patrick Wakano <pwakano at gmail.com>:
>>>>>
>>>>>> Hello Sergey!
>>>>>> Thanks for your attention!
>>>>>>
>>>>>> I have just tried and it is still not working.... Same error...
>>>>>> I noticed the files in here http://download.opensuse.org/
>>>>>> repositories/home:/kamailio:/v5.0.x-rpms/CentOS_7/x86_64/ didn't get
>>>>>> the modified date changed.... maybe the rebuild didn't work...
>>>>>>
>>>>>> Kind regards,
>>>>>> Patrick Wakano
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 25 July 2018 at 01:23, Sergey Safarov <s.safarov at gmail.com> wrote:
>>>>>>
>>>>>>> Hello Patrick
>>>>>>> Rebuild is trigered.
>>>>>>>
>>>>>>>
>>>>>>> вт, 24 июл. 2018 г. в 7:56, Patrick Wakano <pwakano at gmail.com>:
>>>>>>>
>>>>>>>> Hello Sergey!
>>>>>>>> Hope you are doing fine!
>>>>>>>>
>>>>>>>> I am having this same issue again today....
>>>>>>>> Would you be able to check that?
>>>>>>>>
>>>>>>>> Thanks very much!
>>>>>>>> Kind regards,
>>>>>>>> Patrick Wakano
>>>>>>>>
>>>>>>>> # yum install kamailio
>>>>>>>> Loaded plugins: fastestmirror
>>>>>>>> Loading mirror speeds from cached hostfile
>>>>>>>> * base: centos.mirror.serversaustralia.com.au
>>>>>>>> * epel: mirror.intergrid.com.au
>>>>>>>> * extras: centos.melbourneitmirror.net
>>>>>>>> * remi: remi.conetix.com.au
>>>>>>>> * remi-safe: remi.conetix.com.au
>>>>>>>> * updates: mirror.intergrid.com.au
>>>>>>>> Resolving Dependencies
>>>>>>>> --> Running transaction check
>>>>>>>> ---> Package kamailio.x86_64 0:5.0.7-3.el7.centos will be installed
>>>>>>>> --> Processing Dependency: libkamailio_ims.so.0()(64bit) for
>>>>>>>> package: kamailio-5.0.7-3.el7.centos.x86_64
>>>>>>>> --> Running transaction check
>>>>>>>> ---> Package kamailio-ims.x86_64 0:5.0.7-3.el7.centos will be
>>>>>>>> installed
>>>>>>>> --> Finished Dependency Resolution
>>>>>>>>
>>>>>>>> Dependencies Resolved
>>>>>>>>
>>>>>>>> ============================================================
>>>>>>>> ============================================================
>>>>>>>> =================
>>>>>>>> Package Arch
>>>>>>>> Version Repository
>>>>>>>> Size
>>>>>>>> ============================================================
>>>>>>>> ============================================================
>>>>>>>> =================
>>>>>>>> Installing:
>>>>>>>> kamailio x86_64
>>>>>>>> 5.0.7-3.el7.centos home_kamailio_v5.0.x-rpms
>>>>>>>> 5.1 M
>>>>>>>> Installing for dependencies:
>>>>>>>> kamailio-ims x86_64
>>>>>>>> 5.0.7-3.el7.centos home_kamailio_v5.0.x-rpms
>>>>>>>> 1.2 M
>>>>>>>>
>>>>>>>> Transaction Summary
>>>>>>>> ============================================================
>>>>>>>> ============================================================
>>>>>>>> =================
>>>>>>>> Install 1 Package (+1 Dependent package)
>>>>>>>>
>>>>>>>> Total download size: 6.4 M
>>>>>>>> Installed size: 29 M
>>>>>>>> Is this ok [y/d/N]: y
>>>>>>>>
>>>>>>>> Downloading packages:
>>>>>>>> Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
>>>>>>>> kamailio-5.0.7-3.el7.centos.x8 FAILED
>>>>>>>>
>>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%
>>>>>>>> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-5.0.7-3.el7.
>>>>>>>> centos.x86_64.rpm: [Errno 14] HTTP Error 416 - Requested Range Not
>>>>>>>> Satisfiable
>>>>>>>> Trying other mirror.
>>>>>>>> kamailio-ims-5.0.7-3.el7.cento FAILED
>>>>>>>> ] 218 kB/s | 710 kB
>>>>>>>> 00:00:26 ETA
>>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%
>>>>>>>> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-3.el7.
>>>>>>>> centos.x86_64.rpm: [Errno -1] Package does not match intended
>>>>>>>> download. Suggestion: run yum --enablerepo=home_kamailio_v5.0.x-rpms
>>>>>>>> clean metadata
>>>>>>>> Trying other mirror.
>>>>>>>>
>>>>>>>>
>>>>>>>> Error downloading packages:
>>>>>>>> kamailio-5.0.7-3.el7.centos.x86_64: [Errno 256] No more mirrors
>>>>>>>> to try.
>>>>>>>> kamailio-ims-5.0.7-3.el7.centos.x86_64: [Errno 256] No more
>>>>>>>> mirrors to try.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 10 July 2018 at 14:49, Patrick Wakano <pwakano at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Thank you Sergey!!
>>>>>>>>> Installation was successful now!!
>>>>>>>>>
>>>>>>>>> Cheers!
>>>>>>>>> Patrick Wakano
>>>>>>>>>
>>>>>>>>> On 10 July 2018 at 14:24, Sergey Safarov <s.safarov at gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> I was trigered rpm rebuild.
>>>>>>>>>> Please check after 40 min.
>>>>>>>>>>
>>>>>>>>>> вт, 10 июля 2018 г., 6:57 Patrick Wakano <pwakano at gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> Hello list,
>>>>>>>>>>> Hope you all doing fine!
>>>>>>>>>>>
>>>>>>>>>>> I've been trying to install Kamailio packages from the opensuse
>>>>>>>>>>> repo (as per https://www.kamailio.org/wiki/packages/rpms) but
>>>>>>>>>>> the installation is failing with this message:
>>>>>>>>>>> Downloading packages:
>>>>>>>>>>> Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
>>>>>>>>>>> kamailio-ims-5.0.7-1.el7.cento FAILED
>>>>>>>>>>>
>>>>>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%
>>>>>>>>>>> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-1.el7.
>>>>>>>>>>> centos.x86_64.rpm: [Errno 14] HTTP Error 416 - Requested Range
>>>>>>>>>>> Not Satisfiable --:--:-- ETA
>>>>>>>>>>> Trying other mirror.
>>>>>>>>>>> kamailio-5.0.7-1.el7.centos.x8 FAILED
>>>>>>>>>>> 77% [============================================================-
>>>>>>>>>>> ] 1.0 MB/s | 4.9 MB 00:00:01 ETA
>>>>>>>>>>> http://download.opensuse.org/repositories/home%3A/kamailio%
>>>>>>>>>>> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-5.0.7-1.el7.
>>>>>>>>>>> centos.x86_64.rpm: [Errno -1] Package does not match intended
>>>>>>>>>>> download. Suggestion: run yum --enablerepo=home_kamailio_v5.0.x-rpms
>>>>>>>>>>> clean metadata
>>>>>>>>>>> Trying other mirror.
>>>>>>>>>>>
>>>>>>>>>>> I've successfully installed the 5.0.7 version on Friday (06/07)
>>>>>>>>>>> but I've noticed the packages have changed last Saturday
(07/07/2018)....
>>>>>>>>>>> Given this error message looks like the repository is broken
somehow....
>>>>>>>>>>> Is anyone aware of such issue? I haven't tried the 5.1.X repo
>>>>>>>>>>> because my script was not migrated to 5.1.X yet....
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Kind regards,
>>>>>>>>>>> Patrick Wakano
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>>>>>> sr-users at lists.kamailio.org
>>>>>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>>>>> sr-users at lists.kamailio.org
>>>>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>>> sr-users at lists.kamailio.org
>>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>> sr-users at lists.kamailio.org
>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Kamailio (SER) - Users Mailing List
>>>>>> sr-users at lists.kamailio.org
>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Kamailio (SER) - Users Mailing List
>>>>> sr-users at lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180727/74434679/attachment.html>
Hi,
I try to investigate the bug. Now I see that the DLGCB_LOADED type callback
never will be called. In the acc_cdr.c the cdr_on_load() function will be
seted as DLGCB_LOADED.
Other thing that I don't understand, in the dialog.c in mod_init() function
the run_load_callbacks() will be called, in the dlg_cb.c in
run_load_callbacks() function there is an expression if (load_cbs &&
load_cbs!=POINTER_CLOSED_MARKER) but at this point load_cbs is always 0
because it will be setted later.
In the dlg_cb.c in line 137 there is a mistake: if
(load_cbs==POINTER_CLOSED_MARKER) is wrong, if
(create_cbs==POINTER_CLOSED_MARKER) is good.
Any idea?
Regards,
Szabolcs
Kordován Szabolcs <koszab at gmail.com> ezt írta (időpont: 2018. júl. 19., Cs,
15:22):
> Hello,
>
> I have a test environment with Kamailio 5.1.4 where I can investigate the
> bug.
> After restart 'kamctl dialog show' command shows the present dialog. After
> hangup kamailio does an insert into acc table and makes delete from dialog
> and dialog_vars tables.
>
> Any idea?
>
> Thanks,
> Szabolcs
>
> Daniel-Constantin Mierla <miconda at gmail.com> ezt írta (időpont: 2017.
> dec. 4., H, 10:20):
>
>> Hello,
>>
>> after restart, if you list the dialogs via rpc command, do you see them
>> in what is returned?
>>
>> Cheers,
>> Daniel
>>
>> On 29.11.17 20:52, Kordován Szabolcs wrote:
>>
>> Hi All,
>>
>> In March there was a discus about this issue.
>>
>> We tested the new 5.2 dev and 5.0.4 version of Kamailio and we experience
>> that If we restart Kamailio during the call the cdr won't be stored in
>> table acc_cdrs but the data will be inserted to table acc and data will be
>> deleted from table dialog and dialog_vars.
>> Did I omit the fix for it?
>>
>> Thanks for your help.
>> Best regards,
>> Szabolcs
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing Listsr-users at
lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Kamailio Advanced Training - www.asipto.com
>> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180727/cb8b2825/attachment.html>
Greetings,
Does Kamailio has any module that deals with NGN and NNI ?
Best Regards,
Duarte Rocha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180727/0eb27392/attachment.html>
Helll,
The NGN is the concept in next generation network.
The NNI (network to network interface) is deal with to conect two or more
networks with together.
The Kamailio has some modules to impelement IMS network, Also the IMS
network could be connect with other IMS/Non IMS networks. For example some
nodes e.g. ICSCF, MGCF, BGCF could be used as NNI interface in IMS/NGN
networks.
With Regards.Mojtaba
> Greetings,
>
> Does Kamailio has any module that deals with NGN and NNI ?
>
> Also, is there any variable or transformation that gives me access to a
> parameter in the User Part of an URI ?
>
> Best Regards,
>
> Duarte Rocha
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180727/446e6dd3/attachment.html>
Hello there,
--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html
Hi,
The package hashes for Kamailio 5.1.4 rpms are wrong. I actually saw this happen
with 5.1.3 and then somehow I think it got corrected.
Filename: kamailio-5.1.4-2.el7.centos.x86_64.rpm
Path: /repositories/home:/kamailio:/v5.1.x-rpms/CentOS_7/x86_64/kamailio-5.1.4-
2.el7.centos.x86_64.rpm
Size: 5.4M (5645948 bytes)
Last modified: Thu, 19 Jul 2018 02:53:15 GMT (Unix time: 1531968795)
SHA-256 Hash: aed812fa3ccf502634fe6de848eca2ce167ee70f6ace31aa1541a5787502667d
SHA-1 Hash: ae0977ca32e6b5ba2a627e58948098f386639582
MD5 Hash: 68784949f33d6259420b50de5e70a4ec
BitTorrent Information Hash: f743a7c45d50065084d40a314bd80e3ec143c384
Thanks!
-Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180726/8653945d/attachment.html>
Sergey
Sergey
Hi guys,
So far the theory is that the counter goes below 0 and that creates the
problem.
I'd love to hear from you if you are experiencing this too.
If any of you are using Kamailio 5.1 + DMQ and gather active/early dialog
metrics using the stats.fetch or stats.get_statistics rpc commands, do you
ever get values close to 64BIT ULONG_MAX? (18446744073709551615)??
Thanks!
Joel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180727/a1be0b41/attachment.html>
Hi Joel,
I did push a fix yesterday for a bug which was causing dialog removals to
be replicated multiple times. On the chance that it may be related, you may
like to test with it in the meantime.
Cheers,
Charles
> Hi guys,
>
> Is anyone having issues gathering active/early dialog metrics from
> kamailio when DMQ is enabled?
>
> I have an open ticket in GH (
> https://github.com/kamailio/kamailio/issues/1591) and I'm wondering if
> this could be happening to anyone else?
>
> So far the theory is that the counter goes below 0 and that creates the
> problem.
>
> I'd love to hear from you if you are experiencing this too.
>
> If any of you are using Kamailio 5.1 + DMQ and gather active/early dialog
> metrics using the stats.fetch or stats.get_statistics rpc commands, do you
> ever get values close to 64BIT ULONG_MAX? (18446744073709551615)??
>
> Thanks!
> Joel.
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
*Charles Chance*
Managing Director
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180728/885ef755/attachment.html>
> Hi Joel,
>
> I plan to take a look at this on Monday, if nobody else happens to look
> sooner.
>
> I did push a fix yesterday for a bug which was causing dialog removals to
> be replicated multiple times. On the chance that it may be related, you may
> like to test with it in the meantime.
>
> Cheers,
>
> Charles
>
> On Fri, 27 Jul 2018 at 19:31, Joel Serrano <joel at textplus.com> wrote:
>
>> Hi guys,
>>
>> Is anyone having issues gathering active/early dialog metrics from
>> kamailio when DMQ is enabled?
>>
>> I have an open ticket in GH (https://github.com/kamailio/
>> kamailio/issues/1591) and I'm wondering if this could be happening to
>> anyone else?
>>
>> So far the theory is that the counter goes below 0 and that creates the
>> problem.
>>
>> I'd love to hear from you if you are experiencing this too.
>>
>> If any of you are using Kamailio 5.1 + DMQ and gather active/early dialog
>> metrics using the stats.fetch or stats.get_statistics rpc commands, do you
>> ever get values close to 64BIT ULONG_MAX? (18446744073709551615)??
>>
>> Thanks!
>> Joel.
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
> *Charles Chance*
> Managing Director
>
> t. 0330 120 1200 m. 07932 063 891
>
> Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
> office: Faraday Wharf, Innovation Birmingham Campus, Holt Street,
> Birmingham Science Park, Birmingham B7 4BB.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180728/879b1883/attachment.html>
Hi,
If i call to $timef multiple times, always returns the same time string
(CACHED), how i get formatted current time??
Example:
Saludos,
Links:
------
[1] http://www.fonoip.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180728/7142fb47/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afc1f762.jpeg
Type: image/jpeg
Size: 10362 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180728/7142fb47/attachment.jpeg>
From joel at textplus.com Mon Jul 30 04:29:01 2018
From: joel at textplus.com (Joel Serrano)
Date: Sun, 29 Jul 2018 19:29:01 -0700
Subject: [SR-Users] Is anyone having issues with dialog metrics when DMQ
is enabled?
In-Reply-To: <CAMtXxQ=XQ1N=8K-CxUC2SJJO9JV+OMiG1wsvgZ86gqhq+ciA5Q@mail.gmail.com>
References: <CAMtXxQn-aYE2MJBDEyEXzEiCyXLd4xFMhYUPmZvmsNCbE4HXRg@mail.gmail.com>
<CAOvxgzCx5x1zRtPCnQoYXJQJgBKgRSCwvFuZptZ5-=Z-QdYpxQ@mail.gmail.com>
<CAMtXxQ=XQ1N=8K-CxUC2SJJO9JV+OMiG1wsvgZ86gqhq+ciA5Q@mail.gmail.com>
Message-ID: <CAMtXxQ=WsCPN0gJS2srGBT+RjXkZRJLN=bhh6dAJKO0rqBg38g@mail.gmail.com>
Hi Charles,
So far so good. I did add the info I found to the ticket. Maybe it’s fixed
or maybe we have to troubleshoot further, I’ll wait for you and Daniel to
give feedback with your thoughts.
Thanks,
Joel.
On Sat, Jul 28, 2018 at 09:05 Joel Serrano <joel at textplus.com> wrote:
Dear list,
For example .. i use it for some black list control and other like this..
If Mysql is not able to reply to the query tight now the call continue
over the configuration... what is the best way to prevent this and for
examples drop it with a standard SIP 503 error.
Thanks
Laura
Hello,
I want to highlight that the last stable versions (for the two maintained
series: 5.0 and 5.1) include fixes for an security issues that can crash a
running instance of Kamailio, therefore it is strongly recommended to upgrade.
Details:
You find all the details including a proof of concept code in the published
security announcement in my blog:
https://skalatan.de/blog/advisory-hw-2018-05
A CVE report for this issue is going to be created as well in the near future.
The issues were found some months ago and were fixed quickly. The code related
to the reported issues is rather old and there are no known incidents of
exploiting these issues so far. However, once the CVE report becomes public,
there could be a higher risk of exploitation.
Best regards,
Henning Westerholt
--
Henning Westerholt
https://skalatan.de/blog/
Hello,
The three of them are using the dmq and dmq_usrloc modules to synchronize
user locations, however after a couple of days of operation the two
failover instances show memory leak behaviors, with mem usage assigned to
the core taking all available resources.
Has anyone experienced a similar issue who can suggest a possible solution?
Thanks,
Rogelio Perez
Telnyx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/e49f129b/attachment.html>
Hello everyone,
I'm in the process of moving approx. 100 Kamailio/Media Proxy (AG Projects) servers
to Kamailio/RTPEngine. I have all the functionality in place and I have a handful
of servers in production. I'm trying to monitor the RTP engine (using Munin) and
I'm graphing the values returned from the RPC command rtpengine.get_hash_total.
This value is slowly increasing over time and I'm trying to find out if this is
something I should worry about. I want to make sure that sessions are not being
left open and therefore the software will eventually run out of ports. To give
some values, if I make 100 calls the call will be around 25 after those calls.
>From all other tests I have done including a check through the verbose logs I can
see the sessions are being closed at the end of the calls.
Can anyone help with this at all or does anyone possibly have any better ideas?
Alex Tatham
Technical Director
Hello,
not using dmq much, but at a quick look in the code, I noticed that there
are some cases when the job fields were not released if the processing was
not completely done for various reasons.
Maybe Charles Chance can also do a bit of review here, being the one doing
most of the work lately for dmq.
Cheers,
Daniel
On Tue, Jul 31, 2018 at 6:58 AM, Rogelio Perez <rogelio at telnyx.com> wrote:
> Hello,
>
> We're running three instances of Kamailo v5.14 as registrars handling
> registrations from ~2000 SIP clients, with one instance being primary and
> the other two as backups.
>
> The three of them are using the dmq and dmq_usrloc modules to synchronize
> user locations, however after a couple of days of operation the two
> failover instances show memory leak behaviors, with mem usage assigned to
> the core taking all available resources.
>
> When this happens we've noticed that:
> - The shared memory used by the function "sip_msg_shm_clone" spikes
> (from 1kb to 1.5GB).
> - The shared memory used by the function "dmq:worker.c:job_queue_push"
> also increases, but not as much (from 1kb to 1MB)
> - DMQ request are not being answered (with a 200 OK) by the affected
> instance during this memory leak, which make us think that DMQ module
> becomes unresponsive.
>
> A few more notes:
> - The failover instances are doing nothing except receiving replicated
> contacts.
> - The shared memory grows at the same rate on both instances, but the
> critical behavior never happens at the same time.
> - We are allocating 1GB memory on startup to each instance.
> - We store the location DB in a psql DB and we load it at startup.
> - We didn't find any errors in syslog, even at debug level.
>
> Has anyone experienced a similar issue who can suggest a possible solution?
>
> Thanks,
> Rogelio Perez
> Telnyx
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/55206a0a/attachment.html>
Hi Daniel,
Nice spot! I had tried to reproduce locally, but had not considered the
possibility that jobs may be failing somewhere in Rogelio’s setup.
Most likely your patch will resolve it but I’m happy to take a look further
if not.
Cheers,
Charles
> Hello,
>
> not using dmq much, but at a quick look in the code, I noticed that there
> are some cases when the job fields were not released if the processing was
> not completely done for various reasons.
>
> I pushed the commit a1f5fbe2c18246d4afefa44fd8a52612a5182a46, can you try
> with it and see the results?
>
> Maybe Charles Chance can also do a bit of review here, being the one doing
> most of the work lately for dmq.
>
> Cheers,
> Daniel
>
> On Tue, Jul 31, 2018 at 6:58 AM, Rogelio Perez <rogelio at telnyx.com> wrote:
>
>> Hello,
>>
>> We're running three instances of Kamailo v5.14 as registrars handling
>> registrations from ~2000 SIP clients, with one instance being primary and
>> the other two as backups.
>>
>> The three of them are using the dmq and dmq_usrloc modules to synchronize
>> user locations, however after a couple of days of operation the two
>> failover instances show memory leak behaviors, with mem usage assigned to
>> the core taking all available resources.
>>
>> When this happens we've noticed that:
>> - The shared memory used by the function "sip_msg_shm_clone" spikes
>> (from 1kb to 1.5GB).
>> - The shared memory used by the function "dmq:worker.c:job_queue_push"
>> also increases, but not as much (from 1kb to 1MB)
>> - DMQ request are not being answered (with a 200 OK) by the affected
>> instance during this memory leak, which make us think that DMQ module
>> becomes unresponsive.
>>
>> A few more notes:
>> - The failover instances are doing nothing except receiving replicated
>> contacts.
>> - The shared memory grows at the same rate on both instances, but the
>> critical behavior never happens at the same time.
>> - We are allocating 1GB memory on startup to each instance.
>> - We store the location DB in a psql DB and we load it at startup.
>> - We didn't find any errors in syslog, even at debug level.
>>
>> Has anyone experienced a similar issue who can suggest a possible
>> solution?
>>
>> Thanks,
>> Rogelio Perez
>> Telnyx
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>
> --
> Daniel-Constantin Mierla - http://www.asipto.com
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>
--
*Charles Chance*
Managing Director
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/d40442ef/attachment.html>
The size of the hash table does not necessarily directly correlate with
the sessions rtpengine itself has open. Normally it should, but it's
possible for rtpengine to close a session with the entry remaining in
the hash table, or vice versa.
To get a better idea of how many sessions rtpengine actually has open,
check out it's CLI interface or the related control script (rtpengine-ctl).
As for the hash table itself, AFAICS entries are deleted when the
_delete method is used. Otherwise they stay in memory until the timeout
is reached, defaulting to 1 hour. (They're only actually deleted after
the timeout if encountered while processing the hash table at some
point.) If you don't see the hash table decrease in size, it's probably
not calling the _delete method properly.
Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/ce40ca91/attachment.html>
From alvaro at voxcore.cl Tue Jul 31 17:46:20 2018
From: alvaro at voxcore.cl (Alvaro Araos)
Date: Tue, 31 Jul 2018 11:46:20 -0400
Subject: [SR-Users] How to get Formatted Current TIME (NOT CACHED)
In-Reply-To: <c4f70869bb51305cc83b249455dcf58e@voxcore.cl>
References: <c4f70869bb51305cc83b249455dcf58e@voxcore.cl>
Message-ID: <a79e3bca501d3b5f5bf657adebad8d71@voxcore.cl>
Hi,
$dlg_var(start)=$(TS{s.ftime,%Y-%m-%d %H:%M:%S});
Saludos,
> Hi,
>
> If i call to $timef multiple times, always returns the same time string (CACHED),
how i get formatted current time??
>
> Example:
>
> $dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS "2018-07-28 18:44:35"
>
> .. some seconds later
> $dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS THE SAME DATE STRING "2018-
07-28 18:44:35"
>
> Saludos,
>
> ALVARO ARAOS MÉNDEZ
> Director de Tecnología en FONOIP
>
> +56 2 2947 9000
> alvaro at fonoip.com | www.fonoip.com [1]
> Moisés Chacón 46, El Monte, RM
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users [2]
Links:
------
[1] http://www.fonoip.com
[2] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/fc870d01/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afc1f762.jpeg
Type: image/jpeg
Size: 10362 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/fc870d01/attachment.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afc1f762.jpeg
Type: image/jpeg
Size: 10362 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/fc870d01/attachment-0001.jpeg>
Nice finding ! however Rogelio is saying there was no errors in the logs,
looking at the patch he would have seen some.
Hope I am wrong.
> Hi Daniel,
>
> Nice spot! I had tried to reproduce locally, but had not considered the
> possibility that jobs may be failing somewhere in Rogelio’s setup.
>
> Most likely your patch will resolve it but I’m happy to take a look
> further if not.
>
> Cheers,
>
> Charles
>
> On Tue, 31 Jul 2018 at 13:05, Daniel-Constantin Mierla <miconda at gmail.com>
> wrote:
>
>> Hello,
>>
>> not using dmq much, but at a quick look in the code, I noticed that there
>> are some cases when the job fields were not released if the processing was
>> not completely done for various reasons.
>>
>> I pushed the commit a1f5fbe2c18246d4afefa44fd8a52612a5182a46, can you
>> try with it and see the results?
>>
>> Maybe Charles Chance can also do a bit of review here, being the one
>> doing most of the work lately for dmq.
>>
>> Cheers,
>> Daniel
>>
>> On Tue, Jul 31, 2018 at 6:58 AM, Rogelio Perez <rogelio at telnyx.com>
>> wrote:
>>
>>> Hello,
>>>
>>> We're running three instances of Kamailo v5.14 as registrars handling
>>> registrations from ~2000 SIP clients, with one instance being primary and
>>> the other two as backups.
>>>
>>> The three of them are using the dmq and dmq_usrloc modules to
>>> synchronize user locations, however after a couple of days of operation the
>>> two failover instances show memory leak behaviors, with mem usage assigned
>>> to the core taking all available resources.
>>>
>>> When this happens we've noticed that:
>>> - The shared memory used by the function "sip_msg_shm_clone" spikes
>>> (from 1kb to 1.5GB).
>>> - The shared memory used by the function "dmq:worker.c:job_queue_push"
>>> also increases, but not as much (from 1kb to 1MB)
>>> - DMQ request are not being answered (with a 200 OK) by the affected
>>> instance during this memory leak, which make us think that DMQ module
>>> becomes unresponsive.
>>>
>>> A few more notes:
>>> - The failover instances are doing nothing except receiving replicated
>>> contacts.
>>> - The shared memory grows at the same rate on both instances, but the
>>> critical behavior never happens at the same time.
>>> - We are allocating 1GB memory on startup to each instance.
>>> - We store the location DB in a psql DB and we load it at startup.
>>> - We didn't find any errors in syslog, even at debug level.
>>>
>>> Has anyone experienced a similar issue who can suggest a possible
>>> solution?
>>>
>>> Thanks,
>>> Rogelio Perez
>>> Telnyx
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>>
>> --
>> Daniel-Constantin Mierla - http://www.asipto.com
>> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>>
> --
> *Charles Chance*
> Managing Director
>
> t. 0330 120 1200 m. 07932 063 891
>
> Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered
> office: Faraday Wharf, Innovation Birmingham Campus, Holt Street,
> Birmingham Science Park, Birmingham B7 4BB.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/dc6bce3e/attachment.html>
Hi All,
I've come across and oddity whereby my is_method("KDMQ") checks are not
matching.
request_route {
route("InitialMessageChecks");
exit;
}
route[InitialMessageChecks] {
xlog("L_INFO", "Received message type $rm from $si:$sp on $Ri:$Rp");
In the logs I am only receiving the 1st log line in the initial message
checks route for message types of KDMQ, eg:
I never seem to hit the is_method check log line when the method type is
KDMQ.
Reason for asking is: this check never matches and breaks the dmq bus:
if ( is_method("KDMQ") ) {
if ( dmq_is_from_node() ) {
dmq_handle_message();
exit;
} else {
exit;
}
}
Thanks
I confirm we're not getting the error log "running job failed".
The behavior is always the same, any of the two failover instances would
run without issues for a day or two and then suddenly start consuming all
available memory in the span of an hour or less.
Please check these graphs with some examples for more details:
https://www.dropbox.com/sh/tu0jxi1vlbq81m8/AABhfz9rDumdCu3l0ROH7Lkla?dl=0
Rogelio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/0b8cad8e/attachment.html>
Since it seem you are recovering the memory this does not seems like a real
"leak"
One hypothesis :
When you restart a node on the DMQ bus, it can trigger memory usage on the
other nodes since they will start to do a SYNC and send one DMQ message /
contact
It could be that one node in the DMQ bus is restarted and not answering DMQ
messages ?
Few ideas :
You could search you trace, maybe you will find the DMQ sync requests ...
On Tue, Jul 31, 2018 at 9:21 AM, Rogelio Perez <rogelio at telnyx.com> wrote:
Hi Asgaroth,
I'm using dmq and I haven't seen a msg get passed this:
That said, just to make sure it's not some work-in-progress happening on
master branch, give it a try on latest stable release (v5.1.4) to see if
you find the same behavior. I haven't tried on master but on v5.1.4 I'm not
seeing that behavior.
Are you manually replicating stuff using dmq functions or are you taking
advantage of auto-replication using modparam enable_dmq=1 on certain
modules?
Joel.
On Tue, Jul 31, 2018 at 9:01 AM, Asgaroth <00asgaroth00 at gmail.com> wrote:
> Hi All,
>
> I've come across and oddity whereby my is_method("KDMQ") checks are not
> matching.
>
> I'm testing with kamailio master:
>
> version: kamailio 5.2.0-dev6 (x86_64/linux) a16272
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
> HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024,
> BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: a16272
> compiled on 15:27:21 Jul 31 2018 with gcc 7.3.1
>
> Sample routing logic:
>
> request_route {
> route("InitialMessageChecks");
> exit;
> }
>
>
> route[InitialMessageChecks] {
> xlog("L_INFO", "Received message type $rm from $si:$sp on $Ri:$Rp");
>
> if ( is_method("KDMQ") ) { xlog("L_INFO", "KDMQ check passed."); }
> if ( is_method("OPTIONS") ) { xlog("L_INFO", "OPTIONS check passed.");
> }
> if ( is_method("SUBSCRIBE") ) { xlog("L_INFO", "SUBSCRIBE check
> passed."); }
>
> }
>
> In the logs I am only receiving the 1st log line in the initial message
> checks route for message types of KDMQ, eg:
>
> INFO: <script>: Received message KDMQ from 1.1.1.1:5060 on 1.1.1.2:5060
> INFO: <script>: Received message KDMQ from 1.1.1.3:5060 on 1.1.1.2:5060
>
> I never seem to hit the is_method check log line when the method type is
> KDMQ.
>
> I do see the options/subscribe logs though:
>
> INFO: <script>: OPTIONS check passed.
> INFO: <script>: SUBSCRIBE check passed.
>
> nothing for KDMQ.
>
> Reason for asking is: this check never matches and breaks the dmq bus:
>
> if ( is_method("KDMQ") ) {
> if ( dmq_is_from_node() ) {
> dmq_handle_message();
> exit;
> } else {
> exit;
> }
> }
>
> Any thoughts, or am I going crazy :)
>
> Thanks
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/d8d94b64/attachment.html>
Hi,
Hello,
Cheers,
Charles
> Hi Asgaroth,
>
> I'm using dmq and I haven't seen a msg get passed this:
>
> # Handles DMQ messages
> if (is_method("KDMQ")) {
> dmq_handle_message();
> }
>
> That said, just to make sure it's not some work-in-progress happening on
> master branch, give it a try on latest stable release (v5.1.4) to see if
> you find the same behavior. I haven't tried on master but on v5.1.4 I'm not
> seeing that behavior.
>
> Are you manually replicating stuff using dmq functions or are you taking
> advantage of auto-replication using modparam enable_dmq=1 on certain
> modules?
>
> Joel.
>
>
>
>
> On Tue, Jul 31, 2018 at 9:01 AM, Asgaroth <00asgaroth00 at gmail.com> wrote:
>
>> Hi All,
>>
>> I've come across and oddity whereby my is_method("KDMQ") checks are not
>> matching.
>>
>> I'm testing with kamailio master:
>>
>> version: kamailio 5.2.0-dev6 (x86_64/linux) a16272
>> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
>> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
>> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
>> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
>> HAVE_RESOLV_RES
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024,
>> BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>> id: a16272
>> compiled on 15:27:21 Jul 31 2018 with gcc 7.3.1
>>
>> Sample routing logic:
>>
>> request_route {
>> route("InitialMessageChecks");
>> exit;
>> }
>>
>>
>> route[InitialMessageChecks] {
>> xlog("L_INFO", "Received message type $rm from $si:$sp on $Ri:$Rp");
>>
>> if ( is_method("KDMQ") ) { xlog("L_INFO", "KDMQ check passed."); }
>> if ( is_method("OPTIONS") ) { xlog("L_INFO", "OPTIONS check
>> passed."); }
>> if ( is_method("SUBSCRIBE") ) { xlog("L_INFO", "SUBSCRIBE check
>> passed."); }
>>
>> }
>>
>> In the logs I am only receiving the 1st log line in the initial message
>> checks route for message types of KDMQ, eg:
>>
>> INFO: <script>: Received message KDMQ from 1.1.1.1:5060 on 1.1.1.2:5060
>> INFO: <script>: Received message KDMQ from 1.1.1.3:5060 on 1.1.1.2:5060
>>
>> I never seem to hit the is_method check log line when the method type is
>> KDMQ.
>>
>> I do see the options/subscribe logs though:
>>
>> INFO: <script>: OPTIONS check passed.
>> INFO: <script>: SUBSCRIBE check passed.
>>
>> nothing for KDMQ.
>>
>> Reason for asking is: this check never matches and breaks the dmq bus:
>>
>> if ( is_method("KDMQ") ) {
>> if ( dmq_is_from_node() ) {
>> dmq_handle_message();
>> exit;
>> } else {
>> exit;
>> }
>> }
>>
>> Any thoughts, or am I going crazy :)
>>
>> Thanks
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
*Charles Chance*
Managing Director
--
Sipcentric Ltd.
Company registered in England & Wales no.
7365592. Registered
office: Faraday Wharf, Innovation
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/351b11d9/attachment.html>
Hi,
Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/3511d5e5/attachment.html>
Why not?
Antony.
--
If you were ploughing a field, which would you rather use - two strong oxen or
1024 chickens?
We are running old release of Kamailio 3.3.0 on bare metal and would like to
upgrade the app and the HW. I was wondering if Kamailio is working in a Virtual
Environment.
Thanks,
Alex
________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Antony Stone
<Antony.Stone at kamailio.open.source.it>
Sent: Tuesday, July 31, 2018 1:43 PM
To: Kamailio Users Mailing List
Subject: Re: [SR-Users] kamalio in virtual environment
> Hi,
>
>
> Is recent kamalio release interoperable
Why not?
Antony.
--
If you were ploughing a field, which would you rather use - two strong oxen or
1024 chickens?
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
sr-users -- Kamailio (SER) - Users Mailing List<https://lists.kamailio.org/cgi-
bin/mailman/listinfo/sr-users>
lists.kamailio.org
Kamailio Users Mailing list - online email forum for communities of Kamailio
(OpenSER) and SIP Express Router (SER) projects. Subscription is open to anyone
that wants to join, the topics should be related to stable versions and general
community discussions.
Hello Alex.
many people use Kamailio on virtual machines like VMWare or AWS/Azure etc.. It
should work without any problems. One thing you need to keep in mind is if you
also route RTP media data (e.g. with RTPproxy) you will need probably a bigger
instance in a public cloud environment to have a decent performance.
Alex Balashov had a talk at the last KamailioWorld conference about this issue
in particular, you can find it on e.g. on youtube.
Best regards,
Henning
--
Henning Westerholt
https://skalatan.de/blog/
Sergey
Julien,
> Since it seem you are recovering the memory this does not seems like a
real "leak"
I forgot to mention that the recoveries are actual Kamailio manual restarts.
Thanks,
Rogelio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-
users/attachments/20180731/27cfc3e5/attachment.html>
--fred
Hi All,
socket: {
proto: udp
address: 2.2.2.2
ipaddress: 2.2.2.2
port: 5060
mcast: no
mhomed: no
}