Hi Sanchit, Sorry, I told you the wrong thing before. The HTTP bind address should be the IP address of the Sprout, not the Homestead. Can you change this and retry? You will also need to add the scscf_uri option – you can do this by adding ‘–c sip:<sprout<sip:%3csprout> domain>:5054’
Ellie From: Sanchit Garg [mailto:[email protected]] Sent: 10 November 2014 09:23 To: Eleanor Merry Cc: [email protected] Subject: Re: [Clearwater] SegFault while running sprout from source code Hi Ellie Thank you for the reply. I tried what you suggested. It doesn't give SIGSEV signal. But a new problem arose. It now catches HttpStack::Exception . Following is the log output: 10-11-2014 09:02:18.378 UTC Error httpstack.cpp:197: evhtp_bind_socket failed with address 10.129.34.87 and port 9888 10-11-2014 09:02:18.378 UTC Error main.cpp:1523: Caught HttpStack::Exception - evhtp_bind_socket - -1 We ran the following command: sudo LD_LIBRARY_PATH=usr/lib:$LD_LIBRARY_PATH build/bin/sprout -t -s 5054 -l localhost -H 10.129.34.87:8888<http://10.129.34.87:8888> -K 10.120.34.82:7253<http://10.120.34.82:7253> -T 10.129.34.87 -F /var/log/sprout Where: 10.129.34.87 is the IP of Homestead and 10.129.34.82 is of sprout. HttpStack::start(®_httpthread_with_pjsip) called in main.cpp calls evhtp_bind_socket which returns -1 and then it throws HttpStack::Exception. Also we checked the output of netstat -a |egrep '9888' command in Homestead which outputs: unix 3 [ ] STREAM CONNECTED 9888 We think that homestead is listening on port 9888 but sprout is unable to bind http socket to homestead. Can you please suggest how to fix this issue Thank You Sanchit Garg On Thu, Nov 6, 2014 at 11:35 PM, Eleanor Merry <[email protected]<mailto:[email protected]>> wrote: Hi Sanchit, Thanks for raising this. Sprout is hitting a segfault as the scscf_uri parameter hasn't been defined. This defaults to sip:<localhost>:<scscf<sip:%3clocalhost%3e:%3cscscf> port>;transport=TCP if you run Sprout as a daemon, but it isn't currently defaulted when running Sprout interactively. I've raised an issue to fix the documentation and defaults (please see https://github.com/Metaswitch/sprout/issues/851) - in the meantime can you please add these extra parameters? You will also need to pass in the HTTP bind address (e.g. -T 10.129.34.87). You can see what other parameters are available by running with -h Ellie -----Original Message----- From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Sanchit Garg Sent: 06 November 2014 08:57 To: [email protected]<mailto:[email protected]> Subject: [Clearwater] SegFault while running sprout from source code Hi All, We are trying to install Sprout from source code on a server Ubuntu 12.04. We have successfully built the source code. While running the command <sudo LD_LIBRARY_PATH=usr/lib:$LD_LIBRARY_PATH build/bin/sprout -t -s 5054 -H 10.129.34.87:8888<http://10.129.34.87:8888> -K 10.120.34.82:7253<http://10.120.34.82:7253> -F /var/log/sprout> a SIGSEGV signal is raised. We have figured out that 'init_registrar(...)' in the main.cpp and in particular 'pjsip_parse_uri(...)' in 'init_registrar(...)' has raised the signal. The function 'pjsip_parse_uri(...)' is returning NULL to be specific. Please suggest how to resolve the issue. Thank You Sanchit Garg Senior Undergrad CSE IIT Bombay _______________________________________________ Clearwater mailing list [email protected]<mailto:[email protected]> http://lists.projectclearwater.org/listinfo/clearwater _______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater
