[svn-commits] branch 1.2 r12458 - /branches/1.2/channels/chan_sip.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Wed Mar 8 03:51:50 MST 2006
Author: oej
Date: Wed Mar 8 04:51:47 2006
New Revision: 12458
URL: http://svn.digium.com/view/asterisk?rev=12458&view=rev
Log:
Issue #6657 - Ignore 183 session progress without SDP
Modified:
branches/1.2/channels/chan_sip.c
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=12458&r1=12457&r2=12458&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Wed Mar 8 04:51:47 2006
@@ -9242,6 +9242,8 @@
snprintf(buf, len, "%d", peer->call_limit);
} else if (!strcasecmp(colname, "curcalls")) {
snprintf(buf, len, "%d", peer->inUse);
+ } else if (!strcasecmp(colname, "accountcode")) {
+ ast_copy_string(buf, peer->accountcode, len);
} else if (!strcasecmp(colname, "useragent")) {
ast_copy_string(buf, peer->useragent, len);
} else if (!strcasecmp(colname, "mailbox")) {
@@ -9301,6 +9303,7 @@
"- curcalls Current amount of calls \n"
" Only available if call-limit is set\n"
"- language Default language for peer\n"
+ "- accountcode Account code for this peer\n"
"- useragent Current user agent id for peer\n"
"- codec[x] Preferred codec index number 'x' (beginning with zero).\n"
"\n"
@@ -9462,12 +9465,13 @@
break;
case 183: /* Session progress */
sip_cancel_destroy(p);
+ /* Ignore 183 Session progress without SDP */
if (!strcasecmp(get_header(req, "Content-Type"), "application/sdp")) {
process_sdp(p, req);
- }
- if (!ignore && p->owner) {
- /* Queue a progress frame */
- ast_queue_control(p->owner, AST_CONTROL_PROGRESS);
+ if (!ignore && p->owner) {
+ /* Queue a progress frame */
+ ast_queue_control(p->owner, AST_CONTROL_PROGRESS);
+ }
}
break;
case 200: /* 200 OK on invite - someone's answering our call */
More information about the svn-commits
mailing list