diff options
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; |