Re: [SR-Users] kamcmd mtree.match

2020-06-03 Thread Volker Denneberg
Hello Henning,

you hit the point. With prefix s:

kamcmd mtree.match siteId s:49241531075267 0

is working. Thank you very much!

Volker



From: Henning Westerholt 
Sent: Wednesday, June 3, 2020 21:03
To: Volker Denneberg ; Kamailio (SER) - Users Mailing 
List 
Subject: RE: kamcmd mtree.match


Hello Volker,



have you tried with the prefix “s” as suggested on the list:



kamcmd mtree.match siteId s:49241531075212 0


Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: Volker Denneberg 
Sent: Wednesday, June 3, 2020 8:56 PM
To: Henning Westerholt ; Kamailio (SER) - Users Mailing List 

Subject: Re: kamcmd mtree.match



Hello Henning,



I can't get any result different from "500 - Invalid Parameters", no matter 
what (nonsense) I enter

   kamcmd mtree.match siteId 49241531075212 0

   kamcmd mtree.match siteId 49241531075212 2

   kamcmd mtree.match siteId 49241531075212 77

   kamcmd mtree.match siteId 4924153 77

   kamcmd mtree.match siteId

   kamcmd mtree.match

   kamcmd mtree.match 1 2 3



Looking at mtree_mod.c



void rpc_mtree_match(rpc_t* rpc, void* ctx)

{

str tname = STR_NULL;

str tomatch = STR_NULL;

int mode = -1;



m_tree_t *tr;



if(!mt_defined_trees())

{

rpc->fault(ctx, 500, "Empty tree list.");

return;

}



if (rpc->scan(ctx, ".SSd", , , ) < 3) {

rpc->fault(ctx, 500, "Invalid Parameters");

return;

}



if (mode !=0 && mode != 2) {

rpc->fault(ctx, 500, "Invalid parameter 'mode'");

return;

}





I would guess that something is going wrong in rpc->scan() but so far I had no 
time to dig in.



Debug log (-) doesnt help me



 6(25280) DEBUG: ctl [../../core/io_wait.h:377]: io_watch_add(): DBG: 
io_watch_add(0x7f4fbaba82a0, 15, 3, 0x55f396f76000), fd_no=1

 6(25280) DEBUG: ctl [io_listener.c:442]: handle_new_connect(): handle_stream 
read: new connection (1) on /var/run/kamailio//kamailio_ctl

 6(25280) DEBUG: ctl [io_listener.c:495]: handle_stream_read(): handle_stream 
read: eof on /var/run/kamailio//kamailio_ctl

 6(25280) DEBUG: ctl [../../core/io_wait.h:599]: io_watch_del(): DBG: 
io_watch_del (0x7f4fbaba82a0, 15, -1, 0x10) fd_no=2 called





Regards,

Volker











From: Henning Westerholt mailto:h...@skalatan.de>>
Sent: Tuesday, June 2, 2020 16:15
To: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Cc: Volker Denneberg mailto:v.denneb...@m3connect.de>>
Subject: RE: kamcmd mtree.match



Hello Volker,



the error message you‘ve got from the command looks like the generic error that 
is returned if the number or type of parameters do not match. Did you managed 
to get a match from the kamcmd command at all?



Further hints might be also visible in the kamailio log file.



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Volker Denneberg
Sent: Sunday, May 31, 2020 12:03 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] kamcmd mtree.match



Hi,



given this mtree



kamcmd mtree.list siteId

{

tname: siteId

tprefix: 00492419697994

tvalue: {

00492419697994 2388

}

}

{

tname: siteId

tprefix: 492415310752

tvalue: {

492415310752 2388

}

}



i wonder why this lookup fails:



kamcmd mtree.match siteId 49241531075212 0

error: 500 - Invalid Parameters



My expectation was that 2nd tprefix should match.



I am using



modparam("mtree", "db_table", "mtrees")

modparam("mtree", "char_list", "0123456789+")

modparam("mtree", "mt_tree_type", 0)# payload type for tree 
data : string



Thanks in advance,

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


Re: [SR-Users] kamcmd mtree.match

2020-06-03 Thread Volker Denneberg
Hello Henning,

I can't get any result different from "500 - Invalid Parameters", no matter 
what (nonsense) I enter
   kamcmd mtree.match siteId 49241531075212 0
   kamcmd mtree.match siteId 49241531075212 2
   kamcmd mtree.match siteId 49241531075212 77
   kamcmd mtree.match siteId 4924153 77
   kamcmd mtree.match siteId
   kamcmd mtree.match
   kamcmd mtree.match 1 2 3

Looking at mtree_mod.c

void rpc_mtree_match(rpc_t* rpc, void* ctx)
{
str tname = STR_NULL;
str tomatch = STR_NULL;
int mode = -1;

m_tree_t *tr;

if(!mt_defined_trees())
{
rpc->fault(ctx, 500, "Empty tree list.");
return;
}

if (rpc->scan(ctx, ".SSd", , , ) < 3) {
rpc->fault(ctx, 500, "Invalid Parameters");
return;
}

if (mode !=0 && mode != 2) {
rpc->fault(ctx, 500, "Invalid parameter 'mode'");
return;
}


I would guess that something is going wrong in rpc->scan() but so far I had no 
time to dig in.

Debug log (-) doesnt help me

 6(25280) DEBUG: ctl [../../core/io_wait.h:377]: io_watch_add(): DBG: 
io_watch_add(0x7f4fbaba82a0, 15, 3, 0x55f396f76000), fd_no=1
 6(25280) DEBUG: ctl [io_listener.c:442]: handle_new_connect(): handle_stream 
read: new connection (1) on /var/run/kamailio//kamailio_ctl
 6(25280) DEBUG: ctl [io_listener.c:495]: handle_stream_read(): handle_stream 
read: eof on /var/run/kamailio//kamailio_ctl
 6(25280) DEBUG: ctl [../../core/io_wait.h:599]: io_watch_del(): DBG: 
io_watch_del (0x7f4fbaba82a0, 15, -1, 0x10) fd_no=2 called


Regards,
Volker





From: Henning Westerholt 
Sent: Tuesday, June 2, 2020 16:15
To: Kamailio (SER) - Users Mailing List 
Cc: Volker Denneberg 
Subject: RE: kamcmd mtree.match


Hello Volker,



the error message you‘ve got from the command looks like the generic error that 
is returned if the number or type of parameters do not match. Did you managed 
to get a match from the kamcmd command at all?



Further hints might be also visible in the kamailio log file.



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: sr-users  On Behalf Of Volker 
Denneberg
Sent: Sunday, May 31, 2020 12:03 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] kamcmd mtree.match



Hi,



given this mtree



kamcmd mtree.list siteId

{

tname: siteId

tprefix: 00492419697994

tvalue: {

00492419697994 2388

}

}

{

tname: siteId

tprefix: 492415310752

tvalue: {

492415310752 2388

}

}



i wonder why this lookup fails:



kamcmd mtree.match siteId 49241531075212 0

error: 500 - Invalid Parameters



My expectation was that 2nd tprefix should match.



I am using



modparam("mtree", "db_table", "mtrees")

modparam("mtree", "char_list", "0123456789+")

modparam("mtree", "mt_tree_type", 0)# payload type for tree 
data : string



Thanks in advance,

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


Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-03 Thread Sergiu Pojoga
Compared to previous versions, under 5.3, one must invoke the
sip_trace_mode() function if you wanted to see the full SIP flow in Homer.
It's not clear from documentation that it's a must function, but it did fix
the problem in my case.

For example:

