[SR-Users] Sending Notify With Custom Event Header

Alex Balashov abalashov at evaristesys.com
Fri Apr 27 08:16:01 CEST 2018


Your best bet is probably $uac_req from the uac module. 

On April 26, 2018 7:31:51 PM EDT, strain17 <strain17 at yahoo.com> wrote:
>Hi All,
>I'm trying to send a custom NOTIFY message to a list of users that are
>registered with Kamailio. The procedure would be invoked via HTTP
>(jsonrpc/xmlrpc over HTTP). 
>1. Should I be looking at the t_uac_start/t_uac_dlg MI commands to
>accomplish this? Is this the best way to do it if the NOTIFY sent to
>the phones are unsolicited?  2. I tried to use the xhttp_rpc module for
>testing out tm.t_uac_start but kept running into 400 invalid headers.
>I'm not sure if there is a syntax issue.
>
>The NOTIFY example is
>NOTIFY sip:123 at 192.168.5.5 . . From:333 at 1.1..1\r\nTo:test at 2.2.2.2
>
>    
>- Request URL:
>http://x.x.x.x/http_rpc/tm/tm.t_uac_start?arg=NOTIFY+sip%3A123%40192.168.5.5+.+.+From%3A333%401.1..1%5Cr%5CnTo%3Atest%402.2.2.2
>   - Request Method: GET
>   - Status Code: 400 Invalid headers
>Thanks for any feedback!


-- Alex

--
Sent via mobile, please forgive typos and brevity. 



More information about the sr-users mailing list