<div dir="ltr">Not sure if it's a default Kamailio behavior or something I'm doing wrong...<div><br></div><div>When receiving a negative reply for an INVITE (more like in the 5xx range), proxy doesn't relay the message to the originator but instead issues it's own "500 Service Unavailable".</div><div><br></div><div>That doesn't happen, from observations so far, to "603 Declined" or "486 Busy Here" or "404 Not Found" or "200 OK" replies.</div><div><br></div><div><b>For example, here's the negative reply proxy receives from the callee:</b></div><div><div><br></div><div>2018/05/14 10:52:37.716627 65.XX.XX.166:5060 -> 65.XX.XX.167:5060</div><div>SIP/2.0 503 Service Unavailable</div><div>Via: SIP/2.0/UDP 65.xx.xx.167;branch=z9hG4bK9223.00b4f3143d245a895c4bb6a107add258.0;received=65.xx.xx.167;rport=5060</div><div>Via: SIP/2.0/UDP 205.xx.xx.221;received=205.xx.xx.221;rport=5060;branch=z9hG4bKQ4XpXga0vgZ8B</div><div>From: "514XXXXXXX" <sip:

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">514XXXXXXX</span>

@205.xx.xx.221>;tag=tXj0NHrje9jNS</div><div>To: <sip:450XXXXXXX@65.xx.xx.167>;tag=as18e452b7</div><div>Call-ID: 48eac296-d229-1236-a685-005056a149a4</div><div>CSeq: 122818714 INVITE</div><div>Server: Asterisk</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE</div><div>Supported: replaces, timer</div><div>Session-Expires: 1800;refresher=uas</div><div>X-Asterisk-HangupCause: Subscriber absent</div><div>X-Asterisk-HangupCauseCode: 20</div><div>Content-Length: 0</div></div><div><br></div><div><b>Here's what the originator gets in the final message:</b></div><div><br></div><div><div>2018/05/14 10:52:37.718143 65.xx.xx.167:5060 -> 205.xx.xx.221:5060</div><div>SIP/2.0 500 Service Unavailable</div><div>Via: SIP/2.0/UDP 205.xx.xx.221;rport=5060;branch=z9hG4bKQ4XpXga0vgZ8B;received=205.xx.xx.221</div><div>From: "514XXXXXXX" <sip:514XXXXXXX@205.xx.xx.221>;tag=tXj0NHrje9jNS</div><div>To: <sip:450XXXXXXX@65.xx.xx.167>;tag=31a2c69b5d434ef4a60796e26f568bf0-9343</div><div>Call-ID: 48eac296-d229-1236-a685-005056a149a4</div><div>CSeq: 122818714 INVITE</div><div>Server: Kamailio 5.1</div><div>Content-Length: 0</div></div><div><br></div><div>I'd like any reply to be relayed back as is, unless I do some t_check_status() => t_reply() for specific reasons (which I have none at this point).</div><div><br></div><div>Thanks</div><div>Sergiu</div><div><br></div></div>