[SR-Users] UPDATE relayed from wrong socket

2018-10-11 Thread Sergiu Pojoga
Hi ppl,

I have this problem with call transfer, may be someone can help.

The phone to the far right is registered with the Registrar to the far left
using two PATH headers (trespassing two proxy ports, 5070 then 5060).

As you can see in the graph below, after receiving the UPDATE request,
Kamailio relays it further from port 5060, I expect it to be from 5070 just
like the dialog forming INVITE and the CANCEL afterwards.

[image: image.png]

The UPDATE has a to-tag, but unlike the original INVITE - it has no Route
header!???

route[*WITHINDLG*] {
if (!has_totag()) return;
if (loose_route()) {
route(DLGURI);
if (is_method("BYE")) {

...

}
else if ( is_method("ACK") ) {
route(NATMANAGE);
}
else if ( is_method("NOTIFY") ) {
record_route();
}

route(RELAY);
exit;
}

if ( is_method("ACK") ) {

...

}

# handle UPDATE method for in-dialog requests
if (is_method("*UPDATE*")) {
route(DLGURI);
record_route();
route(RELAY);
}
}

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


[SR-Users] Subscription from asterisk

2018-10-11 Thread willy

Hello all.

I'm trying to share states and presence from kamailio between asterisks.

Is there a way to do this in kamailio?

Thank you,

willy d


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


Re: [SR-Users] DIALPLAN Module: doubts about regular expression usage

2018-10-11 Thread Stefano Bertuola
Hi again.

I have a last doubt: the dialplan.translate returns both  Output and
Attributes values.

How is returned (if returned) the ATTRS value with dp_translate() function?

How can I use it in Kamailio script?

Br. Stefano



On Thu, Oct 11, 2018 at 8:40 AM Stefano Bertuola 
wrote:

> Hi Daniel.
>
> Thanks for your suggestion. It worked:
>
> kamcmd> dialplan.dump 2
> {
> DPID: 2
> ENTRIES: {
> ENTRY: {
> PRIO: 1
> MATCHOP: 1
> MATCHEXP: ^\+39.
> MATCHLEN: 0
> SUBSTEXP: ^\+(.*)$
> REPLEXP: \1
> ATTRS: 1
> }
> }
> }
> kamcmd> dialplan.translate 2 s:+3912345
> {
> Output: 6212345
> Attributes: 1
> }
> kamcmd> dialplan.translate 2 '+3912345'
> error: 500 - No translation
> kamcmd> dialplan.translate 2 "+3912345"
> error: 500 - No translation
>
>
> Instead, with single or double quotes, it doesn't.
>
> Br. Stefano
>
> On Wed, Oct 10, 2018 at 12:55 PM David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
>> Or single-quotes
>>
>> On Wed, Oct 10, 2018, 11:50 Daniel-Constantin Mierla 
>> wrote:
>>
>>> Hello,
>>>
>>> this might be due to automatic translation of kamcmd for its parameters
>>> that look like numbers, can you try with:
>>>
>>> kamcmd dialplan.translate 1 s:+39123456
>>>
>>> If still fails, send here the log messages with debug=3 when running the
>>> rpc command.
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>> On 10.10.18 10:00, Stefano Bertuola wrote:
>>>
>>> Hi Patrick.
>>>
>>> Thanks for your replay.
>>>
>>> I also verified an issue with *dialplan.translate* command in *kamcmd*.
>>>
>>> Running a live test it is working.
>>>
>>> mysql> select * from dialplan;
>>>
>>> ++--++--+--+---+--+--+---+
>>> | id | dpid | pr | match_op | match_exp| match_len | subst_exp|
>>> repl_exp | attrs |
>>>
>>> ++--++--+--+---+--+--+---+
>>> |  1 |1 |  1 |1 | ^(\+39)(.*)$ | 0 | ^(\+39)(.*)$ |
>>> \2   | 1 |
>>>
>>> ++--++--+--+---+--+--+---+
>>>
>>> NOTICE: 

[SR-Users] db_mysql when compiling Kamailio

2018-10-11 Thread Wilkins, Steve
Hello All,

When  db_mysql is selected in the make, the make looks for -lmariadb. However, 
I want MySQL, not mariadb.  Is there a way to let the make know that MySQL is 
preferred ov mariadb?

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


Re: [SR-Users] registrar timer and database modes

2018-10-11 Thread Mojtaba
Hi,
In Kamailio version 5.1 or higher, you could see this configure
parameter like this:
modparam("ims_usrloc_scscf", "db_mode", 1), which used database to
save location on subscriber table. Maybe you should update your
kamailio.

When the subscriber deregister itself, it's record in database is
deleted logically, and needed some time to deleted from database.
With Regards.Mojtaba Esfandiari.S





On Wed, Oct 10, 2018 at 9:42 PM eyas barhouk  wrote:
>
> hello dears ,
>
> i'm using kamailio 5.0.1 as IMS platform and have the following issues :
>
> for Module "ims_usrloc_scscf" there is no documentation and i can't find a 
> way to set database mode =2 and define the tables .
> for Module "ims_registrar_scscf"when the user Unregistered it takes about 1~2 
> minutes to remove it from the memory on database mode 0 .
>
> so is there a way to minimize the timer when the user Unregistered and remove 
> it immediately from the memory  .
>
> thanks in advance & best regards.
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



-- 
--Mojtaba Esfandiari.S

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


Re: [SR-Users] Kamailio with Asterisk as Media Relay

2018-10-11 Thread David Villasmil
The default config should help you understand. I'd recommend you read
https://www.kamailio.org/wiki/tutorials/getting-started/main and take it
from there.

On Thu, Oct 11, 2018, 08:52 Alex Balashov  wrote:

> On Thu, Oct 11, 2018 at 09:37:05AM +0200, Benjamin Marty wrote:
>
> > Ok, that sounds perfect. Is there a sample kamailio configuration file
> > of how to achieve such a thing?
>
> I mean, there are a lot of ways such a thing could work. What you're
> really asking is, "how do I do basic Kamailio"? :-) And the answer is
> the same as for anything else that involves a learning process over
> time.
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Addition of a code of conduct to the Kamailio repository

2018-10-11 Thread Henning Westerholt
Hello,

with commit a213d9d1 I introduced a Code of Conduct to the Kamailio repository 
[1]. 

This topic was initially discussed during the Kamailio development workshop, 
started from Daniel. During the development workshop we came to the conclusion 
that this is a policy decision and needs broader discussion in the Kamailio 
Management board and also the Kamailio Admin-Team.

This discussion started last Friday, and after several days of discussion we 
decided to choose an existing Code of Conduct. We adapted the CoC of the 
Debian Project [2] and did a few changes for readability and also to adapt it 
to the (smaller) scope of our project.

This CoC is in my opinion a good, generic and pragmatic document. Many people 
in our community are already in one way or the other involved in the Debian 
project.

I am aware that this is (especially right now) a hot topic for some people. My 
personal opinion is that we managed to get a great fit to the existing 
Kamailio community culture. The history of this project shows that we are an 
open project and welcome contributions from anybody. So I don't expect any 
impact because of this change.

We also ensured that the CoC only applies inside the Kamailio project, and 
that the Kamailio Management board is the authoritative instance in any 
conflicts about this topic.

I don't want to start a classical "bike-shedding" discussion on this list 
about this topic.. But if you have any questions about this, lets us know. You 
can also contact the Kamailio Management Board, if you want to keep it 
private.

Best regards,

Henning Westerholt


[1] https://github.com/kamailio/kamailio/blob/master/CODE_OF_CONDUCT.md
[2] https://www.debian.org/code_of_conduct

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


Re: [SR-Users] Kamailio with Asterisk as Media Relay

2018-10-11 Thread Alex Balashov
On Thu, Oct 11, 2018 at 09:37:05AM +0200, Benjamin Marty wrote:

> Ok, that sounds perfect. Is there a sample kamailio configuration file
> of how to achieve such a thing?

I mean, there are a lot of ways such a thing could work. What you're
really asking is, "how do I do basic Kamailio"? :-) And the answer is
the same as for anything else that involves a learning process over
time.

-- 
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


[SR-Users] Kamailio with Asterisk as Media Relay

2018-10-11 Thread Benjamin Marty
Hello

Ok, that sounds perfect. Is there a sample kamailio configuration file of
how to achieve such a thing?
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Sharing xavp’s between nodes.

2018-10-11 Thread Igor Olhovskiy
Hi!

Is there any possibility to share xavp’s between Kamailio nodes? Idea is to 
share result of ds_select_dst between several nodes and as 5.2 Kamailio stores 
result in xavp - need to share this structure as well

Right now sharing between nodes is done on sht + dmq and I’m not sure I can 
save xavp in sht.

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