Add back sending dialnumber to skinny.
authorDamien Wedhorn <voip@facts.com.au>
Thu, 14 Feb 2013 19:55:29 +0000 (19:55 +0000)
committerDamien Wedhorn <voip@facts.com.au>
Thu, 14 Feb 2013 19:55:29 +0000 (19:55 +0000)
Don't know why it seemed to work during testing, but it really is needed
for protocol v17 (and probably above).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381470 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 84819d6..2ce82c7 100644 (file)
@@ -2426,8 +2426,8 @@ static void transmit_callinfo_variable(struct skinny_device *d, int instance, in
        } else {
                thestrings[2] = "";
        }
-       thestrings[3] = "";
-       thestrings[4] = "";
+       thestrings[3] = "203";
+       thestrings[4] = "204";
        thestrings[5] = "";
        thestrings[6] = "";
        thestrings[7] = "";
@@ -2809,10 +2809,6 @@ static void transmit_dialednumber(struct skinny_device *d, const char *text, int
 {
        struct skinny_req *req;
 
-       if (d->protocolversion > 16) {
-               return;
-       }
-
        if (!(req = req_alloc(sizeof(struct dialed_number_message), DIALED_NUMBER_MESSAGE)))
                return;