<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Check out <a href="http://wiki.freeswitch.org/wiki/Function_sofia_contact">http://wiki.freeswitch.org/wiki/Function_sofia_contact</a> specifically the syntax using the ^. Does this get you what you want, if not, how close is it? We could add a similar syntax for other behavior. Could you explain what exactly you want different in the sip packet?<div><br><div><div>On Aug 22, 2012, at 10:52 AM, Ian Halliday <<a href="mailto:ihalliday@ndevix.com">ihalliday@ndevix.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html;charset=iso-8859-1" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 9.00.8112.16437">
<div style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" id="MailContainerBody" leftmargin="0" topmargin="0" canvastabstop="true" name="Compose message area"><font size="2" face="Arial">Hello All,<br><br>I use
freeswitch to route inbound calls to some of the PBX's we host, and I<br>use the
following method (Below) to do so. It's been working great (20,000<br>calls in
the first month without a problem), but I wanted to get a second<br>opinion to
see if there was a better way to do such a thing (keeping the DID<br>intact).
Any help would be appreciated. (I used an example DID and
extention)<br><br><extension name="setdid"><br><condition
field="destination_number" expression="^setdid$"><br><action
application="set" data="dialed_ext=${did}"/><br><action application="set"
data="hangup_after_bridge=true"/><br><action application="set"
data="disable_q850_reason=true"/><br><action
application="bridge"<br>data="sofia/internal/${did}${regex(${sofia_contact(${user})}|^[^\@]+(.*)|%1)}"/><br></condition><br></extension><br><br><extension
name="13125551234"><br><condition field="destination_number"
expression="^13125551234$"><br><action application="set"
data="user=user1002"/><br><action application="set"
data="did=${destination_number}"/><br><action
application="execute_extension"
data="setdid"/><br></condition><br></extension><br><br></font></div></blockquote></div><br></div></body></html>