From miconda@gmail.com Mon Dec 5 11:33:21 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:33:10 +0100 Message-ID: <528467b5-972d-de75-ec50-216b769a3645@gmail.com> In-Reply-To: =?utf-8?q?=3CAM4PR0201MB2162F474198FC06D37D82E8BBD8E0=40AM4PR02?= =?utf-8?q?01MB2162=2Eeurprd02=2Eprod=2Eoutlook=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0302987964==" --===============0302987964== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, this is only when you do jsonrpc over http, but it is not the case here. See my previous response in this discussion thread. Cheers, Daniel On 02/12/2016 15:28, Jonathan Hunter wrote: > > Hi Daniel, > > > I can see when people are using curl they can define content-type ; > > > /--header 'Content-Type: application/json'/ > However is this possible within the jsonrpc_exec command, as this > seems to set the body. > > > Can you define the Content-Type before firing the command? > > > Thanks > > > Jon > > > > ------------------------------------------------------------------------ > *From:* sr-users on behalf of > Jonathan Hunter > *Sent:* 01 December 2016 16:12 > *To:* Kamailio SER - Users Mailing List; miconda(a)gmail.com > *Subject:* Re: [SR-Users] Send SIP Info within a dialog using > $uac_req(method)=3D"INFO" > =20 > 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: