Re: [SR-Users] Dispatcher Module ds_select_domain("2", "4")

2017-04-25 Thread gh
Hi Alex, it's because i can see that kamailio (5.0.1 (x86_64/linux)) is already successful connected to our Provider via kamailio uac module. I can also see that kamailio send a refresh auth to 5.9.87.18 from time to time. Would the Provider answer with: U 5.9.87.18:5060 -> 130.255.76.95:5060 SIP/

Re: [SR-Users] Warnings at apply_changes()

2017-04-25 Thread Diego Nadares
Thanks Sergey! 2017-04-25 3:51 GMT-03:00 Sergey Basov : > Hi. > > It is normal in this case. I have same scenario and it work normal > with this warning. > I think it because after conversion first content type (in SIP > headers) is "Content-Type: multipart/mixed;" and "Content-Type: > applicati

Re: [SR-Users] Dispatcher Module ds_select_domain("2", "4")

2017-04-25 Thread gh
Hi all, Solved! If i create an identical user/password in kamailio which i get from command kamcmd uac.reg_dump { l_uuid: 2 l_username: xyz } then it works. Else result from Provider would be: SIP/2.0 403 Check SIP ID or username. Is there any way to use avoid a refresh of provi

[SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Pranathi Venkatayogi
Hi, How do I eliminate Content-Length:0 from sip reply when using sl_send_reply? I wanted to generate 200 ok, with SDP payload. I appended headers like below. The packet seems ok except there is extra "Content-Length:0", which is causing problems. Any workarounds? The packet being generat

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Alex Balashov
Hello, What leads you to the conclusion that the Content-Length: 0 header is "extra", and in need of a "workaround"? -- Alex On Tue, Apr 25, 2017 at 12:21:32PM +, Pranathi Venkatayogi wrote: > Hi, > How do I eliminate Content-Length:0 from sip reply when using sl_send_reply? > I

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Pranathi Venkatayogi
Hi Alex, I am adding my own SDP body to the reply and set the content-length to 350 already. The extra content-length: 0 is causing it to be malformed. Question: Is there a way to generate SIP reply with SDP payload from config file. I saw there is uac_send_req but no support for reply so

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Alex Balashov
Why are you generating your own SDP body? What are you trying to accomplish? Every once in a while there is a legitimate reason, but 99% of the time that is the wrong approach to whatever problem you're trying to solve. -- Alex > On Apr 25, 2017, at 9:06 AM, Pranathi Venkatayogi > wrote: >

Re: [SR-Users] Kamailio Issues

2017-04-25 Thread santosh gupta
Hi, Thanks for your prompt response. Below is the complete working logs and configuration if you can pinpoint the issues. Server Description Server OS Ubuntu 16.04.2 Server root@ubuntu-lua:/var/kamailio/MOH# uname -a Linux ubuntu-lua 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x

Re: [SR-Users] Kamailio Issues

2017-04-25 Thread Robert Boisvert
The details provided were helpful in identifying the problem. According to the documentation ( http://kamailio.org/docs/modules/4.4.x/modules/mohqueue.html#mohqueues.dbase) the file name in the database should be the "the base name of the audio file". This wording could be misunderstood and shoul

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Daniel-Constantin Mierla
Hello, you don't need to set the Content-Length yourself, kamailio does it automatically when the body of a message is changed. Cheers, Daniel On 25.04.17 15:06, Pranathi Venkatayogi wrote: > Hi Alex, > I am adding my own SDP body to the reply and set the content-length to 350 > already. >

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Pranathi Venkatayogi
I want to place the customer call on hold while I look for the "agent" to answer the chat call. Daniel confirms that for a brief moment I can hold the calls on Kamailio. Eventually we are looking for "FreeSwitch" to help us. Hence this is what I am trying: 1) When customer invite comes - let i

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Alex Balashov
It's a legitimate aspiration, just not one that Kamailio is designed to service, since it's a proxy - it just passes messages. For instance, one cannot "terminate" an invite to Kamailio "for a while". As a messenger, it has no means of doing that. You need an actual user agent involved. -- Ale

[SR-Users] JANSSON module not working for multiple JSON objects

2017-04-25 Thread vi...@advaitamtech.com
Hi All, Am using JANSSON module to parse the JSON object I receive. I tried using JSON module of kamailio. Since its giving error in loading the module due to error"libjson-c.so.3: cannot open shared object file: No such file or directory", I went ahead to use JANSSON module. JANSSON modu

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Pete Kelly
Hi Daniel Sorry for the delayed response to this, the ACK is for a 200OK yes and the problem still persists in latest 4.4 and the 5.0.1 nightly build. I have all DB entries/kam logs/pcap files. If you check the attached pcap, 192.168.70.70 and 192.168.252.70 are the same instance of Kamailio, it

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Daniel-Constantin Mierla
Actually the scenario might work with some bits of coding, in the idea that the INVITE is answered for the purpose of keeping it on hold, so no real communication happens. Moreover, if I got all the details properly, here is about MSRP (text messaging), not audio/video session. Cheers, Daniel On

Re: [SR-Users] JANSSON module not working for multiple JSON objects

2017-04-25 Thread Daniel-Constantin Mierla
Hello, On 25.04.17 15:57, vi...@advaitamtech.com wrote: > > Hi All, > > > > Am using JANSSON module to parse the JSON object I receive. > > > > I tried using JSON module of kamailio. Since its giving error in > loading the module due to error"libjson-c.so.3: cannot open shared > object file:

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Daniel-Constantin Mierla
Hello, to be sure, it is 5.0.1 build from last night or quite recent? There were some fixes in the past days to topos module. Cheers, Daniel On 25.04.17 15:59, Pete Kelly wrote: > Hi Daniel > > Sorry for the delayed response to this, the ACK is for a 200OK yes and > the problem still persists i

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Pete Kelly
Looks like from last night: 5.0.1+0~20170425013247.36+trusty On 25 April 2017 at 15:42, Daniel-Constantin Mierla wrote: > Hello, > > to be sure, it is 5.0.1 build from last night or quite recent? There were > some fixes in the past days to topos module. > > Cheers, > Daniel > > On 25.04.17 15:5

Re: [SR-Users] 4.4.5 Shared memory leak with t_suspend/t_continue

2017-04-25 Thread Julia Boudniatsky
Hello, I found my mistake! Transaction has been suspended in request route, and i try to_continue from onreply route. I change the scenario: - receive INVITE - reply and suspend - in onreply route (when received 180) send OPTIONS to localhost with $T(id_index):$T(id_label) - in request OPTIONS

[SR-Users] Query with regard to http_client and http_async_client

2017-04-25 Thread Ramachandran, Agalya (Contractor)
Hi Giacomo, I have few questions with regard to rest client in kamailio. 1) I see there are two modules in kamailio for rest client. http_client, http_async_client. I hope http_client does the http transfer in synchronous way. http_async_client does the http transfer in asynchronous manne

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Sergey Basov
Hi. Can you send dump of the call with kamailio 5.0.1 nightly? And does you make call using sipp? -- WBR Sergey Basov 25 апр. 2017 г. 5:57 PM пользователь "Pete Kelly" написал: > Looks like from last night: > > 5.0.1+0~20170425013247.36+trusty > > On 25 April 2017 at 15:42, Daniel-Constantin

Re: [SR-Users] How to eliminate Content-Length:0 from sl_send_reply

2017-04-25 Thread Pranathi Venkatayogi
Hi Daniel, Just wanted to confirm my understanding here. Are you hinting towards INVITE (hold) message illustrated here (http://www.tech-invite.com/fo-sip/tinv-fo-sip-service-01.html) Here is how it lays out: 1. Customer sends INVITE requiring MSRP chat 2. Kamailio will accept the invite

Re: [SR-Users] Query with regard to http_client and http_async_client

2017-04-25 Thread Pranathi Venkatayogi
I recently successfully used http_async_client for POST. Will try to help you out here - From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Ramachandran, Agalya (Contractor) Sent: Tuesday, April 25, 2017 10:17 AM To: giacomo.va...@gmail.com; sr-users@lists.kamailio.org Subj

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Pete Kelly
Call is with sipp but first goes through another SBC to clean up the SIP (in case of problems with sipp via headers etc). The traces I've done are actually with 4.4. Will they be OK or would you prefer 5.0.1? The problem is exactly the same on both. On 25 April 2017 at 16:25, Sergey Basov wrote

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Sergey Basov
Actualy latest fixes to 180/183/200, ACK and memory leak was pushed to 5.0 and master branch. So, please try with latest 5.0.1 nightly. -- WBR Sergey Basov 25 апр. 2017 г. 8:55 PM пользователь "Pete Kelly" написал: > Call is with sipp but first goes through another SBC to clean up the SIP > (

Re: [SR-Users] Query with regard to http_client and http_async_client

2017-04-25 Thread Giacomo Vacca
Hi, reusing the same connection to the same url is delegated to liburl, so you can have that when using http_async_client. More workers will increase the capacity at the price of resources (shared memory). I wrote a wrap up about building the request payload here: https://lists.kamailio.org/piperma

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Pete Kelly
I have tried with 5.0.1 from today (25th April). Are you saying build for 26th will have some fixes? On 25 April 2017 at 18:59, Sergey Basov wrote: > Actualy latest fixes to 180/183/200, ACK and memory leak was pushed to > 5.0 and master branch. > > So, please try with latest 5.0.1 nightly. >

Re: [SR-Users] topos module - possible bug

2017-04-25 Thread Sergey Basov
I dont know how nightly builds are done. Just try with latest 5.0.1 nightly and send new dump. As I understud topos module done to remove record-route headers to hide topology... Am I wright, Daniel? And try to disable topos module and enable topoh module. Will it all work as you expecrs? --

Re: [SR-Users] JANSSON module not working for multiple JSON objects

2017-04-25 Thread vi...@advaitamtech.com
There are no error messages for the below test JSON object. Let me give you a clear picture, $avp(result1)="{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"}" --> Successfully parsed and result is recevied. $avp(result1)="[{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"}]";

Re: [SR-Users] JANSSON module not working for multiple JSON objects

2017-04-25 Thread Daniel-Constantin Mierla
I haven't developed the module, will have to look at the code, but I would expect to work for the array object, given it relies on libjansson external library. Maybe you can try with: $avp(result1)="{\"a\":[{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"}]}"; just to see if it works and

Re: [SR-Users] Kamailio Issues

2017-04-25 Thread santosh gupta
Robert, Many thanks for pinpointing. Have sorted the issue, m going to explore more now. Hoping to get your support. Thanks again. On Tue, Apr 25, 2017 at 7:06 PM, Robert Boisvert wrote: > The details provided were helpful in identifying the problem. According > to the documentation (http