Fix debugging messages generated by 'udptl debug'.

* Makes chan_sip set the tag to the channel name.

* Fixes received debug message sequence number.

* Removed tx/rx debug message type since it was hard coded to 0.

* Made udptl.c logged message header consistent if possible: "UDPTL (%s): ".

* Removed unused rx_expected_seq_no from struct ast_udptl.

(closes issue ASTERISK-18401)
Reported by: Kevin P. Fleming
Patches:
      jira_asterisk_18401_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Matthew Nicholson


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@339625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2011-10-06 17:49:38 +00:00
parent a9b4839597
commit 06e6b7bba1
2 changed files with 34 additions and 24 deletions

View File

@@ -4973,13 +4973,13 @@ static void change_t38_state(struct sip_pvt *p, int state)
parameters = p->t38.their_parms;
parameters.max_ifp = ast_udptl_get_far_max_ifp(p->udptl);
parameters.request_response = AST_T38_REQUEST_NEGOTIATE;
ast_udptl_set_tag(p->udptl, "SIP/%s", p->username);
ast_udptl_set_tag(p->udptl, "%s", chan->name);
break;
case T38_ENABLED:
parameters = p->t38.their_parms;
parameters.max_ifp = ast_udptl_get_far_max_ifp(p->udptl);
parameters.request_response = AST_T38_NEGOTIATED;
ast_udptl_set_tag(p->udptl, "SIP/%s", p->username);
ast_udptl_set_tag(p->udptl, "%s", chan->name);
break;
case T38_DISABLED:
if (old == T38_ENABLED) {