Hi,
in prescript function in dlg.c line 543, you check if CallID looks like B2B hash key to prevent self sending.
543 if(b2b_parse_key(&callid, &hash_index, &local_index) >= 0)
544 {
545 LM_DBG("received a CANCEL message that I sent\n");
546 return 1;
547 }
But if there are linked b2b, and a node Cancel a session, the cancel is not send to logic because CallID looks like B2B hash.
Regards,
If you are chaining several opensipsnservers running in b2b mode, then use different prefixes:
http://www.opensips.org/html/docs/modules/devel/b2b_entities.html#id250032
Regards,
Ovidiu Sas