Re: [SR-Users] Kamailio Unexpectedly Terminating

2012-05-29 Thread Akan
Sorry. To make sure I got the right versions, I removed all of the previous files, reloaded and re-compiled Kamailio from git and ran the test again. I have included the full trace files from the core dump. Here is my setting for use_domain parameter: #!define MULTIDOMAIN 1 modparam("usrloc",

Re: [SR-Users] xhttp README

2012-05-29 Thread Klaus Darilion
That's why I wanted somebody else to commit it ;-) It's fixed now Klaus On 29.05.2012 18:04, Daniel-Constantin Mierla wrote: Hello, the file xhttp.txt.html should not be kept in the git repository, probably was added by mistake, you can remove it when adding regenerated readme (it is the html

Re: [SR-Users] xhttp README

2012-05-29 Thread Henning Westerholt
Am Dienstag, 29. Mai 2012, 17:47:22 schrieb Klaus Darilion: > I added it to git master, but I did not regenerated the READMEs as > something seems to be broken with the docbook installation my server > causing the ToC to be present two times. Hi Klaus, I've just regenerated the readme, just let m

Re: [SR-Users] xhttp README

2012-05-29 Thread Daniel-Constantin Mierla
Hello, the file xhttp.txt.html should not be kept in the git repository, probably was added by mistake, you can remove it when adding regenerated readme (it is the html version, which is kept on the server for browsing online -- it can be generated if someone wants it locally). It is fine to

Re: [SR-Users] FW: (Devel) Segmentation fault using pua_dialoginfo

2012-05-29 Thread Daniel-Constantin Mierla
Hello, finally had a chance to look over it. I guess it is some race, resulting in a memory space being overwritten. The 200ok for publish with ringing state is processed more or less at the time when 200ok for invite comes and dialog changes state. Can you re-compile with MEMDBG=1 (edit the

Re: [SR-Users] xhttp README

2012-05-29 Thread Klaus Darilion
I added it to git master, but I did not regenerated the READMEs as something seems to be broken with the docbook installation my server causing the ToC to be present two times. regards Klaus On 29.05.2012 14:29, Daniel-Constantin Mierla wrote: Hello, yes, that parameter is pretty much always

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread Faisal Yousuf
Hi Daniel, Many thanks - local firewall it is my bad - I thought the fact packet sniffer can see the packet - there is no network firewall blocking the packet - but there was an IP-Tables on the host - I shutdown the ip-tables & now the registration is going through & I am also able to send calls b

[SR-Users] Logging peer status

2012-05-29 Thread Niklas Larsson
Hi, I'm coming from an asterisk background and are now using kamailio to handle registration and load balancing. In the asterisk world I added qualify=yes and listening on the AMI for events when peer is registering / unregistering / peer goes unreachable and reachable - then storing this info in

Re: [SR-Users] Validate domains, expose sip_hostport2su or similar

2012-05-29 Thread Øyvind Kolbu
On 29.05.2012 14:41, Daniel-Constantin Mierla wrote: that function is not exported in config, maybe with the next major release (3.4). At this moment the options are using embedded languages, such as Lua, or exec module. ok, will do. Thanks for the quick reply. -- Øyvind

Re: [SR-Users] Validate domains, expose sip_hostport2su or similar

2012-05-29 Thread Daniel-Constantin Mierla
Hello, On 5/29/12 11:29 AM, Øyvind Kolbu wrote: Hi, is there a way to validate a domain, e.g. it resolves to something, without calling t_relay() or forward() and checking the return code? In my case I'd like to validate enum results before dispatching it to our outbound proxies. If not valid I

Re: [SR-Users] xhttp README

2012-05-29 Thread Daniel-Constantin Mierla
Hello, yes, that parameter is pretty much always required to work with http requests (they don't add content-length, which is mandatory in sip). Just add to the readme, you should have write access to git repo. Cheers, Daniel On 5/29/12 1:11 PM, Klaus Darilion wrote: Hi! The readme should

[SR-Users] xhttp README

2012-05-29 Thread Klaus Darilion
Hi! The readme should mention that core setting tcp_accept_no_cl=yes is required (at least for Firefox and Chrome) regards Klaus ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.s

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread SamyGo
Change the L_WARN to L_NOTICE that makes a difference when you've different debug=x value. and yes you are right about the "-" in -/var/log/kamailio , it is really required to prevent kamailio from waiting on syslog to print lines and then continue. On Tue, May 29, 2012 at 3:52 PM, Faisal Yousuf

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread Faisal Yousuf
While I didnt restarted my syslog (as the config were there from before) - but I did check after restarting syslog regarding using xlog - I have 3 xlog messages in my route logic around Registration # handle registrations xlog("L_WARN","Code before Registrar"); route(REGISTRAR); xlog("L_WARN","Co

[SR-Users] Address of Record (AOR) parameter

2012-05-29 Thread Bruno Bresciani
Hi all, I can't understand how obtain address of record (aor) to functions lock_udomain and unlock_udomain... What is the meaning of this parameter? In other modules this parameter is obtained by R-URI on SIP messages struct (registrar) or by next value of node.kids mi_root struct (usrloc). Best

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread Charles Chance
Hi Faisal, You say you added to syslog.conf: local1.* -/var/log/kamailio Is that exactly how it appears? If so, I think you need to remove the hyphen so it becomes: local1.* /var/log/kamailio As Sammy said, don't forget to restart syslog. Regards, Charles -Original Message- From: Sam

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread SamyGo
Did you restart your syslog ? Add xlog lines in yur config when you receive a REGISTER request so that it actually prints something out. On Tue, May 29, 2012 at 3:23 PM, Faisal Yousuf wrote: > Hi Daniel/ Sammy , > I made the changes in config as suggested (i.e. move the define variables > at th

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread Faisal Yousuf
Hi Daniel/ Sammy , I made the changes in config as suggested (i.e. move the define variables at the top of the file rather then in the middle) Regarding setting debug=3 => I am setting WITH_DEBUG in the config file so based on processing of this symbol I believe debug=4 is set.# For the log facil

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread SamyGo
Hi Faisal, You say you've seen packets on kamailio but kamailio isn't replying !! 1- Please verify that yuor kamailio is indeed started *[ps -ef | grep kamailio]* 2- Verify if kamailio is actuallay listening on the same port as you are sending pcakets to ! *[netstat -pln|grep kamailio]* 3- Verif

[SR-Users] Validate domains, expose sip_hostport2su or similar

2012-05-29 Thread Øyvind Kolbu
Hi, is there a way to validate a domain, e.g. it resolves to something, without calling t_relay() or forward() and checking the return code? In my case I'd like to validate enum results before dispatching it to our outbound proxies. If not valid I must use the pstn servers. In the logs I can see

Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem

2012-05-29 Thread Daniel-Constantin Mierla
Hello, you can set debug=3 in kamailio config to see very verbose debug messages. If you don't get any, means the request does not reach the application layer, meaning you have a firewall in place that drops the packets from the network. Cheers, Daniel On 5/29/12 8:02 AM, Faisal Yousuf wrot

Re: [SR-Users] Kamailio Unexpectedly Terminating

2012-05-29 Thread Daniel-Constantin Mierla
Hello, is this with use_domain parameter set? Also, from the backtrace, the condition is not 104 if (realm_prefix.len>0 && realm_prefix.lenIt looks it is without the last recommendation I made - now I pushed the change also in master branch. Cheers, Daniel On 5/29/12 10:

Re: [SR-Users] [NOT Solved]Creating RURI ($ru) from Contact ($ct)

2012-05-29 Thread Aft nix
On Tue, May 29, 2012 at 2:57 PM, Daniel-Constantin Mierla wrote: > Hello, > > in kamailio, if you want to apply immediately the changes done to the sip > request, then use msg_apply_changes() from textopsx module. Then you can > access it with the contact PV. > > Also, the pvs for source ip and po

Re: [SR-Users] [NOT Solved]Creating RURI ($ru) from Contact ($ct)

2012-05-29 Thread Daniel-Constantin Mierla
Hello, in kamailio, if you want to apply immediately the changes done to the sip request, then use msg_apply_changes() from textopsx module. Then you can access it with the contact PV. Also, the pvs for source ip and port are $si and $sp -- see the PV cookbook in the wiki site at kamailio.or

Re: [SR-Users] [NOT Solved]Creating RURI ($ru) from Contact ($ct)

2012-05-29 Thread Aft nix
Hi, Sorry guyz, the problem is not solved as i thought. The script worked perfectly in my lab where i did'nt know that the wifi router is a so called "sip friendly router". It fixes broken contacts so it worked perfectly in my lab. But in my production server it did'nt work. Problem is when i pu