diff options
author | malcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-25 01:16:45 +0000 |
---|---|---|
committer | malcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-25 01:16:45 +0000 |
commit | 58dbc4b46488085aa4b7430795c5fa1cf14bf04f (patch) | |
tree | 5f1e3b0e99de90283029a909dec8477d55a772f0 /channels | |
parent | 89db87c9d3523bcfd15441319322b6995a2bd02a (diff) |
Bug # 1052 Got it this time..I'm sure of it ;)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2237 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 425205781..518a6f315 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3796,7 +3796,11 @@ static int register_verify(struct sip_pvt *p, struct sockaddr_in *sin, struct si if (parse_contact(p, peer, req)) { ast_log(LOG_WARNING, "Failed to parse contact info\n"); } else { - /* Say OK and ask subsystem to retransmit msg counter */ +#ifdef MYSQL_FRIENDS + if (peer->temponly) + mysql_update_peer(peer->name, &peer->addr, peer->username, p->expiry); +#endif + /* Say OK and ask subsystem to retransmit msg counter */ transmit_response_with_date(p, "200 OK", req); peer->lastmsgssent = -1; res = 0; @@ -3815,10 +3819,6 @@ static int register_verify(struct sip_pvt *p, struct sockaddr_in *sin, struct si if (parse_contact(p, peer, req)) { ast_log(LOG_WARNING, "Failed to parse contact info\n"); } else { -#ifdef MYSQL_FRIENDS - if (peer->temponly) - mysql_update_peer(peer->name, &peer->addr, peer->username, p->expiry); -#endif /* Say OK and ask subsystem to retransmit msg counter */ transmit_response_with_date(p, "200 OK", req); peer->lastmsgssent = -1; |