<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16437"></HEAD>
<BODY 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>Thanks!</FONT></BODY></HTML>