sip_trace();
sip_trace_mode("t")

On Wed, Jun 3, 2020 at 3:25 PM Karsten Horsmann  wrote:

> Hi Frederico,
>
> good point. Will also update my test setup and have a look at the new
> functions.
>
> Cheers
> Karsten Horsmann
>
> Federico Cabiddu  schrieb am Mi., 3. Juni
> 2020, 20:41:
>
>> Hi,
>> did you try to capture the traffic going towards homer?
>> Siptrace module has internally changed in release 5.3 and some things
>> that used to work in 5.2 are not working or are not doing it in the
>> expected way.
>> There have been several fixes since 5.3.0, some of them are still only in
>> master branch, I suggest you to use the latest 5.3.4 and have a look at the
>> new capture modes and
>> http://www.kamailio.org/docs/modules/5.3.x/modules/siptrace.html#siptrace.f.sip_trace_mode
>>  function.
>> Hope this helps.
>>
>> Cheers,
>>
>> Federico
>>
>> On Wed, Jun 3, 2020 at 7:16 PM Karsten Horsmann 
>> wrote:
>>
>>> Hi,
>>>
>>> yes same config file. Forgot that to mention.
>>>
>>> Cheers
>>> Karsten Horsmann
>>>
>>> David Villasmil  schrieb am Mi., 3.
>>> Juni 2020, 18:48:
>>>
 Same config file?

 On Wed, 3 Jun 2020 at 17:20, Karsten Horsmann 
 wrote:

> Hi list,
>
> I saw some strange behavior in Kamailio 5.3.0 with HEPv3. My Kamailio
> serves webrtc and sip tls and captures that to an Homer 7.7 instance.
>
> I see only the UAC Parts of the message and not the answers from
> Kamailio in that scenario.
>
> Maybe I reached the max Paket size for udp. Hard to debug. In
> production I saw everything (but there I used and older Kamailio 5.2.x and
> Homer 5.5 which can handle fragment udp).
>
> Any ideas how to hunt the root cause of the problem?
>
> Cheers
> Karsten
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
 --
 Regards,

 David Villasmil
 email: david.villasmil.w...@gmail.com
 phone: +34669448337
 ___
 Kamailio (SER) - Users Mailing List
 sr-users@lists.kamailio.org
 https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

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


Re: [SR-Users] Request documentation of Path Flow of Kamailio

2020-06-03 Thread Daniel Cassar
Cheers

Sent from Outlook Mobile


From: Henning Westerholt 
Sent: Wednesday, June 3, 2020 9:39:36 PM
To: Daniel Cassar ; Kamailio (SER) - Users 
Mailing List 
Subject: RE: Request documentation of Path Flow of Kamailio


Hello,



you can find many presentations (which includes diagrams etc..) in the archive 
of past Kamailioworld conferences on kamailio.org and also on youtube.



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: Daniel Cassar 
Sent: Wednesday, June 3, 2020 9:38 PM
To: Kamailio (SER) - Users Mailing List ; Henning 
Westerholt 
Subject: Re: Request documentation of Path Flow of Kamailio



One more thing if you have some diagrams that also be considered as how 
communication should pass from one client to another from a different network 
please can you send it to me and thanks.

Sent from Outlook Mobile





From: Daniel Cassar 
mailto:daniel.cassar.a100...@mcast.edu.mt>>
Sent: Wednesday, June 3, 2020 9:33:19 PM
To: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>; Henning 
Westerholt mailto:h...@skalatan.de>>
Subject: Re: Request documentation of Path Flow of Kamailio



Thanks :)

Sent from Outlook Mobile





From: Henning Westerholt mailto:h...@skalatan.de>>
Sent: Wednesday, June 3, 2020 9:20:42 PM
To: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Cc: Daniel Cassar 
mailto:daniel.cassar.a100...@mcast.edu.mt>>
Subject: RE: Request documentation of Path Flow of Kamailio



Hello Daniel,



thanks for your interest in Kamailio. Looking forward to see the results of 
your work, please free to give some feedback if its finished. ??



Being an open source project, there is many documentations available e.g. in 
our wiki. But most of its is more reference character and probably not 
something that you can directly use in an academic setting.



But there is already some work outside in academia which might be useful for 
you. Check e.g. this diploma thesis out, which describe the implementation of 
Kamailio as a telephone system for CERN:



https://cds.cern.ch/record/1560053/files/CERN-THESIS-2013-073.pdf?subformat=pdfa



You can find more works that is using Kamailio e.g. with google scholar:

https://scholar.google.com/scholar?hl=en_sdt=0%2C5=kamailio=



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Daniel Cassar
Sent: Wednesday, June 3, 2020 8:08 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Request documentation of Path Flow of Kamailio



Dear Sir/Madam,



I am a student, doing a dissertation about the performance of VPN throughout 
VoIP Services whereas I decided to configure Kamailio with Siremis Web User 
Interface on Linux 18.04LTS. I also am using GNS3 as I am trying to connect the 
server with 3 different routers as a form of sites with different network. What 
am trying to do is that from the SIP I would try to call from one site to 
another and see the performance however I need some informations of the 
Kamailio Server. I need the path communication of how Kamailio works meaning 
the traffic, protocols being used and these are multicast or unicast when 
transfer from one site to another. Is this information available somewhere as I 
seem not to find it anywhere which is why I'm sending you to find out if you 
have these documentations that I request. I hope to hear from you soon and 
thanks.



Sincerely,



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


Re: [SR-Users] Request documentation of Path Flow of Kamailio

2020-06-03 Thread Henning Westerholt
Hello,

you can find many presentations (which includes diagrams etc..) in the archive 
of past Kamailioworld conferences on kamailio.org and also on youtube.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

From: Daniel Cassar 
Sent: Wednesday, June 3, 2020 9:38 PM
To: Kamailio (SER) - Users Mailing List ; Henning 
Westerholt 
Subject: Re: Request documentation of Path Flow of Kamailio

One more thing if you have some diagrams that also be considered as how 
communication should pass from one client to another from a different network 
please can you send it to me and thanks.
Sent from Outlook Mobile


From: Daniel Cassar 
mailto:daniel.cassar.a100...@mcast.edu.mt>>
Sent: Wednesday, June 3, 2020 9:33:19 PM
To: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>; Henning 
Westerholt mailto:h...@skalatan.de>>
Subject: Re: Request documentation of Path Flow of Kamailio

Thanks :)
Sent from Outlook Mobile


From: Henning Westerholt mailto:h...@skalatan.de>>
Sent: Wednesday, June 3, 2020 9:20:42 PM
To: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Cc: Daniel Cassar 
mailto:daniel.cassar.a100...@mcast.edu.mt>>
Subject: RE: Request documentation of Path Flow of Kamailio


Hello Daniel,



thanks for your interest in Kamailio. Looking forward to see the results of 
your work, please free to give some feedback if its finished. 



Being an open source project, there is many documentations available e.g. in 
our wiki. But most of its is more reference character and probably not 
something that you can directly use in an academic setting.



But there is already some work outside in academia which might be useful for 
you. Check e.g. this diploma thesis out, which describe the implementation of 
Kamailio as a telephone system for CERN:



https://cds.cern.ch/record/1560053/files/CERN-THESIS-2013-073.pdf?subformat=pdfa



You can find more works that is using Kamailio e.g. with google scholar:

https://scholar.google.com/scholar?hl=en_sdt=0%2C5=kamailio=



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Daniel Cassar
Sent: Wednesday, June 3, 2020 8:08 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Request documentation of Path Flow of Kamailio



