<p>Yang Chen <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15727">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_pjsip_messaging.c: Fix: unstable domain filed in To header<br><br>This issue happens when client IP address changed like from wifi to 4G.<br>The domain filed in To header should be a fix string, this patch provide<br>a method of rewriting to a predefined domian string.<br><br>Usage: append ';x-to_domain=mydomain.com' to the end of full uri<br>which usually retrieved from ${PJSIP_DIAL_CONTACTS(${EXTEN})}<br>e.g.:<br>same => n,Set(ToContacts=${PJSIP_DIAL_CONTACTS(${EXTEN})})<br>same => n,While($["${SET(ToContact=${SHIFT(ToContacts,&):6})}" != ""])<br>same => n,Set(TOURI=pjsip:${ToContact}\;x-to_domain=mydomain.com)<br>same => n,MessageSend(${TOURI},${MESSAGE(from)})<br><br>ASTERISK-28928<br>ASTERISK-28513<br>Reported-by: Yang Chen <yang.chen@linuxe.org><br>Reported-by: Brian J. Murrell <brian@interlinx.bc.ca><br><br>Change-Id: Ib164d5274ffe73db15811d4decfc50e6eddcf80c<br>Signed-off-by: Yang Chen <yang.chen@linuxe.org><br>---<br>M res/res_pjsip_messaging.c<br>1 file changed, 24 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/27/15727/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15727">change 15727</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/15727"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: Ib164d5274ffe73db15811d4decfc50e6eddcf80c </div>
<div style="display:none"> Gerrit-Change-Number: 15727 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Yang Chen <yang.chen@linuxe.org> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-CC: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>