Hello,
are the lines ended by \r\n? Like:
/Messages-Waiting: yes\r\n.../
Cheers,
Daniel
On 22.01.19 16:51, Володимир Іванець wrote:
Hello!
I'm trying to process PUBLISH on Kamailio (v. 5.2.1) but constantly
getting "500 Server Internal Error" responce.
For packet body:
/Messages-Waiting: yes/
/Message-Account: sip:100-test@172.16.30.151
<mailto:sip%3A100-test@172.16.30.151>/
/Voice-Message: 1/2/
/
/
... debug output is:
/kamailio: 2(27127) DEBUG: presence [event_list.c:348]:
search_event(): start event= [message-summary/6]/
/kamailio: 2(27127) DEBUG: presence [publish.c:351]:
ki_handle_publish_uri(): SIP-If-Match header not found/
/kamailio: 2(27127) DEBUG: presence [presentity.c:88]:
generate_ETag(): etag= a.1548164100.27127.7.0 / 22/
/kamailio: 2(27127) DEBUG: presence [publish.c:360]:
ki_handle_publish_uri(): new etag = a.1548164100.27127.7.0/
/kamailio: 2(27127) DEBUG: presence [publish.c:385]:
ki_handle_publish_uri(): Expires header found, value= 16/
/kamailio: 2(27127) ERROR: presence_mwi [add_events.c:110]:
mwi_publ_handl(): check of body <Messages-Waiting: yes/
/kamailio: Message-Account: sip:100-test@172.16.30.151
<mailto:sip%3A100-test@172.16.30.151>/
/kamailio: Voice-Message: 1/2/
/kamailio: > failed at character number 22/
/kamailio: 2(27127) ERROR: presence [publish.c:480]:
ki_handle_publish_uri(): in event specific publish handling/
/
/
I'm not sure, but it appears to me that check in line 95
from
https://github.com/kamailio/kamailio/blob/5.2/src/modules/presence_mwi/add_…
is not passing. I was trying to add "\n" and "\r" to the end of each
string but I always had failure on character number 22.
Does anyone know how exactly PUBLISH packet body should look like?
Thanks a lot!
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 --
www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC,
USA --
www.asipto.com