<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Why are you touching the code? Just edit the sip profile and set the ext-sip-ip and ext-rtp-ip or remove them that is what triggers the stun lookup. In the default config its set to stun:stun.freeswitch.org which in your case that is failing. <div><br></div><div>The $1 results from not doing a capture in your regular expression so wrap it in () ie ^(5\d{4})$"</div><div><br></div><div><div><div>/b</div><div><br><div><div>On Jul 31, 2008, at 11:30 AM, Simon Shaw wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(31, 73, 125); font-family: Calibri; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">OK, commented out the lines of code in sofia_glue.c that run the stun test and now I see an INVITE message being sent to the trunk, however the To field is<a href="mailto:$1@10.10.7.95" style="color: blue; text-decoration: underline; ">$1@10.10.7.95</a><span class="Apple-converted-space"> </span>instead of 58661 as I would have expected.</span></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Brian West</div><div><a href="sip:brian@freeswitch.org">sip:brian@freeswitch.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br></div></div></div></body></html>