This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.Hi Gerard,
You can receive INFO message inside an established call or outside. Inside a call, you will be notified through the callback function inv_cb.on_tsx_state_changed. If you receive an INFO outside a dialog, then the on_rx_request function is called.
Hope it helps.
Bernard
De : pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] De la part de Gerard van den Bosch
Envoyé : vendredi 1 juillet 2016 05:39
À : pjsip@xxxxxxxxxxxxxxx
Objet : receiving INFO request
Hello,
I am trying to extend the Simple UA example to accept INFO requests.
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
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org