From c813d03e97741d37512416662cbf56c543778fa7 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Wed, 24 Feb 2010 11:58:25 +0000 Subject: [PATCH] Skinny: Milestone 1 : device level (PortMessage) -Handle PortMessage git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16752 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_skinny/mod_skinny.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 04b9b153ba..41a325a907 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -139,6 +139,7 @@ union skinny_data { struct register_message reg; struct register_ack_message reg_ack; + uint16_t as_uint16; char as_char; void *raw; }; @@ -740,7 +741,7 @@ static switch_status_t skinny_parse_request(listener_t *listener, skinny_message keepalive_listener(listener, NULL); break; case PORT_MESSAGE: - /* Nothing to do */ + device->port = request->data.as_uint16; break; case KEEP_ALIVE_MESSAGE: reply = switch_core_alloc(listener->pool, 12);