From hunterj91@hotmail.com Fri Dec 2 15:28:20 2016 From: Jonathan Hunter To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Send SIP Info within a dialog using $uac_req(method)="INFO" Date: Fri, 02 Dec 2016 14:28:01 +0000 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="===============0202495553==" --===============0202495553== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 s= et the body. Can you define the Content-Type before firing the command? Thanks Jon ________________________________ From: sr-users on behalf of Jonatha= n 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" Hi Daniel, 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","Conta= ct:$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: