We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f55e1 commit 7d9227bCopy full SHA for 7d9227b
modules/tm/t_lookup.c
@@ -942,7 +942,20 @@ int init_rb( struct retr_buf *rb, struct sip_msg *msg)
942
{
943
int proto;
944
945
- update_sock_struct_from_ip( &rb->dst.to, msg );
+ if (!reply_to_via) {
946
+ update_sock_struct_from_ip( &rb->dst.to, msg );
947
+ proto=msg->rcv.proto;
948
+ } else {
949
+ /*init retrans buffer*/
950
+ if (update_sock_struct_from_via( &(rb->dst.to), msg, msg->via1 )==-1) {
951
+ LM_ERR("cannot lookup reply dst: %.*s\n",
952
+ msg->via1->host.len, msg->via1->host.s );
953
+ ser_error=E_BAD_VIA;
954
+ return 0;
955
+ }
956
+ proto=msg->via1->proto;
957
958
+
959
proto=msg->rcv.proto;
960
rb->dst.proto=proto;
961
rb->dst.proto_reserved1=msg->rcv.proto_reserved1;
0 commit comments