Hi, 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. Thanks for everyones input. David On 12/10/2010 5:50 PM, Ognjen Seslija wrote:
<action application="bridge" data="{sip_invite_req_uri=sip:61390009000@192.168.22.2:5061 <http://sip:61390009000@192.168.22.2:5061>,sip_invite_to_uri=sip:61390009000@192.168.22.2:5061}sofia/external/56778977%${domain}"/>
On Fri, Oct 8, 2010 at 7:44 AM, David Allen <thedjallen@gmail.com <mailto:thedjallen@gmail.com>> wrote:
Hi,
I'm trying to send multiple Direct Indial Numbers down to a dynamically registered SIP User. I need to ensure that both the To and Target URI contain the direct Indial number. I'm able to modify the SIP TO Header of a call that is sent to them like below:
<action application="bridge" data="sofia/external/56778977%${domain}^61390009000"/>
which sends the request as:
------------------------------------------------------------------------
INVITE sip:56778977@192.168.22.2:5061 <http://sip:56778977@192.168.22.2:5061> SIP/2.0
Via: SIP/2.0/UDP 202.0.155.73;rport;branch=z9hG4bKXeND9cHtgKF2j
Max-Forwards: 69
From: "0390001000" <sip:0390001000@192.168.2.200 <mailto:sip%3A0390001000@192.168.2.200>>;tag=K4HHaZ9v1H07Q
To: <sip:61390009000@192.168.2.200 <mailto:sip%3A61390009000@192.168.2.200>>
But in order to maintain compatability with a number of PBX's/VoIP devices on the market, I need to be able to send the invite to the dynamically registered SIP user, however have it set the Target URI and To as the same contact number like below:
------------------------------------------------------------------------
INVITE sip:61390009000@192.168.22.2:5061 <http://sip:61390009000@192.168.22.2:5061> SIP/2.0
Via: SIP/2.0/UDP 202.0.155.73;rport;branch=z9hG4bKXeND9cHtgKF2j
Max-Forwards: 69
From: "0390001000" <sip:0390001000@192.168.2.200 <mailto:sip%3A0390001000@192.168.2.200>>;tag=K4HHaZ9v1H07Q
To: <sip:61390009000@192.168.22.2:5061 <http://sip:61390009000@192.168.22.2:5061>>
Is there a way to do this setting via variables? I can't seem to find any details for it.
Thanks
David
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org