Re: [SR-Users] LCR dont_strip_or_prefix_flag

2017-08-28 Thread Patrick Wakano
Good news!
Thanks Anthony!

Regards
Patrick


On 25 Aug. 2017 22:34, "Anthony Joseph Messina" 
wrote:

On Friday, August 25, 2017 2:33:30 AM CDT Juha Heinanen wrote:
> Patrick Wakano writes:
> > It doesn't matter if I set or reset the flag it never prefix the ReqUR
if
> > the declaration is present. I have to remove the declaration to make the
> > module prefix it correctly. But then the whole purpose of the flag is
> > lostAnyone aware of this behaviour?
>
> This should not be fixed in 5.0 and master.
>
> -- Juha

Should *now* be fixed.  Thanks Juha.  -A

--
Anthony - https://messinet.com/ - https://messinet.com/~amessina/gallery
F9B6 560E 68EA 037D 8C3D  D1C9 FF31 3BDB D9D8 99B6

___
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] TSILO + NAT issues

2017-08-28 Thread Federico Cabiddu
Hi,
be sure that the operations for both the nat and the rtpengine functions
are called after appending the new branches to the INVITE. Better set a
branch route for this.

Best regards,

Federico

On Mon, Aug 28, 2017 at 5:01 PM, Emanuele Gambaro <
emanuele.gamb...@pynlab.com> wrote:

> Hi to all.
> I have the following setup-needs :
> *) Kamailio 5.0.1 with TSILO module and Apple push notification service.
> *) Rtpengine configured in order to force a "media-handover” for every
> call.
> *) NAT forced for all connection.
>
> I have a lot of problem with the INVRESUME route. When an INVITE is
> resumed (upon mobile client connection via APN message) the NAT does not
> work, and there is no rtp flow between devices. It works only if device is
> already online (so without the SUSPEND route).
>
> How can I setup TSILO in order to force NAT management for all calls?
> Thank you
> --
> Emanuele Gambaro
> ---
> email: emanuele.gamb...@pynlab.com
> skype: sarbyn_work
> OpenPGP Key: https://goo.gl/fdeVnI
>
>
> ___
> 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] Problem implementing usrloc via dmq

2017-08-28 Thread Aleksandar Sosic
So the Kamailio version is:
root@sr01:/# kamailio -v
version: kamailio 5.0.2 (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 with gcc 5.3.1

the output of dmq.list_nodes is:
{
"jsonrpc": "2.0",
"result": [{
"host": "",
"port": "5060",
"resolved_ip": "",
"status": 2,
"last_notification": 0,
"local": 0
}, {
"host": "",
"port": "5060",
"resolved_ip": "",
"status": 2,
"last_notification": 0,
"local": 1
}],
"id": 1
}

Thanks,
--
Aleksandar Sošić
alex.sosic(at)gmailcom


On Fri, Aug 25, 2017 at 11:59 AM, Charles Chance
 wrote:
> Hello,
>
> Which version of Kamailio?
>
> What is the output of 'kamcmd dmq.list_nodes'?
>
> Cheers,
>
> Charles
>
>
> On 24 August 2017 at 11:02, Aleksandar Sosic  wrote:
>>
>> Hi everyone,
>>
>> we're trying to make work usrloc over dmq without a db on our nodes.
>>
>> Our `kamailio.cfg` code to make it work on the nodes is like this:
>> ```
>> ...
>> loadmodule "usrloc.so"
>> ...
>> loadmodule "dmq.so"
>> loadmodule "dmq_usrloc.so"
>> ...
>> modparam("dmq", "server_address", DMQ_ADDRESS)
>> modparam("dmq", "notification_address", "sip:routers.ourcloud.com:5060")
>> modparam("dmq", "multi_notify", 1)
>> modparam("dmq", "num_workers", 4)
>> modparam("dmq_usrloc", "enable", 1)
>> modparam("dmq_usrloc", "sync", 1)
>> ```
>>
>> Where `DMQ_ADDRESS="sip::5060"` is the public IP address
>> of the running node.
>>
>> `nslookup` of  `routers.ourcloud.com`:
>> ```➜  ~ nslookup routers.ourcloud.com
>> Server:8.8.8.8
>> Address:8.8.8.8#53
>>
>> Non-authoritative answer:
>> Name:rrouters.ourcloud.com
>> Address: 
>> Name:routers.ourcloud.com
>> Address: 
>> ```
>> and obviously IP1 and IP2 are pubblic IPs of kamailio nodes that
>> respond to my pings.
>>
>> When i register a client to node IP1 it's ul dump is:
>> ```
>> {
>>"jsonrpc": "2.0",
>>"result": {
>>   "Domain": "location",
>>   "Size": 1024,
>>   "AoRs": [{
>>  "Info": {
>> "AoR": "0409828030",
>> "HashID": 1970914268,
>> "Contacts": [{
>>"Contact": {
>>   "Address": "sip:0409828030@172.19.0.255:56328;ob",
>>   "Expires": 289,
>>   "Q": -1,
>>   "Call-ID": "5mclwiX4oYAVK0z-iT7M0p9RBX5-02g6",
>>   "CSeq": 59427,
>>   "User-Agent": "Telephone 1.2.6",
>>   "Received": "sip::5060",
>>   "Path": "[not set]",
>>   "State": "CS_NEW",
>>   "Flags": 0,
>>   "CFlags": 192,
>>   "Socket": "udp::5060",
>>   "Methods": 8159,
>>   "Ruid": "uloc-599d8fa8-f-1",
>>   "Instance": "[not set]",
>>   "Reg-Id": 0,
>>   "Last-Keepalive": 1503498176,
>>   "Last-Modified": 1503498176
>>}
>>  }]
>>   }
>>}],
>>"Stats": {
>>   "Records": 1,
>>   "Max-Slots": 1
>>}
>> },
>> "id": 1
>> }
>> ```
>>
>> On node with IP2 the ul dump is:
>> ```
>> {
>>"jsonrpc": "2.0",
>>"result": {
>>   "Domain": "location",
>>   "Size": 1024,
>>   "AoRs": [],
>>   "Stats": {
>>  "Records": 0,
>>  "Max-Slots": 0
>>   }
>>},
>>"id": 1
>> }
>> ```
>> What are we doing wrong? Are we missing something?
>> --
>> Aleksandar Sosic
>> mail: alex.so...@timenet.it
>> skype: alex.sosic
>> cell: +385 91 2505 146
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>
> --
> Charles Chance
> Managing Director
>
> t. 0330 120 1200m. 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@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