<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Thanks for this - I'll give this a try as well. I ended up using
ODBC to get the internal Freeswitch DB into MySQL. Since I serve the
config via XML I did a lookup in the DB to get the Network Address
and Port of the user and sent a custom dial/bridge string to
Freeswitch with the Direct Indials number which is working a treat.<br>
<br>
Thanks for everyones input.<br>
<br>
David <br>
<br>
On 12/10/2010 5:50 PM, Ognjen Seslija wrote:
<blockquote
cite="mid:AANLkTikZDoW1_rSbDoCL+onwgj9iNkE4tbc=ycFTd_fO@mail.gmail.com"
type="cite"><action application="bridge"
data="{sip_invite_req_uri=<a moz-do-not-send="true"
href="http://sip:61390009000@192.168.22.2:5061">sip:61390009000@192.168.22.2:5061</a>,sip_invite_to_uri=<a class="moz-txt-link-freetext" href="sip:61390009000@192.168.22.2:5061">sip:61390009000@192.168.22.2:5061</a>}sofia/external/56778977%${domain}"/><br>
<br>
<div class="gmail_quote">On Fri, Oct 8, 2010 at 7:44 AM, David
Allen <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:thedjallen@gmail.com">thedjallen@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"> Hi,<br>
<br>
I'm trying to send multiple Direct Indial Numbers down to a
dynamically<br>
registered SIP User. I need to ensure that both the To and
Target URI<br>
contain the direct Indial number. I'm able to modify the SIP
TO Header<br>
of a call that is sent to them like below:<br>
<br>
<action application="bridge"<br>
data="sofia/external/56778977%${domain}^61390009000"/><br>
<br>
which sends the request as:<br>
<br>
------------------------------------------------------------------------<br>
<br>
INVITE <a moz-do-not-send="true"
href="http://sip:56778977@192.168.22.2:5061" target="_blank">sip:56778977@192.168.22.2:5061</a>
SIP/2.0<br>
<br>
Via: SIP/2.0/UDP
202.0.155.73;rport;branch=z9hG4bKXeND9cHtgKF2j<br>
<br>
Max-Forwards: 69<br>
<br>
From: "0390001000" <<a moz-do-not-send="true"
href="mailto:sip%3A0390001000@192.168.2.200">sip:0390001000@192.168.2.200</a>>;tag=K4HHaZ9v1H07Q<br>
<br>
To: <<a moz-do-not-send="true"
href="mailto:sip%3A61390009000@192.168.2.200">sip:61390009000@192.168.2.200</a>><br>
<br>
But in order to maintain compatability with a number of
PBX's/VoIP<br>
devices on the market, I need to be able to send the invite to
the<br>
dynamically registered SIP user, however have it set the
Target URI and<br>
To as the same contact number like below:<br>
<br>
------------------------------------------------------------------------<br>
<br>
INVITE <a moz-do-not-send="true"
href="http://sip:61390009000@192.168.22.2:5061"
target="_blank">sip:61390009000@192.168.22.2:5061</a>
SIP/2.0<br>
<br>
Via: SIP/2.0/UDP
202.0.155.73;rport;branch=z9hG4bKXeND9cHtgKF2j<br>
<br>
Max-Forwards: 69<br>
<br>
From: "0390001000" <<a moz-do-not-send="true"
href="mailto:sip%3A0390001000@192.168.2.200">sip:0390001000@192.168.2.200</a>>;tag=K4HHaZ9v1H07Q<br>
<br>
To: <<a moz-do-not-send="true"
href="http://sip:61390009000@192.168.22.2:5061"
target="_blank">sip:61390009000@192.168.22.2:5061</a>><br>
<br>
Is there a way to do this setting via variables? I can't seem
to find<br>
any details for it.<br>
<br>
Thanks<br>
<br>
David<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>