Dear Sir/Madam,



I am a student, doing a dissertation about the performance of VPN throughout 
VoIP Services whereas I decided to configure Kamailio with Siremis Web User 
Interface on Linux 18.04LTS. I also am using GNS3 as I am trying to connect the 
server with 3 different routers as a form of sites with different network. What 
am trying to do is that from the SIP I would try to call from one site to 
another and see the performance however I need some informations of the 
Kamailio Server. I need the path communication of how Kamailio works meaning 
the traffic, protocols being used and these are multicast or unicast when 
transfer from one site to another. Is this information available somewhere as I 
seem not to find it anywhere which is why I'm sending you to find out if you 
have these documentations that I request. I hope to hear from you soon and 
thanks.



Sincerely,



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


Re: [SR-Users] Request documentation of Path Flow of Kamailio

2020-06-03 Thread Daniel Cassar
One more thing if you have some diagrams that also be considered as how 
communication should pass from one client to another from a different network 
please can you send it to me and thanks.

Sent from Outlook Mobile


From: Daniel Cassar 
Sent: Wednesday, June 3, 2020 9:33:19 PM
To: Kamailio (SER) - Users Mailing List ; Henning 
Westerholt 
Subject: Re: Request documentation of Path Flow of Kamailio

Thanks :)

Sent from Outlook Mobile


From: Henning Westerholt 
Sent: Wednesday, June 3, 2020 9:20:42 PM
To: Kamailio (SER) - Users Mailing List 
Cc: Daniel Cassar 
Subject: RE: Request documentation of Path Flow of Kamailio


Hello Daniel,



thanks for your interest in Kamailio. Looking forward to see the results of 
your work, please free to give some feedback if its finished. ??



Being an open source project, there is many documentations available e.g. in 
our wiki. But most of its is more reference character and probably not 
something that you can directly use in an academic setting.



But there is already some work outside in academia which might be useful for 
you. Check e.g. this diploma thesis out, which describe the implementation of 
Kamailio as a telephone system for CERN:



https://cds.cern.ch/record/1560053/files/CERN-THESIS-2013-073.pdf?subformat=pdfa



You can find more works that is using Kamailio e.g. with google scholar:

https://scholar.google.com/scholar?hl=en_sdt=0%2C5=kamailio=



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: sr-users  On Behalf Of Daniel Cassar
Sent: Wednesday, June 3, 2020 8:08 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Request documentation of Path Flow of Kamailio



Dear Sir/Madam,



I am a student, doing a dissertation about the performance of VPN throughout 
VoIP Services whereas I decided to configure Kamailio with Siremis Web User 
Interface on Linux 18.04LTS. I also am using GNS3 as I am trying to connect the 
server with 3 different routers as a form of sites with different network. What 
am trying to do is that from the SIP I would try to call from one site to 
another and see the performance however I need some informations of the 
Kamailio Server. I need the path communication of how Kamailio works meaning 
the traffic, protocols being used and these are multicast or unicast when 
transfer from one site to another. Is this information available somewhere as I 
seem not to find it anywhere which is why I'm sending you to find out if you 
have these documentations that I request. I hope to hear from you soon and 
thanks.



Sincerely,



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


Re: [SR-Users] Request documentation of Path Flow of Kamailio

2020-06-03 Thread Daniel Cassar
Thanks :)

Sent from Outlook Mobile


From: Henning Westerholt 
Sent: Wednesday, June 3, 2020 9:20:42 PM
To: Kamailio (SER) - Users Mailing List 
Cc: Daniel Cassar 
Subject: RE: Request documentation of Path Flow of Kamailio


Hello Daniel,



thanks for your interest in Kamailio. Looking forward to see the results of 
your work, please free to give some feedback if its finished. ??



Being an open source project, there is many documentations available e.g. in 
our wiki. But most of its is more reference character and probably not 
something that you can directly use in an academic setting.



But there is already some work outside in academia which might be useful for 
you. Check e.g. this diploma thesis out, which describe the implementation of 
Kamailio as a telephone system for CERN:



https://cds.cern.ch/record/1560053/files/CERN-THESIS-2013-073.pdf?subformat=pdfa



You can find more works that is using Kamailio e.g. with google scholar:

https://scholar.google.com/scholar?hl=en_sdt=0%2C5=kamailio=



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: sr-users  On Behalf Of Daniel Cassar
Sent: Wednesday, June 3, 2020 8:08 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Request documentation of Path Flow of Kamailio



Dear Sir/Madam,



I am a student, doing a dissertation about the performance of VPN throughout 
VoIP Services whereas I decided to configure Kamailio with Siremis Web User 
Interface on Linux 18.04LTS. I also am using GNS3 as I am trying to connect the 
server with 3 different routers as a form of sites with different network. What 
am trying to do is that from the SIP I would try to call from one site to 
another and see the performance however I need some informations of the 
Kamailio Server. I need the path communication of how Kamailio works meaning 
the traffic, protocols being used and these are multicast or unicast when 
transfer from one site to another. Is this information available somewhere as I 
seem not to find it anywhere which is why I'm sending you to find out if you 
have these documentations that I request. I hope to hear from you soon and 
thanks.



Sincerely,



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


Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-03 Thread Karsten Horsmann
Hi Frederico,

good point. Will also update my test setup and have a look at the new
functions.

Cheers
Karsten Horsmann

Federico Cabiddu  schrieb am Mi., 3. Juni 2020,
20:41:

> Hi,
> did you try to capture the traffic going towards homer?
> Siptrace module has internally changed in release 5.3 and some things that
> used to work in 5.2 are not working or are not doing it in the expected way.
> There have been several fixes since 5.3.0, some of them are still only in
> master branch, I suggest you to use the latest 5.3.4 and have a look at the
> new capture modes and
> http://www.kamailio.org/docs/modules/5.3.x/modules/siptrace.html#siptrace.f.sip_trace_mode
>  function.
> Hope this helps.
>
> Cheers,
>
> Federico
>
> On Wed, Jun 3, 2020 at 7:16 PM Karsten Horsmann 
> wrote:
>
>> Hi,
>>
>> yes same config file. Forgot that to mention.
>>
>> Cheers
>> Karsten Horsmann
>>
>> David Villasmil  schrieb am Mi., 3. Juni
>> 2020, 18:48:
>>
>>> Same config file?
>>>
>>> On Wed, 3 Jun 2020 at 17:20, Karsten Horsmann 
>>> wrote:
>>>
 Hi list,

 I saw some strange behavior in Kamailio 5.3.0 with HEPv3. My Kamailio
 serves webrtc and sip tls and captures that to an Homer 7.7 instance.

 I see only the UAC Parts of the message and not the answers from
 Kamailio in that scenario.

 Maybe I reached the max Paket size for udp. Hard to debug. In
 production I saw everything (but there I used and older Kamailio 5.2.x and
 Homer 5.5 which can handle fragment udp).

 Any ideas how to hunt the root cause of the problem?

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

>>> --
>>> Regards,
>>>
>>> David Villasmil
>>> email: david.villasmil.w...@gmail.com
>>> phone: +34669448337
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Request documentation of Path Flow of Kamailio

2020-06-03 Thread Henning Westerholt
Hello Daniel,

thanks for your interest in Kamailio. Looking forward to see the results of 
your work, please free to give some feedback if its finished. 

Being an open source project, there is many documentations available e.g. in 
our wiki. But most of its is more reference character and probably not 
something that you can directly use in an academic setting.

But there is already some work outside in academia which might be useful for 
you. Check e.g. this diploma thesis out, which describe the implementation of 
Kamailio as a telephone system for CERN:

