<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Sorry for the duplicate post if it is. I am unsure if it actually made it to the list the first time.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Problem: Dropped Calls after 45 minutes<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Description:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am looking to gain better understanding of the following part of the chan_sip.c as I am always receiving the message "LOG_WARNING, "just did sched_add waitid(%d) for sip_reinvite_retry for dialog %s in handle_response_invite\n", p->waitid, p->callid" 30 minutes into a call which then results in the call dropping 15 minutes later.<br><br>Can anyone help me better understand this portion of the chan_sip module?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Case 491:<o:p></o:p></p><p class=MsoNormal>“<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>case 491: /* Pending */<o:p></o:p></p><p class=MsoNormal> xmitres = transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, FALSE);<o:p></o:p></p><p class=MsoNormal> if (p->owner && !req->ignore) {<o:p></o:p></p><p class=MsoNormal> if (p->owner->_state != AST_STATE_UP) {<o:p></o:p></p><p class=MsoNormal> ast_queue_control(p->owner, AST_CONTROL_CONGESTION);<o:p></o:p></p><p class=MsoNormal> pvt_set_needdestroy(p, "received 491 response");<o:p></o:p></p><p class=MsoNormal> } else {<o:p></o:p></p><p class=MsoNormal> /* This is a re-invite that failed. */<o:p></o:p></p><p class=MsoNormal> /* Reset the flag after a while<o:p></o:p></p><p class=MsoNormal> */<o:p></o:p></p><p class=MsoNormal> int wait;<o:p></o:p></p><p class=MsoNormal> /* RFC 3261, if owner of call, wait between 2.1 to 4 seconds,<o:p></o:p></p><p class=MsoNormal> * if not owner of call, wait 0 to 2 seconds */<o:p></o:p></p><p class=MsoNormal> if (p->outgoing_call) {<o:p></o:p></p><p class=MsoNormal> wait = 2100 + ast_random() % 2000;<o:p></o:p></p><p class=MsoNormal> } else {<o:p></o:p></p><p class=MsoNormal> wait = ast_random() % 2000;<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> p->waitid = ast_sched_add(sched, wait, sip_reinvite_retry, dialog_ref(p, "passing dialog ptr into sched structure based on waitid for sip_reinvite_retry."));<o:p></o:p></p><p class=MsoNormal> ast_log(LOG_WARNING, "just did sched_add waitid(%d) for sip_reinvite_retry for dialog %s in handle_response_invite\n", p->waitid, p->callid);<o:p></o:p></p><p class=MsoNormal> ast_debug(2, "Reinvite race. Waiting %d secs before retry\n", wait);<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> break;<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>“<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>