[asterisk-commits] file: branch group/pimp_my_sip r383305 - /team/group/pimp_my_sip/res/res_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Mar 17 10:37:48 CDT 2013


Author: file
Date: Sun Mar 17 10:37:44 2013
New Revision: 383305

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383305
Log:
Fix a bug where the local URI would turn to garbage. It can't be static because it gets changed. >_>

Modified:
    team/group/pimp_my_sip/res/res_sip.c

Modified: team/group/pimp_my_sip/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip.c?view=diff&rev=383305&r1=383304&r2=383305
==============================================================================
--- team/group/pimp_my_sip/res/res_sip.c (original)
+++ team/group/pimp_my_sip/res/res_sip.c Sun Mar 17 10:37:44 2013
@@ -259,8 +259,7 @@
 {
 	RAII_VAR(struct ast_uuid *, uuid, ast_uuid_generate(), ast_free_ptr);
 	char uuid_str[AST_UUID_STR_LEN];
-	static pj_str_t local_uri = { "sip:temp at temp", 13 };
-	pj_str_t remote_uri;
+	pj_str_t local_uri = { "sip:temp at temp", 13 }, remote_uri;
 	pjsip_dialog *dlg = NULL;
 	const char *transport_name = endpoint->transport, *outbound_proxy = endpoint->outbound_proxy;
 	pjsip_tpselector selector = { .type = PJSIP_TPSELECTOR_NONE, };




More information about the asterisk-commits mailing list