Re: [SR-Users] Best way to do routing against a list of gateways

2017-11-29 Thread Yu Boot
Hello. Try carrierroute module. Use it with failure_route to iterate thru different gateways from database. 29.11.2017 14:29, voipspace voipspace пишет: Hi I want to build the following scenerio There should be some sort of database table to hold a list of gateway entries with fields ip,

Re: [SR-Users] allow_trusted not passing

2017-11-29 Thread voipspace voipspace
Thanks guys It worked for me now (allow_trusted("$si", "$proto"))and set UDP as proto is database  28.11.2017, 15:01, "Daniel-Constantin Mierla" :Hello,one more thing to check -- the comparison is done by comparing thestring values, be sure there is no whitespace around.On the

Re: [SR-Users] [CFP] FOSDEM 2018, RTC devroom, speakers, volunteers neeeded

2017-11-29 Thread Daniel-Constantin Mierla
Hello, replying for a quick reminder -- if anyone is planning to present at FOSDEM RTC Dev room, be aware that is now less than two days time for submitting your proposal. Does not have to be SIP or Kamailio-related, anything cool you hack for VoIP, WebRTC, etc ... Cheers, Daniel On 19.10.17

Re: [SR-Users] lcr_id vs lcr_count

2017-11-29 Thread Juha Heinanen
Patrick Wakano writes: > I aggre with the lcr_count purpose and its usage for in-memory data. > However the problem I mentioned is that I cannot have an lcr_id of 1000 > eventough I have only one entry because my lcr_count is 50... > It is not about having a huge amount of lcr_ids but being able

Re: [SR-Users] 400 Bad From URI reply from kamalio

2017-11-29 Thread Daniel-Constantin Mierla
On 29.11.17 11:45, Konstantin Tumalevich wrote: > One of our clients expiriences strange error. > > Their system sends BYE with different from address (which IP is > presented in Contact header of initial INVITE) and Kamailio > immediately responded with "400 Bad From URI". > > In which module

[SR-Users] Best way to do routing against a list of gateways

2017-11-29 Thread voipspace voipspace
Hi I want to build the following scenerio There should be some sort of database table to hold a list of gateway entries with fields ip, prefix, and name/description. It would be good to use exiting tables to use what is avaiable. Have been looking at the lcr and drouting tablesbut it seems they

[SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Aidar Kamalov
Hello, I have two(or more) kamailio servers with dmq module and dmq_usrloc - sip1.example.com and sip2.example.com publish and subcribe replication works too. BLF works fine if clients connected to the same kamailio server, because in active_watchers table stored with same domain

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Aidar Kamalov
It is already replicated. but domains are not same. 2017-11-29 15:52 GMT+03:00 Yuriy Gorlichenko : > Hi. Just replicate publish messages to second server. > > On Nov 29, 2017 19:46, "Aidar Kamalov" wrote: > >> Hello, >> >> I have two(or more)

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Yuriy Gorlichenko
Hi. Just replicate publish messages to second server. On Nov 29, 2017 19:46, "Aidar Kamalov" wrote: > Hello, > > I have two(or more) kamailio servers with dmq module and dmq_usrloc - > sip1.example.com and sip2.example.com > publish and subcribe replication works too. >

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Charles Chance
Hello, Why are you trying to operate across domains in the same DMQ cluster? Usually, servers operating in different domains do not need to be aware of each other's user location and/or subscription records - if a request is for another domain, simply forward it to the server(s) responsible for

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Aidar Kamalov
I have some kamailio servers in each city: city1.example.com, city2.example.com, city3.example.com. Users in city1 connects to city1.example.com. each kamailio has in config: alias="city1.example.com" alias="city2.example.com" alias="city3.example.com" modparam("dmq", "server_address",

Re: [SR-Users] Best way to do routing against a list of gateways

2017-11-29 Thread voipspace voipspace
I suppose I just could do sql direct on lcr_gw table like select ip_addr, prefix from lcr_gw where gw_name = "my_termination_provider" What I wanted to know is a module already doing this function. I am looking for a function because in theory it will be more tested and because i heard sql

Re: [SR-Users] Best way to do routing against a list of gateways

2017-11-29 Thread Alexandru Covalschi
I'd suggest creating a separate htable with your gateways and just query it, you don't need a separate module for key-value matching Alexandru Covalschi VoIP Engineer and System Administrator tel: +373 673 98 493 > 29 нояб. 2017 г., в 13:58, voipspace voipspace

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Charles Chance
Hello, So I understand that each server has its own FQDN and you want to point users to their closest proxy, but are all servers part of the same 'logical' domain? The SIP domain/realm does not have to be the same as the address/hostname of the individual proxy server that is servicing a

Re: [SR-Users] Best way to do routing against a list of gateways

2017-11-29 Thread voipspace voipspace
http://www.kamailio.org/docs/modules/4.4.x/modules/htable.html#htable.rpc.reload looks like it is a good method. thanks29.11.2017, 14:48, "voipspace voipspace" : How then could I dynamic add or remove htables entries 29.11.2017, 14:40, "Alexandru Covalschi"

Re: [SR-Users] OpenSIPS-devel not starting (TCP Error)

2017-11-29 Thread SamyGo
Opps ! wrong window :) On Wed, Nov 29, 2017 at 2:17 AM, Sebastian Damm wrote: > Hi, > > I think you ended up on the wrong mailing list. This list is for > Kamailio, not OpenSIPS. You might want to ask your question again > somewhere here: >

Re: [SR-Users] can kamailio send 183 to caller

2017-11-29 Thread Brandon Armstead
if(is_method(“INVITE”)){ . sl_send_reply(“183”, “Ringing”); } On Wed, Nov 29, 2017 at 6:44 PM 赵国杰 wrote: > Hello guys, > Is it possible for kamailio to initiate a 183 to caller? > > Thanks > > > > ___ > Kamailio

Re: [SR-Users] max_contacts does not work as expected

2017-11-29 Thread Gholamreza Sabery
No body has any other ideas? On Sun, Nov 26, 2017 at 11:49 AM, Gholamreza Sabery wrote: > I have tested it. These records are not actually expired. I even found a > situation in which a user has 16 different records in the database with the > same expiration time and the

Re: [SR-Users] Source socket/port for in-dialog requests

2017-11-29 Thread Donat Zenichev
Answer was found. The problem was in double rewriting of the remote uri. First, in natdetect route - add_contact_alias() was used: -Adds ;alias=ip:port parameter to contact URI containing received ip:port if contact uri ip:port does not match received ip:port. Second, fix_nated_contact was used

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Yuriy Gorlichenko
I this here is a way to share user for watcher from any domain using rpc.subscribe command after handle_subscribe() It is availible to make simple service that will be triggered by subscribe request and make fake subscribe request with needed data for other domains. Handle this subscribe also by

Re: [SR-Users] parse_from_header(): bad From header

2017-11-29 Thread Donat Zenichev
Problem is solved. The problem was in wrong regeneration of headers in ACK requests (uac restore_mode parameter). This parameter helps to modify From/To headers in all sequential requests and replies in the same way as it has been modified in initial invite. The uac from/to replacement relies

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Aidar Kamalov
I will setup dnsmasq on each kamailio server, which will resolve sip.example.com to own ip. And clients from this city will use this dns and connect to sip.example.com 2017-11-30 9:17 GMT+03:00 Yuriy Gorlichenko : > I this here is a way to share user for watcher from any

[SR-Users] No cdr after Kamailio 5.0.4 and 5.2 dev restart

2017-11-29 Thread Kordován Szabolcs
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