Re: [SR-Users] How can change via header's ip to public ip when Kamailio locate behind a NAT network?

2015-01-27 Thread dongwf
. At 2015-01-26 17:14:46, "Olle E. Johansson" wrote: On 25 Jan 2015, at 14:48, dongwf wrote: Hi Kamailio: I use Kamailio with Amazon EC2 virtual machine, it has a private ip such as 172.31.7.164, kamailio listened on this, I assigned a float public ip 54.X.X.X on it, and all

[SR-Users] How can change via header's ip to public ip when Kamailio locate behind a NAT network?

2015-01-26 Thread dongwf
Hi Kamailio: I use Kamailio with Amazon EC2 virtual machine, it has a private ip such as 172.31.7.164, kamailio listened on this, I assigned a float public ip 54.X.X.X on it, and all the client send traffics to the public ip and it work well(REGISTER), but now I would relay kamailio's traffic to

Re: [SR-Users] How to avoid mem leak when use Kamailio Json module

2014-11-06 Thread dongwf
a=commit;h=def8d2600422a442b971c204df98594b0dfdaacd dst_pv->setf() should copy (clone) of the string value and then the object can be unreferenced. If works ok, then I will backport -- I didn't have any server with json library at hand to give it a minimum test. Cheers, Daniel On 05/11/14 11:23, dongwf wrote: One m

Re: [SR-Users] How to avoid mem leak when use Kamailio Json module

2014-11-05 Thread dongwf
, thanks! At 2014-11-05 17:54:46, "dongwf" wrote: Hi: I am trying to use json module in script with json_get_field exported api, I found in it's implementation, the api will call struct json_object *j = json_tokener_parse(json_s.s); but didn't call json_object_put for this

[SR-Users] How to avoid mem leak when use Kamailio Json module

2014-11-05 Thread dongwf
Hi: I am trying to use json module in script with json_get_field exported api, I found in it's implementation, the api will call struct json_object *j = json_tokener_parse(json_s.s); but didn't call json_object_put for this j object, then the object will leak. So my question is how to release th

Re: [SR-Users] Wrong from/to header compose way in print_to and print_from

2014-09-23 Thread dongwf
ri.s[dialog->rem_uri.len - 1]!='>') *len += 2; /* To-URI < > > */ 1554c1554 < if(dialog->loc_uri.s[0]!='<') *len += 2; /* From-URI < > */ --- > if(dialog->loc_uri.s[dialog->loc_uri.len - 1]!='>') *len += 2; /* F

Re: [SR-Users] Wrong from/to header compose way in print_to and print_from

2014-09-22 Thread dongwf
To-URI < > > */ 1554c1554 < if(dialog->loc_uri.s[0]!='<') *len += 2; /* From-URI < > */ --- > if(dialog->loc_uri.s[dialog->loc_uri.len - 1]!='>') *len += 2; /* From-URI > < > */ At 2014-09-20 00:03:32, "Daniel-Constant

Re: [SR-Users] Wrong from/to header compose way in print_to and print_from

2014-09-19 Thread dongwf
commit it. Otherwise, open an issue on bugh tracker and will be fixed soon. I tested the patch with my scenario, it works fine. Cheers, Daniel On 17/09/14 10:06, dongwf wrote: Hi kamailio dev: I am writing a module to implement some features, my version is 4.1.2, I am not sure if it is a know

[SR-Users] Wrong from/to header compose way in print_to and print_from

2014-09-17 Thread dongwf
Hi kamailio dev: I am writing a module to implement some features, my version is 4.1.2, I am not sure if it is a known issue, I found: 1. When I get a INVITE request with from/to like from:"display", then I call tm's new_dlg_uas with the sip req, now the dlg's rem_uri set as value: "display"; 2.