jakesays-old / webrtc2sip

Automatically exported from code.google.com/p/webrtc2sip
0 stars 0 forks source link

Feature request: make webrtc2sip look for config.xml in default paths and/or add an option to set the path for the config.xml file #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Feature request: make webrtc2sip look for config.xml in default paths like /etc 
or /usr/local/etc/webrtc2sip (or any other path set in /etc/default/webrtc2sip 
for instance) and/or add an option to set the path for the config.xml file 
(like webrtc2sip -c /usr/local/etc/webrtc2sip/config.xml).

At the moment webrtc2sip only starts up when config.xml is in the same 
directory as the binary because it looks for ./config.xml. This means one has 
to jump through some hoops to create a startup script for webrtc2sip. Also this 
isn't very UNIXy, configuration files do not belong in a /bin or /sbin 
directory ;)

Merci d'avance,

Jeremy

Original issue reported on code.google.com by autosta...@gmail.com on 20 Dec 2012 at 9:18

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 20 Dec 2012 at 9:24

GoogleCodeExporter commented 9 years ago
By patching mp_mediaproxy.cc I have webrtc2sip now looking for config.xml in 
/usr/local/etc/webrtc2sip. So at the moment I'm ok :)

Meilleurs voeux pour 2013!

Jeremy

Original comment by autosta...@gmail.com on 2 Jan 2013 at 8:59

Attachments:

GoogleCodeExporter commented 9 years ago
Bonne année 2013.

You can also define a value for "kConfigXmlPath" [1].
http://code.google.com/p/webrtc2sip/source/browse/trunk/mp_mediaproxy.cc?r=34#23
.

Original comment by boss...@yahoo.fr on 2 Jan 2013 at 9:09

GoogleCodeExporter commented 9 years ago
Thanks! That's a more elegant solution. I just grepped the source for 
config.xml and replaced the current path.

Jeremy

Original comment by autosta...@gmail.com on 2 Jan 2013 at 6:54

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 13 Jan 2013 at 4:29