[asterisk-commits] oej: branch 1.4 r47513 -
/branches/1.4/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Nov 12 09:12:12 MST 2006
Author: oej
Date: Sun Nov 12 10:12:12 2006
New Revision: 47513
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47513
Log:
Issue 8314 - Restore auto-framing (Thanks DEA!!!)
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=47513&r1=47512&r2=47513
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Sun Nov 12 10:12:12 2006
@@ -4866,7 +4866,7 @@
}
}
if (framing && last_rtpmap_codec) {
- if (p->autoframing || global_autoframing) {
+ if (p->autoframing) {
struct ast_codec_pref *pref = ast_rtp_codec_getpref(p->rtp);
int codec_n;
int format = 0;
@@ -9914,6 +9914,7 @@
print_codec_to_cli(fd, &peer->prefs);
ast_cli(fd, ")\n");
+ ast_cli(fd, " Auto-Framing: %s \n", peer->autoframing ? "Yes" : "No");
ast_cli(fd, " Status : ");
peer_status(peer, status, sizeof(status));
ast_cli(fd, "%s\n",status);
@@ -10048,6 +10049,7 @@
print_codec_to_cli(fd, &user->prefs);
ast_cli(fd, ")\n");
+ ast_cli(fd, " Auto-Framing: %s \n", user->autoframing ? "Yes" : "No");
if (user->chanvars) {
ast_cli(fd, " Variables :\n");
for (v = user->chanvars ; v ; v = v->next)
@@ -10162,6 +10164,7 @@
ast_cli(fd, " Notify ringing state: %s\n", global_notifyringing ? "Yes" : "No");
ast_cli(fd, " SIP Transfer mode: %s\n", transfermode2str(global_allowtransfer));
ast_cli(fd, " Max Call Bitrate: %d kbps\r\n", default_maxcallbitrate);
+ ast_cli(fd, " Auto-Framing: %s \r\n", global_autoframing ? "Yes" : "No");
ast_cli(fd, "\nDefault Settings:\n");
ast_cli(fd, "-----------------\n");
ast_cli(fd, " Context: %s\n", default_context);
@@ -15327,6 +15330,7 @@
user->capability = global_capability;
user->allowtransfer = global_allowtransfer;
user->maxcallbitrate = default_maxcallbitrate;
+ user->autoframing = global_autoframing;
user->prefs = default_prefs;
/* set default context */
strcpy(user->context, default_context);
@@ -15447,6 +15451,7 @@
peer->rtpholdtimeout = global_rtpholdtimeout;
peer->rtpkeepalive = global_rtpkeepalive;
peer->allowtransfer = global_allowtransfer;
+ peer->autoframing = global_autoframing;
strcpy(peer->vmexten, default_vmexten);
peer->secret[0] = '\0';
peer->md5secret[0] = '\0';
More information about the asterisk-commits
mailing list