diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-03-23 13:23:20 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-03-23 13:23:20 +0000 |
commit | 4adf25beda8b542349c0555e8353ec682669ee08 (patch) | |
tree | 854dfb25243e90340f6362d09d0690a08ac5537c | |
parent | 3a21b42fc86a8281c6c9b8f4a47618d9f6a54abf (diff) |
Ticket #717: backported changes from ticket #716
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.0@2544 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index 63e52ca2..95aa3bba 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -244,7 +244,7 @@ static void usage(void) puts (" --ec-tail=MSEC Set echo canceller tail length (default=256)"); puts (" --ec-opt=OPT Select echo canceller algorithm (0=default, "); puts (" 1=speex, 2=suppressor)"); - puts (" --ilbc-mode=MODE Set iLBC codec mode (20 or 30, default is 20)"); + puts (" --ilbc-mode=MODE Set iLBC codec mode (20 or 30, default is 30)"); puts (" --capture-dev=id Audio capture device ID (default=-1)"); puts (" --playback-dev=id Audio playback device ID (default=-1)"); puts (" --capture-lat=N Audio capture latency, in ms (default=100)"); @@ -1488,6 +1488,14 @@ static int write_settings(const struct app_config *config, pj_strcat2(&cfg, "\n#\n# Network settings:\n#\n"); + /* Nameservers */ + for (i=0; i<config->cfg.nameserver_count; ++i) { + pj_ansi_sprintf(line, "--nameserver %.*s\n", + (int)config->cfg.nameserver[i].slen, + config->cfg.nameserver[i].ptr); + pj_strcat2(&cfg, line); + } + /* Outbound proxy */ for (i=0; i<config->cfg.outbound_proxy_cnt; ++i) { pj_ansi_sprintf(line, "--outbound %.*s\n", |