From miconda@gmail.com Mon Dec 5 11:32:37 2016 From: Daniel-Constantin Mierla To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO" Date: Mon, 05 Dec 2016 11:32:29 +0100 Message-ID: In-Reply-To: =?utf-8?q?=3CAM4PR0201MB2162F59FD9D5F04DC7B25DB4BD8F0=40AM4PR02?= =?utf-8?q?01MB2162=2Eeurprd02=2Eprod=2Eoutlook=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0020959397==" --===============0020959397== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, all the headers must be in a single parameter, I see that you provide headers one by one in the params array. Try: jsonrpc_exec(' { "jsonrpc":"2.0", "method":"tm.t_uac_start", "params": [ "INFO", "$dlg(to_uri)", ".", ".", =20 "From:$var(testjon)\r\nTo:$var(testjon2)\r\nContact:$var(testjon4)\r\nContent= -Type: application/json\r\nContent-Length: 0\r\n" ] } '); Cheers, Daniel On 01/12/2016 17:12, Jonathan Hunter wrote: > Hi Daniel,=20 > > I am trying tm.t_uac_start and its stating Content-Type Missing, I > have tried to add to params but it doesnt like it, where should it be > defined? > > Command below; > > > jsonrpc_exec('{"jsonrpc":"2.0","method":"tm.t_uac_start","params": > ["INFO", > "$dlg(to_uri)",".",".","From:$var(testjon)\r\n","To:$var(testjon2)\r\n","Co= ntact:$var(testjon4)\r\n","Content-Type: > application/json\r\n","Content-Length: 0\r\n"]}'); > > And logs; > > Dec 1 16:09:15 POC_ProxyA /usr/sbin/kamailio[11883]: INFO: