export the command line variables so sub scripts can use them use sed to update log path is source is used simplify freeswitch rules to use protocol=all general tidy up of spacing in files
added use of getopt to allow command line options to indicate to use different sources added +x