chan_sip: Update the via header when relaying SMS MESSAGE
[asterisk/asterisk.git] / channels / chan_sip.c
index c1b4bd3..40f44eb 100644 (file)
@@ -27081,6 +27081,7 @@ static int sip_msg_send(const struct ast_msg *msg, const char *to, const char *f
                ast_string_field_set(pvt, username, to_user);
        }
        ast_sip_ouraddrfor(&pvt->sa, &pvt->ourip, pvt);
+       build_via(pvt);
        ast_set_flag(&pvt->flags[0], SIP_OUTGOING);
 
        /* XXX Does pvt->expiry need to be set? */