aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-12 16:12:12 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-12 16:12:12 +0000
commit0d5e6334bb463b2c6c552ef96ff02c0f97632384 (patch)
tree49c6bcbd485dccc1abc050e55068e57bc52135fe /channels
parentc0a9a2156724ad3229ba16e206fce778d3097947 (diff)
Issue 8314 - Restore auto-framing (Thanks DEA!!!)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47513 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e2a4fbfbf..5d576a8a3 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4866,7 +4866,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
}
}
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 @@ static int _sip_show_peer(int type, int fd, struct mansession *s, struct message
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 @@ static int sip_show_user(int fd, int argc, char *argv[])
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 @@ static int sip_show_settings(int fd, int argc, char *argv[])
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 @@ static struct sip_user *build_user(const char *name, struct ast_variable *v, int
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 @@ static void set_peer_defaults(struct sip_peer *peer)
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';