How to add Event Package Parameters with pjsip_evsub_create_uac() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

As per RFC 3265 Event Packages can have parameters. I am implementing
RFC 6080 (A Framework for Session Initiation Protocol User Agent
Profile Delivery) and need that the Event header in the SUBSCRIBE
message will look like:

 Event: ua-profile;profile-type=device;vendor="vendor.example.net";model="Z100";version="1.2.3"

I am using

pj_status_t pjsip_evsub_create_uac 	( 	pjsip_dialog *  	dlg,
		const pjsip_evsub_user *  	user_cb,
		const pj_str_t *  	event,
		unsigned  	option,
		pjsip_evsub **  	p_evsub	
	) 	


to create the subscription. Unfortunately it does not have the
mechanism to set Event Package Parameters. So I am passing the whole
string "ua-profile;profile-type=device;vendor="vendor.example.net";model="Z100";version="1.2.3""
in the event parameter. When I send SUBSCRIBE the Event header looks
as needed (i.e. it has all parameters). However when NOTIFY arrives it
is always rejected with
481 (Subscription Does Not Exist). This is because of event package
name mismatch - in the subscription context the whole string (i.e.
with parameters) is treated as event package name (which is wrong)
while in the NOTIFY Event header the event package name is extracted
properly (i.e. without parameters).

In my opinion it look like a bug but I would like to hear the advice
from the community.
Thank you,

Sergey Markovich



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux