[asterisk-commits] oej: branch oej/sip-callpickup-1.2 r73673 - /team/oej/sip-callpickup-1.2/chan...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 6 10:03:48 CDT 2007
Author: oej
Date: Fri Jul 6 10:03:47 2007
New Revision: 73673
URL: http://svn.digium.com/view/asterisk?view=rev&rev=73673
Log:
Adding a few headers SNOM claims are important...
Modified:
team/oej/sip-callpickup-1.2/channels/chan_sip.c
Modified: team/oej/sip-callpickup-1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/sip-callpickup-1.2/channels/chan_sip.c?view=diff&rev=73673&r1=73672&r2=73673
==============================================================================
--- team/oej/sip-callpickup-1.2/channels/chan_sip.c (original)
+++ team/oej/sip-callpickup-1.2/channels/chan_sip.c Fri Jul 6 10:03:47 2007
@@ -5333,6 +5333,16 @@
} else
ast_build_string(&t, &maxbytes, "<dialog id=\"%s\">\n", p->exten);
ast_build_string(&t, &maxbytes, "<state>%s</state>\n", statestring);
+ if ((state & AST_EXTENSION_RINGING) && global_notifyringing) {
+ /* We use the pickup extension for remote-uri. The replaces header on the INVITE
+ will override this, but for phones that doesn't send replaces, the pickup
+ extension is the next best thing
+ */
+ ast_build_string(&t, &maxbytes, "<remote><identity>Olle</identity>\n<target uri=\"%s\">\n"
+ "</target>\n</remote>\n", ast_pickup_ext());
+ ast_build_string(&t, &maxbytes, "<local>\n<target uri=\"%s\">\n"
+ "</target>\n</local>\n", mto);
+ }
ast_build_string(&t, &maxbytes, "</dialog>\n</dialog-info>\n");
break;
case NONE:
@@ -5348,6 +5358,13 @@
return send_request(p, &req, 1, p->ocseq);
}
+ // <dialog id="fd790034 at pbx" call-id="fd790034 at pbx" direction="recipient">
+ // <state>early</state>
+ // <remote><identity>sip:13 at localhost</identity><target uri="sip:13 at localhost"/></remote>
+ // <local><identity>sip:11 at localhost</identity><target uri="sip:11 at localhost"/></local>
+ // </dialog>
+ // Local is displayed, remote is the RURI
+
/*! \brief transmit_notify_with_mwi: Notify user of messages waiting in voicemail ---*/
/* Notification only works for registered peers with mailbox= definitions
More information about the asterisk-commits
mailing list