diff options
author | David Troy <dave@popvox.com> | 2006-04-06 22:30:00 +0000 |
---|---|---|
committer | David Troy <dave@popvox.com> | 2006-04-06 22:30:00 +0000 |
commit | ca4ed8c2cbec7db4d9001e4f5725dcb3ea71399a (patch) | |
tree | 591c62db1580fa484cba98912634da2688358920 /src/astmanproxy.c | |
parent | 012c2fcfbfec0a7d2676c393a9fdc9fee74fa09b (diff) | |
download | astmanproxy-ca4ed8c2cbec7db4d9001e4f5725dcb3ea71399a.tar.gz astmanproxy-ca4ed8c2cbec7db4d9001e4f5725dcb3ea71399a.tar.xz astmanproxy-ca4ed8c2cbec7db4d9001e4f5725dcb3ea71399a.zip |
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@89 f02b47b9-160a-0410-81a6-dc3441afb0ec
Diffstat (limited to 'src/astmanproxy.c')
-rw-r--r-- | src/astmanproxy.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/astmanproxy.c b/src/astmanproxy.c index dbbb05c..a22f1b8 100644 --- a/src/astmanproxy.c +++ b/src/astmanproxy.c @@ -120,7 +120,7 @@ void leave(int sig) { void Version( void ) { - printf("astmanproxy: Version %s, (C) David C. Troy\n", PROXY_VERSION); + printf("astmanproxy: Version %s, (C) David C. Troy 2005-2006\n", PROXY_VERSION); return; } @@ -345,7 +345,8 @@ void *HandleAsterisk(struct mansession *s) if (!WriteClients(&m)) break; } else if (res < 0) { - if (debug) + /* TODO: do we need to do more than this here? or something different? */ + if ( debug ) debugmsg("asterisk@%s: Not connected", ast_inet_ntoa(iabuf, sizeof(iabuf), s->sin.sin_addr)); if ( ConnectAsterisk(s) ) break; @@ -385,8 +386,8 @@ int ConnectAsterisk(struct mansession *s) { for ( ;; ) { if ( ast_connect(s) == -1 ) { if (debug) - debugmsg("asterisk@%s: Connect failed, Retrying (%d) %s", - ast_inet_ntoa(iabuf, sizeof(iabuf), s->sin.sin_addr), r, strerror(errno) ); + debugmsg("asterisk@%s: Connect failed, Retrying (%d) %s [%d]", + ast_inet_ntoa(iabuf, sizeof(iabuf), s->sin.sin_addr), r, strerror(errno), errno ); if (pc.maxretries && (++r>pc.maxretries) ) { res = 1; break; |