[asterisk-commits] dvossel: branch dvossel/sip_nonblocking_tcp_client r220675 - /team/dvossel/si...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 28 10:41:59 CDT 2009


Author: dvossel
Date: Mon Sep 28 10:41:56 2009
New Revision: 220675

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=220675
Log:
merge fix.  this commit to trunk never made it into my branch for some reason.
It makes my diff look like I'm taking it out when I compare to trunk so I am
adding it by hand.


Modified:
    team/dvossel/sip_nonblocking_tcp_client/channels/chan_sip.c

Modified: team/dvossel/sip_nonblocking_tcp_client/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/sip_nonblocking_tcp_client/channels/chan_sip.c?view=diff&rev=220675&r1=220674&r2=220675
==============================================================================
--- team/dvossel/sip_nonblocking_tcp_client/channels/chan_sip.c (original)
+++ team/dvossel/sip_nonblocking_tcp_client/channels/chan_sip.c Mon Sep 28 10:41:56 2009
@@ -10073,6 +10073,7 @@
 static int add_rpid(struct sip_request *req, struct sip_pvt *p)
 {
 	struct ast_str *tmp = ast_str_alloca(256);
+	char tmp2[256];
 	char *lid_num = NULL;
 	char *lid_name = NULL;
 	int lid_pres;
@@ -10096,6 +10097,8 @@
 	if (ast_strlen_zero(lid_name))
 		lid_name = lid_num;
 	fromdomain = S_OR(p->fromdomain, ast_inet_ntoa(p->ourip.sin_addr));
+
+	lid_num = ast_uri_encode(lid_num, tmp2, sizeof(tmp2), 1);
 
 	if (ast_test_flag(&p->flags[0], SIP_SENDRPID_PAI)) {
 		if ((lid_pres & AST_PRES_RESTRICTION) != AST_PRES_ALLOWED) {




More information about the asterisk-commits mailing list