diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-25 03:44:22 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-25 03:44:22 +0000 |
commit | 529fcab3749d2fb758c9d306036868a824464f55 (patch) | |
tree | d3b9ad150329533c0b9da25a492287b58ff206b3 /channels | |
parent | 37930961e1000eacb94d2e70e661bc2e3d4022f3 (diff) |
add T1 timer support for NOTIFY dialogs (issue #5017)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f5e2cecb2..d83cac1ef 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2904,6 +2904,8 @@ static struct sip_pvt *sip_alloc(char *callid, struct sockaddr_in *sin, int useg p->autokillid = -1; p->stateid = -1; p->prefs = prefs; + if (intended_method != SIP_OPTIONS) /* Peerpoke has it's own system */ + p->timer_t1 = 500; /* Default SIP retransmission timer T1 (RFC 3261) */ #ifdef OSP_SUPPORT p->osphandle = -1; #endif @@ -6437,6 +6439,8 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme ast_copy_string(p->peermd5secret, peer->md5secret, sizeof(p->peermd5secret)); p->peermd5secret[sizeof(p->peermd5secret)-1] = '\0'; p->callingpres = peer->callingpres; + if (peer->maxms && peer->lastms) + p->timer_t1 = peer->lastms; if (ast_test_flag(peer, SIP_INSECURE_INVITE)) { /* Pretend there is no required authentication */ p->peersecret[0] = '\0'; |