]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: Milestone 1 : device level (PortMessage)
authorMathieu Parent <math.parent@gmail.com>
Wed, 24 Feb 2010 11:58:25 +0000 (11:58 +0000)
committerMathieu Parent <math.parent@gmail.com>
Wed, 24 Feb 2010 11:58:25 +0000 (11:58 +0000)
-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

index 04b9b153bac2cc6d9024c9a9619b2e214bd622aa..41a325a9079c309e7ed03d9473aa67ff1613ff81 100644 (file)
@@ -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);