[asterisk-commits] mmichelson: trunk r195798 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed May 20 15:45:13 CDT 2009
Author: mmichelson
Date: Wed May 20 15:45:05 2009
New Revision: 195798
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195798
Log:
Get rid of some duplicated code and correct a connected line error.
When receiving a 200 OK response to an INVITE, it was possible to transmit two
connected line updates instead of a single one. Furthermore, the second did not
have the proper information present.
Now the two have been combined into a single update and the correct information
is presented.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=195798&r1=195797&r2=195798
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed May 20 15:45:05 2009
@@ -17466,7 +17466,7 @@
ast_set_flag(&p->flags[0], SIP_PENDINGBYE);
}
- if (!req->ignore && p->owner && get_rpid(p, req)) {
+ if (!req->ignore && p->owner && (get_rpid(p, req) || !reinvite)) {
/* Queue a connected line update */
ast_party_connected_line_init(&connected);
connected.id.number = (char *) p->cid_num;
@@ -17497,9 +17497,6 @@
if (!req->ignore && p->owner) {
if (!reinvite) {
- struct ast_party_connected_line connected;
- ast_party_connected_line_collect_caller(&connected, &p->owner->cid);
- ast_channel_queue_connected_line_update(p->owner, &connected);
ast_queue_control(p->owner, AST_CONTROL_ANSWER);
if (sip_cfg.callevents)
manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate",
More information about the asterisk-commits
mailing list