receiving INFO request

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

 



Hello,

I am trying to extend the Simple UA example to accept INFO requests.
http://www.pjsip.org/pjsip/docs/html/page_pjsip_sample_simple_ua_c.htm

I have added on_tsx_state function to mod_simpleua with following prototype:
static void call_on_state_changed( pjsip_inv_session *inv,pjsip_event *e);

Then I added accept INFO capabilities to the end point.
const pj_str_t   STR_INFO = { "INFO",4 };
pjsip_endpt_add_capability(sip_endpt, NULL, PJSIP_H_ALLOW,NULL, 1, &STR_INFO);

But when the INFO messages comes in, in the debug I see the following:

11:12:17.823    tsx0x7389c8  ..Request msg INFO/cseq=7 (rdata0x6ca648) was unhandled by dialog usages, sending 500 response
11:12:17.823      siptest.c  ....TX 330 bytes Response msg 500/INFO/cseq=7 (tdta0x730ba0) to UDP 192.168.100.136:5060:
SIP/2.0 500 Unhandled by dialog usages

Am I missing something to receive the INFO messages properly?

Cheers,
Gerard
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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