https://cds.cern.ch/record/1560053/files/CERN-THESIS-2013-073.pdf?subformat=pdfa

You can find more works that is using Kamailio e.g. with google scholar:
https://scholar.google.com/scholar?hl=en_sdt=0%2C5=kamailio=

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

From: sr-users  On Behalf Of Daniel Cassar
Sent: Wednesday, June 3, 2020 8:08 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Request documentation of Path Flow of Kamailio

Dear Sir/Madam,

I am a student, doing a dissertation about the performance of VPN throughout 
VoIP Services whereas I decided to configure Kamailio with Siremis Web User 
Interface on Linux 18.04LTS. I also am using GNS3 as I am trying to connect the 
server with 3 different routers as a form of sites with different network. What 
am trying to do is that from the SIP I would try to call from one site to 
another and see the performance however I need some informations of the 
Kamailio Server. I need the path communication of how Kamailio works meaning 
the traffic, protocols being used and these are multicast or unicast when 
transfer from one site to another. Is this information available somewhere as I 
seem not to find it anywhere which is why I'm sending you to find out if you 
have these documentations that I request. I hope to hear from you soon and 
thanks.

Sincerely,

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


Re: [SR-Users] Polycom looses registration within cluster scenario.

2020-06-03 Thread Zhan Bazarov
Actually I've fixed the issue by adding this:
fix_nated_register();
add_contact_alias();
istead of 
fix_nated_contact();

and then On the second kam(if request coming from another kam) I'm doing
this:
handle_ruri_alias();





--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

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


Re: [SR-Users] kamcmd mtree.match

2020-06-03 Thread Henning Westerholt
Hello Volker,

have you tried with the prefix "s" as suggested on the list:

kamcmd mtree.match siteId s:49241531075212 0

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com

From: Volker Denneberg 
Sent: Wednesday, June 3, 2020 8:56 PM
To: Henning Westerholt ; Kamailio (SER) - Users Mailing List 

Subject: Re: kamcmd mtree.match

Hello Henning,

I can't get any result different from "500 - Invalid Parameters", no matter 
what (nonsense) I enter
   kamcmd mtree.match siteId 49241531075212 0
   kamcmd mtree.match siteId 49241531075212 2
   kamcmd mtree.match siteId 49241531075212 77
   kamcmd mtree.match siteId 4924153 77
   kamcmd mtree.match siteId
   kamcmd mtree.match
   kamcmd mtree.match 1 2 3

Looking at mtree_mod.c

void rpc_mtree_match(rpc_t* rpc, void* ctx)
{
str tname = STR_NULL;
str tomatch = STR_NULL;
int mode = -1;

m_tree_t *tr;

if(!mt_defined_trees())
{
rpc->fault(ctx, 500, "Empty tree list.");
return;
}

if (rpc->scan(ctx, ".SSd", , , ) < 3) {
rpc->fault(ctx, 500, "Invalid Parameters");
return;
}

if (mode !=0 && mode != 2) {
rpc->fault(ctx, 500, "Invalid parameter 'mode'");
return;
}


I would guess that something is going wrong in rpc->scan() but so far I had no 
time to dig in.

Debug log (-) doesnt help me

 6(25280) DEBUG: ctl [../../core/io_wait.h:377]: io_watch_add(): DBG: 
io_watch_add(0x7f4fbaba82a0, 15, 3, 0x55f396f76000), fd_no=1
 6(25280) DEBUG: ctl [io_listener.c:442]: handle_new_connect(): handle_stream 
read: new connection (1) on /var/run/kamailio//kamailio_ctl
 6(25280) DEBUG: ctl [io_listener.c:495]: handle_stream_read(): handle_stream 
read: eof on /var/run/kamailio//kamailio_ctl
 6(25280) DEBUG: ctl [../../core/io_wait.h:599]: io_watch_del(): DBG: 
io_watch_del (0x7f4fbaba82a0, 15, -1, 0x10) fd_no=2 called


Regards,
Volker





From: Henning Westerholt mailto:h...@skalatan.de>>
Sent: Tuesday, June 2, 2020 16:15
To: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Cc: Volker Denneberg mailto:v.denneb...@m3connect.de>>
Subject: RE: kamcmd mtree.match


Hello Volker,



the error message you've got from the command looks like the generic error that 
is returned if the number or type of parameters do not match. Did you managed 
to get a match from the kamcmd command at all?



Further hints might be also visible in the kamailio log file.



Cheers,



Henning



--

Henning Westerholt - https://skalatan.de/blog/

Kamailio services - https://gilawa.com



From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Volker Denneberg
Sent: Sunday, May 31, 2020 12:03 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] kamcmd mtree.match



Hi,



given this mtree



kamcmd mtree.list siteId

{

tname: siteId

tprefix: 00492419697994

tvalue: {

00492419697994 2388

}

}

{

tname: siteId

tprefix: 492415310752

tvalue: {

492415310752 2388

}

}



i wonder why this lookup fails:



kamcmd mtree.match siteId 49241531075212 0

error: 500 - Invalid Parameters



My expectation was that 2nd tprefix should match.



I am using



modparam("mtree", "db_table", "mtrees")

modparam("mtree", "char_list", "0123456789+")

modparam("mtree", "mt_tree_type", 0)# payload type for tree 
data : string



Thanks in advance,

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


Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-03 Thread Federico Cabiddu
Hi,
did you try to capture the traffic going towards homer?
Siptrace module has internally changed in release 5.3 and some things that
used to work in 5.2 are not working or are not doing it in the expected way.
There have been several fixes since 5.3.0, some of them are still only in
master branch, I suggest you to use the latest 5.3.4 and have a look at the
new capture modes and
http://www.kamailio.org/docs/modules/5.3.x/modules/siptrace.html#siptrace.f.sip_trace_mode
 function.
Hope this helps.

Cheers,

Federico

On Wed, Jun 3, 2020 at 7:16 PM Karsten Horsmann  wrote:

> Hi,
>
> yes same config file. Forgot that to mention.
>
> Cheers
> Karsten Horsmann
>
> David Villasmil  schrieb am Mi., 3. Juni
> 2020, 18:48:
>
>> Same config file?
>>
>> On Wed, 3 Jun 2020 at 17:20, Karsten Horsmann 
>> wrote:
>>
>>> Hi list,
>>>
>>> I saw some strange behavior in Kamailio 5.3.0 with HEPv3. My Kamailio
>>> serves webrtc and sip tls and captures that to an Homer 7.7 instance.
>>>
>>> I see only the UAC Parts of the message and not the answers from
>>> Kamailio in that scenario.
>>>
>>> Maybe I reached the max Paket size for udp. Hard to debug. In production
>>> I saw everything (but there I used and older Kamailio 5.2.x and Homer 5.5
>>> which can handle fragment udp).
>>>
>>> Any ideas how to hunt the root cause of the problem?
>>>
>>> Cheers
>>> Karsten
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> --
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Does DMQ auto-discover cluster members + how?

2020-06-03 Thread Alex Balashov
It sounds to me like these discovered nodes are DMQ adjacencies of 
another DMQ node that _is_ properly a member of the production DMQ cluster.


On 6/3/20 2:01 PM, Henning Westerholt wrote:

Hello George,

In generally this should not happen. Have you already tried to restart 
the DMQ nodes?


You are not using a DNS record to populate the cluster members?

Cheers,

Henning

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com 

*From:* sr-users  *On Behalf Of 
*George Diamantopoulos

