[asterisk-commits] eliel: branch eliel/data_api_providers_gsoc2010 r260563 - /team/eliel/data_ap...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun May 2 14:17:28 CDT 2010
Author: eliel
Date: Sun May 2 14:17:24 2010
New Revision: 260563
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=260563
Log:
Show the transport name instead of the enum integer.
Modified:
team/eliel/data_api_providers_gsoc2010/channels/chan_sip.c
Modified: team/eliel/data_api_providers_gsoc2010/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/eliel/data_api_providers_gsoc2010/channels/chan_sip.c?view=diff&rev=260563&r1=260562&r2=260563
==============================================================================
--- team/eliel/data_api_providers_gsoc2010/channels/chan_sip.c (original)
+++ team/eliel/data_api_providers_gsoc2010/channels/chan_sip.c Sun May 2 14:17:24 2010
@@ -27079,7 +27079,6 @@
MEMBER(sip_peer, mwi_from, AST_DATA_STRING) \
MEMBER(sip_peer, engine, AST_DATA_STRING) \
MEMBER(sip_peer, unsolicited_mailbox, AST_DATA_STRING) \
- MEMBER(sip_peer, transports, AST_DATA_INTEGER) \
MEMBER(sip_peer, is_realtime, AST_DATA_BOOLEAN) \
MEMBER(sip_peer, host_dynamic, AST_DATA_BOOLEAN) \
MEMBER(sip_peer, autoframing, AST_DATA_BOOLEAN) \
@@ -27133,6 +27132,9 @@
ast_data_add_structure(sip_peer, data_peer, peer);
+ /* transports */
+ ast_data_add_str(data_peer, "transports", get_transport_list(peer->transports));
+
/* peer type */
if ((peer->type & SIP_TYPE_USER) && (peer->type & SIP_TYPE_PEER)) {
ast_data_add_str(data_peer, "type", "friend");
More information about the asterisk-commits
mailing list