[sr-dev] [kamailio/kamailio] 180 Ringing without Contact with TOPOS enabled (#1720)

Sergey Basov notifications at github.com
Thu Nov 22 16:07:59 CET 2018


@miconda I think correct way will be:
```
        tps_remove_headers(msg, HDR_RECORDROUTE_T);

        if(msg->first_line.u.reply.statuscode>100
                                && msg->first_line.u.reply.statuscode<200
                                && msg->contact==NULL) {
                                        contact_keep = 1;
        }

        /* keep contact without updates for redirect responses sent out */
        if(contact_keep==0 && (msg->first_line.u.reply.statuscode<300
                        || msg->first_line.u.reply.statuscode>=400)) {
                tps_remove_headers(msg, HDR_CONTACT_T);

                if(direction==TPS_DIR_DOWNSTREAM) {
                        tps_reinsert_contact(msg, &stsd, &stsd.as_contact);
                } else {
                        tps_reinsert_contact(msg, &stsd, &stsd.bs_contact);
                }
        }                
        
        tps_reappend_rr(msg, &btsd, &btsd.x_rr);
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1720#issuecomment-441057459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181122/4520e876/attachment-0001.html>


More information about the sr-dev mailing list