*Sent:* Wednesday, June 3, 2020 6:29 PM
*To:* Kamailio (SER) - Users Mailing List 
*Subject:* [SR-Users] Does DMQ auto-discover cluster members + how?

Hello all (again),

When running dmq.list_nodes on one of my production kamailio servers, I 
get several entries corresponding to staging instances of kamailio. 
These staging instances are located on separate broadcast domains 
(different VLANs), and none of them are configured in the 
notification_address parameter for the dmq module.


How do they end up there, and how do I get rid of them?

Thanks!

George


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



--
Alex Balashov | Principal | Evariste Systems LLC

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

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


Re: [SR-Users] Does DMQ auto-discover cluster members + how?

2020-06-03 Thread Henning Westerholt
Hello George,

In generally this should not happen. Have you already tried to restart the DMQ 
nodes?

You are not using a DNS record to populate the cluster members?

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

From: sr-users  On Behalf Of George 
Diamantopoulos
Sent: Wednesday, June 3, 2020 6:29 PM
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] Does DMQ auto-discover cluster members + how?

Hello all (again),

When running dmq.list_nodes on one of my production kamailio servers, I get 
several entries corresponding to staging instances of kamailio. These staging 
instances are located on separate broadcast domains (different VLANs), and none 
of them are configured in the notification_address parameter for the dmq module.

How do they end up there, and how do I get rid of them?

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


Re: [SR-Users] Trouble loading multiple javascripts with KEMI

2020-06-03 Thread Henning Westerholt
Hello Hector,

just answering about the performance part of the question – the performance 
impact is for the large majority of deployments outside not noticeable (for 
Lua, Python). Lua is comparable to native script, python is a bit slower. But 
you should not need to worry about it until you are going into the +100.000s 
subscriber range.   In most of the cases you will wait for IO (DB, DNS etc..) 
anyway.

There has been some presentation from Daniel on past Kamailio World editions 
about it, you find the details e.g. at 
https://www.kamailio.org/wiki/kemi/performance-tests/5.2.x  and also the 
scripts to do some benchmarking by yourself.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

From: sr-users  On Behalf Of Benjamín Visón
Sent: Wednesday, June 3, 2020 6:45 PM
To: sr-users@lists.kamailio.org
Cc: Hector Ventura Reyes 
Subject: [SR-Users] Trouble loading multiple javascripts with KEMI

I am using the module app_jsdt with KEMI and I am having trouble loading 
multiple javascript files. The interpreter only notices the last file that's 
loaded.

What I am trying to do is separate my logic so that everything is not inside 
the kamailio.conf.js (or the main file the contains the necessary functions if 
you will).

modparam("app_jsdt", "load", "/etc/kamailio/file1.js")
modparam("app_jsdt", "load", "/etc/kamailio/file2.js")
cfgengine "jsdt"

In the example above, only functions in file2 are recognized.

I am aware that I can use jsdt_run or jsdt_load but from KEMI I don't see a 
clear way to link this with things like events and timers or replies that don't 
necessarily go through the request_route.

(As a plus, I am wondering on performance on Javascript vs Python/Lua and if 
it's viable on high load, if anyone can throw 2 cents on that it would be 
helpful!)


Saludos,

[cid:image001.png@01D639E1.502316B0]

[cid:image002.png@01D639E1.502316B0]

[cid:image003.png@01D639E1.502316B0]

Benjamín Visón / IT Engineer / Software Developer
bvis...@gmail.com / (829)-664-5163

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


Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-03 Thread Karsten Horsmann
Hi,

yes same config file. Forgot that to mention.

Cheers
Karsten Horsmann

David Villasmil  schrieb am Mi., 3. Juni
2020, 18:48:

> Same config file?
>
> On Wed, 3 Jun 2020 at 17:20, Karsten Horsmann  wrote:
>
>> Hi list,
>>
>> I saw some strange behavior in Kamailio 5.3.0 with HEPv3. My Kamailio
>> serves webrtc and sip tls and captures that to an Homer 7.7 instance.
>>
>> I see only the UAC Parts of the message and not the answers from Kamailio
>> in that scenario.
>>
>> Maybe I reached the max Paket size for udp. Hard to debug. In production
>> I saw everything (but there I used and older Kamailio 5.2.x and Homer 5.5
>> which can handle fragment udp).
>>
>> Any ideas how to hunt the root cause of the problem?
>>
>> Cheers
>> Karsten
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-03 Thread David Villasmil
Same config file?

On Wed, 3 Jun 2020 at 17:20, Karsten Horsmann  wrote:

> Hi list,
>
> I saw some strange behavior in Kamailio 5.3.0 with HEPv3. My Kamailio
> serves webrtc and sip tls and captures that to an Homer 7.7 instance.
>
> I see only the UAC Parts of the message and not the answers from Kamailio
> in that scenario.
>
> Maybe I reached the max Paket size for udp. Hard to debug. In production I
> saw everything (but there I used and older Kamailio 5.2.x and Homer 5.5
> which can handle fragment udp).
>
> Any ideas how to hunt the root cause of the problem?
>
> Cheers
> Karsten
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Trouble loading multiple javascripts with KEMI

2020-06-03 Thread Benjamín Visón
I am using the module *app_jsdt *with *KEMI *and I am having trouble
loading multiple javascript files. The interpreter only notices the last
file that's loaded.

What I am trying to do is separate my logic so that everything is not
inside the kamailio.conf.js (or the main file the contains the necessary
functions if you will).

modparam("app_jsdt", "load", "/etc/kamailio/file1.js")
modparam("app_jsdt", "load", "/etc/kamailio/file2.js")
cfgengine "jsdt"

In the example above, only functions in file2 are recognized.

I am aware that I can use jsdt_run or jsdt_load but from KEMI I don't see a
clear way to link this with things like events and timers or replies that
don't necessarily go through the *request_route*.

(As a plus, I am wondering on performance on Javascript vs Python/Lua and
if it's viable on high load, if anyone can throw 2 cents on that it would
be helpful!)


Saludos,

[image: image.png]

[image: image.png]

 
[image: image.png]



Benjamín Visón / IT Engineer / Software Developer
bvis...@gmail.com / (829)-664-5163
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Does DMQ auto-discover cluster members + how?

2020-06-03 Thread George Diamantopoulos
Hello all (again),

When running dmq.list_nodes on one of my production kamailio servers, I get
several entries corresponding to staging instances of kamailio. These
staging instances are located on separate broadcast domains (different
VLANs), and none of them are configured in the notification_address
parameter for the dmq module.

How do they end up there, and how do I get rid of them?

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


[SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-03 Thread Karsten Horsmann
Hi list,

I saw some strange behavior in Kamailio 5.3.0 with HEPv3. My Kamailio
serves webrtc and sip tls and captures that to an Homer 7.7 instance.

I see only the UAC Parts of the message and not the answers from Kamailio
in that scenario.

Maybe I reached the max Paket size for udp. Hard to debug. In production I
saw everything (but there I used and older Kamailio 5.2.x and Homer 5.5
which can handle fragment udp).

Any ideas how to hunt the root cause of the problem?

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


Re: [SR-Users] Received ipv6 problem

2020-06-03 Thread Ahmed Marsou
I tried it but it is sending the unregister message to the second register
user.I want to send the message to previous.
First user register: ok
Second user register: register, and kamailio will send a message unregister
to the first.
First user: get unregister Message
Sorry, maybe I'm not understanding something. Now is sending the message to
contact.

El mié., 3 jun. 2020 a las 13:13, Ahmed Marsou ()
escribió:

> Ok, thank you so much.
>
> El mié., 3 jun. 2020 a las 12:54, Daniel-Constantin Mierla (<
> mico...@gmail.com>) escribió:
>
>> Hello,
>>
>> like Joel said, the reveiced filed in location record is set only for
>> NATed contacts and in ipv6 likely it is not the case.
>>
>> What you should do is like:
>>
>> $uac_req(ruri) = $(ulc (existingContact=>addr)[0]);
>>
>> if($(ulc(existingContact=>received)[0]) != $null) {
>>
>>$uac_req(duri) = $(ulc(existingContact=>received)[0]);
>>
>> }
>>
>> Cheers,
>> Daniel
>> On 03.06.20 12:27, Ahmed Marsou wrote:
>>
>> Hi, thanks for your response. I appreciate the help, I really appreciate
>> it.
>> My problem is that I have to send a MESSAGE to an application to show the
>> user a message.
>> Like that:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *$ var (address) = $ (ulc (existingContact => received) [0]); $ var
>> (ruri) = $ (var (address) {s.substr, 4,0}); # Submit a SIP request stating
>> the problem and its reason in the body $ uac_req (method) = "MESSAGE"; $
>> uac_req (ruri) = "sip:" + $ au + "@" + $ var (ruri); $ uac_req (furi) =
>> "sip: kamailio @ sip_domain"; $ uac_req (turi) = $ fu; $ uac_req (hdrs) =
>> "Max-Forwards: 70 \ r \ nEvent: reg \ r \ nContent-Type: text / plain \ r \
>> nAccept-Contact: *; + g.ext.app.registration \ r \ n" ; $ uac_req (body) =
>> "Already registered with another device ID"; uac_req_send ();*
>>
>> For the previous user, I mean. The first record, not the second. How can
>> I get the first source IP address to replace $ var (address) = $ (ulc
>> (existingContact => received) [0]); and send him the message? If I use save
>> (); module, I will have the same problem, because I will not be able to
>> find the previous IP source.
>> Thank you so much.
>> Kind regards.
>>
>> El mié., 3 jun. 2020 5:43, Joel Serrano  escribió:
>>
>>> Not exactly an answer to your specific question, but it might help solve
>>> your problem in a different way...
>>>
>>> If you using the registrar module with save()... you might be able to
>>> take advantage in some way of the flags 0x04:
>>>
>>>
>>> https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.f.save
>>>
>>>
>>> *"0x04 - store and maintain one contact per AoR. If there are other
>>> contact addresses for AoR not matching current registration, remove them.
>>> This mode ensures one contact per AoR (user)." *
>>>
>>> Regarding "received", I would think that you have it on IPV4 because the
>>> UA is probably behind NAT, and you are adding it in config script, with
>>> IPv6, there is no NAT, and --most likely-- you are not adding it, thus it's
>>> not saved to the database. Check if you are using fix_nated_register()
>>> somewhere in your config file.. For IPv6 it might be easier if you just
>>> pull the IP from the Contact info.
>>>
>>>
>>> Sorry if this isn't very helpful, I'm guessing a little based on the
>>> info you provided :)
>>>
>>> Cheers,
>>> Joel.
>>>
>>>
>>>
>>> On Tue, Jun 2, 2020 at 4:46 PM Ahmed Marsou 
>>> wrote:
>>>
 Hi;
 I'm using the received parameter to send a MESSAGE to unregsiter the
 first user that is registered to register the second one.
 Using:
 *modparam("usrloc", "received_column"*

 *modparam("registrar|nathelper", "received_avp", *

 and when I do a:
 select received from location;
 as you can see is null.
 +--+
 | received |
 +--+
 | NULL |
 +--+

 In IPV4 is working fine, but in IPV6 is not. Can you tell me how can I
 get this value?
 Im going crazy with that.

 reg_fetch_contacts("location", "$fu",
 "existingContact");
 if( $(ulc(existingContact=>user_agent)[0]) =~ "SPI/v"){
 $var(oldDeviceId) =
 $(ulc(existingContact=>callid)[0]{s.substr,9,0});
 $var(newDeviceId) =
 $(hdr(Call-ID){s.substr,9,0});
 if($var(oldDeviceId) !=  $var(newDeviceId) ){
 xlog("L_INFO","New device id is
 different:warn previous user another user overide him");
 $var(address) = $(ulc(existingContact=>
 *received*)[0]);
 $var(ruri) =
 $(var(address){s.substr,4,0});
 #Send a SIP Request signalling the
 problem and its reason on the body
 $uac_req(method)="MESSAGE";
 $uac_req(ruri) = "sip:"+ $au + "@" +
 

Re: [SR-Users] Received ipv6 problem

2020-06-03 Thread Ahmed Marsou
Ok, thank you so much.

El mié., 3 jun. 2020 a las 12:54, Daniel-Constantin Mierla (<
mico...@gmail.com>) escribió:

> Hello,
>
> like Joel said, the reveiced filed in location record is set only for
> NATed contacts and in ipv6 likely it is not the case.
>
> What you should do is like:
>
> $uac_req(ruri) = $(ulc (existingContact=>addr)[0]);
>
> if($(ulc(existingContact=>received)[0]) != $null) {
>
>$uac_req(duri) = $(ulc(existingContact=>received)[0]);
>
> }
>
> Cheers,
> Daniel
> On 03.06.20 12:27, Ahmed Marsou wrote:
>
> Hi, thanks for your response. I appreciate the help, I really appreciate
> it.
> My problem is that I have to send a MESSAGE to an application to show the
> user a message.
> Like that:
>
>
>
>
>
>
>
>
>
> *$ var (address) = $ (ulc (existingContact => received) [0]); $ var (ruri)
> = $ (var (address) {s.substr, 4,0}); # Submit a SIP request stating the
> problem and its reason in the body $ uac_req (method) = "MESSAGE"; $
> uac_req (ruri) = "sip:" + $ au + "@" + $ var (ruri); $ uac_req (furi) =
> "sip: kamailio @ sip_domain"; $ uac_req (turi) = $ fu; $ uac_req (hdrs) =
> "Max-Forwards: 70 \ r \ nEvent: reg \ r \ nContent-Type: text / plain \ r \
> nAccept-Contact: *; + g.ext.app.registration \ r \ n" ; $ uac_req (body) =
> "Already registered with another device ID"; uac_req_send ();*
>
> For the previous user, I mean. The first record, not the second. How can I
> get the first source IP address to replace $ var (address) = $ (ulc
> (existingContact => received) [0]); and send him the message? If I use save
> (); module, I will have the same problem, because I will not be able to
> find the previous IP source.
> Thank you so much.
> Kind regards.
>
> El mié., 3 jun. 2020 5:43, Joel Serrano  escribió:
>
>> Not exactly an answer to your specific question, but it might help solve
>> your problem in a different way...
>>
>> If you using the registrar module with save()... you might be able to
>> take advantage in some way of the flags 0x04:
>>
>>
>> https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.f.save
>>
>>
>> *"0x04 - store and maintain one contact per AoR. If there are other
>> contact addresses for AoR not matching current registration, remove them.
>> This mode ensures one contact per AoR (user)." *
>>
>> Regarding "received", I would think that you have it on IPV4 because the
>> UA is probably behind NAT, and you are adding it in config script, with
>> IPv6, there is no NAT, and --most likely-- you are not adding it, thus it's
>> not saved to the database. Check if you are using fix_nated_register()
>> somewhere in your config file.. For IPv6 it might be easier if you just
>> pull the IP from the Contact info.
>>
>>
>> Sorry if this isn't very helpful, I'm guessing a little based on the info
>> you provided :)
>>
>> Cheers,
>> Joel.
>>
>>
>>
>> On Tue, Jun 2, 2020 at 4:46 PM Ahmed Marsou 
>> wrote:
>>
>>> Hi;
>>> I'm using the received parameter to send a MESSAGE to unregsiter the
>>> first user that is registered to register the second one.
>>> Using:
>>> *modparam("usrloc", "received_column"*
>>>
>>> *modparam("registrar|nathelper", "received_avp", *
>>>
>>> and when I do a:
>>> select received from location;
>>> as you can see is null.
>>> +--+
>>> | received |
>>> +--+
>>> | NULL |
>>> +--+
>>>
>>> In IPV4 is working fine, but in IPV6 is not. Can you tell me how can I
>>> get this value?
>>> Im going crazy with that.
>>>
>>> reg_fetch_contacts("location", "$fu", "existingContact");
>>> if( $(ulc(existingContact=>user_agent)[0]) =~ "SPI/v"){
>>> $var(oldDeviceId) =
>>> $(ulc(existingContact=>callid)[0]{s.substr,9,0});
>>> $var(newDeviceId) =
>>> $(hdr(Call-ID){s.substr,9,0});
>>> if($var(oldDeviceId) !=  $var(newDeviceId) ){
>>> xlog("L_INFO","New device id is
>>> different:warn previous user another user overide him");
>>> $var(address) = $(ulc(existingContact=>
>>> *received*)[0]);
>>> $var(ruri) =
>>> $(var(address){s.substr,4,0});
>>> #Send a SIP Request signalling the
>>> problem and its reason on the body
>>> $uac_req(method)="MESSAGE";
>>> $uac_req(ruri) = "sip:"+ $au + "@" +
>>> $var(ruri);
>>> $uac_req(furi) =
>>> "sip:kamailio@sip_domain";
>>> $uac_req(turi) = $fu;
>>> $uac_req(hdrs)="Max-Forwards:
>>> 70\r\nEvent: reg\r\nContent-Type:
>>> text/plain\r\nAccept-Contact:*;+g.ext.app.registration\r\n";
>>> $uac_req(body)="Already registered with
>>> another device id";
>>> uac_req_send();
>>> drop;
>>> }

Re: [SR-Users] Received ipv6 problem

2020-06-03 Thread Daniel-Constantin Mierla
Hello,

like Joel said, the reveiced filed in location record is set only for
NATed contacts and in ipv6 likely it is not the case.

What you should do is like:

$uac_req(ruri) = $(ulc (existingContact=>addr)[0]);

if($(ulc(existingContact=>received)[0]) != $null) {

   $uac_req(duri) = $(ulc(existingContact=>received)[0]);

}

Cheers,
Daniel

On 03.06.20 12:27, Ahmed Marsou wrote:
> Hi, thanks for your response. I appreciate the help, I really
> appreciate it. 
> My problem is that I have to send a MESSAGE to an application to show
> the user a message. 
> Like that:
> *$ var (address) = $ (ulc (existingContact => received) [0]);
> $ var (ruri) = $ (var (address) {s.substr, 4,0});
> # Submit a SIP request stating the problem and its reason in the body
> $ uac_req (method) = "MESSAGE";
> $ uac_req (ruri) = "sip:" + $ au + "@" + $ var (ruri);
> $ uac_req (furi) = "sip: kamailio @ sip_domain";
> $ uac_req (turi) = $ fu;
> $ uac_req (hdrs) = "Max-Forwards: 70 \ r \ nEvent: reg \ r \
> nContent-Type: text / plain \ r \ nAccept-Contact: *; +
> g.ext.app.registration \ r \ n" ;
> $ uac_req (body) = "Already registered with another device ID";
> uac_req_send ();*
>
> For the previous user, I mean. The first record, not the second. How
> can I get the first source IP address to replace $ var (address) = $
> (ulc (existingContact => received) [0]); and send him the message? If
> I use save (); module, I will have the same problem, because I will
> not be able to find the previous IP source.
> Thank you so much.
> Kind regards.
>
> El mié., 3 jun. 2020 5:43, Joel Serrano  > escribió:
>
> Not exactly an answer to your specific question, but it might help
> solve your problem in a different way... 
>
> If you using the registrar module with save()... you might be able
> to take advantage in some way of the flags 0x04:
>
> 
> https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.f.save
>
> /"0x04 - store and maintain one contact per AoR. If there are
> other contact addresses for AoR not matching current registration,
> remove them. This mode ensures one contact per AoR (user)."
> /
>
> Regarding "received", I would think that you have it on IPV4
> because the UA is probably behind NAT, and you are adding it in
> config script, with IPv6, there is no NAT, and --most likely-- you
> are not adding it, thus it's not saved to the database. Check if
> you are using fix_nated_register() somewhere in your config file..
> For IPv6 it might be easier if you just pull the IP from the
> Contact info.
>
>
> Sorry if this isn't very helpful, I'm guessing a little based on
> the info you provided :)
>
> Cheers, 
> Joel.
>
>
>
> On Tue, Jun 2, 2020 at 4:46 PM Ahmed Marsou  > wrote:
>
> Hi;
> I'm using the received parameter to send a MESSAGE to
> unregsiter the first user that is registered to register the
> second one.
> Using: 
> *modparam("usrloc", "received_column"*
> *modparam("registrar|nathelper", "received_avp",
> *
> *
> *
> and when I do a:
> select received from location;
> as you can see is null.
> +--+
> | received |
> +--+
> | NULL     |
> +--+
>
> In IPV4 is working fine, but in IPV6 is not. Can you tell me
> how can I get this value?
> Im going crazy with that.
>
>                 reg_fetch_contacts("location", "$fu",
> "existingContact");
>                 if( $(ulc(existingContact=>user_agent)[0]) =~
> "SPI/v"){
>                         $var(oldDeviceId) =
> $(ulc(existingContact=>callid)[0]{s.substr,9,0});
>                         $var(newDeviceId) =
> $(hdr(Call-ID){s.substr,9,0});
>                         if($var(oldDeviceId) !=
>  $var(newDeviceId) ){
>                                 xlog("L_INFO","New device id
> is different:warn previous user another user overide him");
>                                 $var(address) =
> $(ulc(existingContact=>*received*)[0]);
>                                 $var(ruri) =
> $(var(address){s.substr,4,0});
>                                 #Send a SIP Request signalling
> the problem and its reason on the body
>                                 $uac_req(method)="MESSAGE";
>                                 $uac_req(ruri) = "sip:"+ $au +
> "@" + $var(ruri);
>                                 $uac_req(furi) =
> "sip:kamailio@sip_domain";
>                                 $uac_req(turi) = $fu;
>                                 $uac_req(hdrs)="Max-Forwards:
> 70\r\nEvent: reg\r\nContent-Type:
> 

Re: [SR-Users] Can't work around double SDP rewrite issue with rtpengine and config script SDP manipulation

2020-06-03 Thread Daniel-Constantin Mierla
The loose_route() is marking local Route headers for deletion, so after
the msg_apply_changes() you don't see them. It should work fine if you
do not need to inspect them afterwards, but if you are not sure, it is
recommended do it before.

Cheers,
Daniel

On 02.06.20 09:49, George Diamantopoulos wrote:
> Daniel, that worked instantly, thank you!
>
> Care to elaborate on how msg_apply_changes() interferes with
> loose_route? I also remember msg_apply_changes() complaining if called
> after record_route(), is it related?
>
> On Mon, 1 Jun 2020 at 21:24, Daniel-Constantin Mierla
> mailto:mico...@gmail.com>> wrote:
>
> Hello,
>
> use msg_apply_changes just after replace_body_str(), eventually
> before loose routing processing for requests within dialog.
>
> Cheers,
> Daniel
>
> On 01.06.20 13:34, George Diamantopoulos wrote:
>> Hello all,
>>
>> I'm facing one of those cases where I need to edit the body of a
>> SIP message, which is then to be fed to rtpengine for processing.
>> Although I've taken every precaution I've read about on this list
>> and elsewhere, I can't prevent the edited line from appearing
>> twice in the outgoing message.
>>
>> The configuration file used is huge, so I'm going to try to
>> provide a high-level overview here. But first, the things (I
>> think) I know to be requirements, and which I have striven to meet:
>>
>>   * If SDP is to be edited, then all such processing is to be
>> carried out in such a way in the script, so that
>> msg_apply_changes() is run as many times as needed before
>> rtpengine offer/answer/manage is called.
>>   * rtpengine offer/answer/manage is to be called only once per
>> script iteration
>>   * msg_apply_changes can only be called in a request route, or
>> in the core reply_route (i.e. *not* in tm-managed
>> on_reply_route[XXX] blocks)
>>
>> In my case, additionally the following are true:
>>
>>   * SDP processing (other than the one performed by rtpengine)
>> takes place in one common route for all cases where it needs
>> to happen. These are two at the moment in my scenario:
>>   o Early in the WITHINDLG route (of the example config file)
>>   o After the sanity checks in the reply_route (of the
>> example config file)
>>   * msg_apply changes() is called once, for each script iteration:
>>   o right before rtpengine_manage() is called, provided that
>> t_is_request_route() returns true (so that I don't
>> accidentally call it from a branch route or anything)
>>   + rtpengine_manage() is called in its own route, which
>> is very similar to the example config file's
>> "NATMANAGE" route. Since NATMANAGE is called in all
>> branch and on_reply_routes, I employ
>> t_is_request_route() here to make sure it won't
>> execute in those cases.
>>   o at the end of the "core" reply_route
>>
>> Now regarding the actual config-file-controlled SDP manipulation,
>> it only consists of a single call to replace_body_str(). The
>> purpose is to edit a line in the message body from something like:
>>
>>   * a=fmtp:101 0-16
>>
>> to something along the lines of:
>>
>>   * a=fmtp:101 0-15
>>
>> For replies, this works as expected.
>>
>> For in-dialog requests, however, I end up with both the original
>> and the edited lines:
>> a=fmtp:101 0-16 (the original line)
>> ... other SDP stuff ...
>> a=fmtp:101 0-15 (the edited line)
>>
>> If anyone could point out any misconceptions I have about
>> msg_apply_changes, SDP rewriting from the script and
>> rtp_engine_X() interoperability, I would be more than grateful.
>>
>> Thank you in advance and I apologize for the long read.
>>
>> Best regards,
>> George Diamantopoulos
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@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 
> Funding: https://www.paypal.me/dcmierla
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

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


Re: [SR-Users] Received ipv6 problem

2020-06-03 Thread Ahmed Marsou
Hi, thanks for your response. I appreciate the help, I really appreciate
it.
My problem is that I have to send a MESSAGE to an application to show the
user a message.
Like that:









*$ var (address) = $ (ulc (existingContact => received) [0]);$ var (ruri) =
$ (var (address) {s.substr, 4,0});# Submit a SIP request stating the
problem and its reason in the body$ uac_req (method) = "MESSAGE";$ uac_req
(ruri) = "sip:" + $ au + "@" + $ var (ruri);$ uac_req (furi) = "sip:
kamailio @ sip_domain";$ uac_req (turi) = $ fu;$ uac_req (hdrs) =
"Max-Forwards: 70 \ r \ nEvent: reg \ r \ nContent-Type: text / plain \ r \
nAccept-Contact: *; + g.ext.app.registration \ r \ n" ;$ uac_req (body) =
"Already registered with another device ID";uac_req_send ();*

For the previous user, I mean. The first record, not the second. How can I
get the first source IP address to replace $ var (address) = $ (ulc
(existingContact => received) [0]); and send him the message? If I use save
(); module, I will have the same problem, because I will not be able to
find the previous IP source.
Thank you so much.
Kind regards.

El mié., 3 jun. 2020 5:43, Joel Serrano  escribió:

> Not exactly an answer to your specific question, but it might help solve
> your problem in a different way...
>
> If you using the registrar module with save()... you might be able to take
> advantage in some way of the flags 0x04:
>
>
> https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.f.save
>
>
> *"0x04 - store and maintain one contact per AoR. If there are other
> contact addresses for AoR not matching current registration, remove them.
> This mode ensures one contact per AoR (user)."*
>
> Regarding "received", I would think that you have it on IPV4 because the
> UA is probably behind NAT, and you are adding it in config script, with
> IPv6, there is no NAT, and --most likely-- you are not adding it, thus it's
> not saved to the database. Check if you are using fix_nated_register()
> somewhere in your config file.. For IPv6 it might be easier if you just
> pull the IP from the Contact info.
>
>
> Sorry if this isn't very helpful, I'm guessing a little based on the info
> you provided :)
>
> Cheers,
> Joel.
>
>
>
> On Tue, Jun 2, 2020 at 4:46 PM Ahmed Marsou  wrote:
>
>> Hi;
>> I'm using the received parameter to send a MESSAGE to unregsiter the
>> first user that is registered to register the second one.
>> Using:
>> *modparam("usrloc", "received_column"*
>>
>> *modparam("registrar|nathelper", "received_avp",*
>>
>> and when I do a:
>> select received from location;
>> as you can see is null.
>> +--+
>> | received |
>> +--+
>> | NULL |
>> +--+
>>
>> In IPV4 is working fine, but in IPV6 is not. Can you tell me how can I
>> get this value?
>> Im going crazy with that.
>>
>> reg_fetch_contacts("location", "$fu", "existingContact");
>> if( $(ulc(existingContact=>user_agent)[0]) =~ "SPI/v"){
>> $var(oldDeviceId) =
>> $(ulc(existingContact=>callid)[0]{s.substr,9,0});
>> $var(newDeviceId) = $(hdr(Call-ID){s.substr,9,0});
>> if($var(oldDeviceId) !=  $var(newDeviceId) ){
>> xlog("L_INFO","New device id is
>> different:warn previous user another user overide him");
>> $var(address) = $(ulc(existingContact=>
>> *received*)[0]);
>> $var(ruri) =
>> $(var(address){s.substr,4,0});
>> #Send a SIP Request signalling the
>> problem and its reason on the body
>> $uac_req(method)="MESSAGE";
>> $uac_req(ruri) = "sip:"+ $au + "@" +
>> $var(ruri);
>> $uac_req(furi) = "sip:kamailio@sip_domain
>> ";
>> $uac_req(turi) = $fu;
>> $uac_req(hdrs)="Max-Forwards:
>> 70\r\nEvent: reg\r\nContent-Type:
>> text/plain\r\nAccept-Contact:*;+g.ext.app.registration\r\n";
>> $uac_req(body)="Already registered with
>> another device id";
>> uac_req_send();
>> drop;
>> }
>> }
>>
>>
>> Thank you.
>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Polycom looses registration within cluster scenario.

2020-06-03 Thread Zhan Bazarov
Hi. How did you deal with that? 
From my side I've tried to use path and outbound on the polycom side.. Now
polycom is not jumbing between proxies but still loosing registration...



--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

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