[Freeswitch-users] Passing Dialed Number to User Agent

Stanislav Sinyagin ssinyagin at gmail.com
Mon Aug 3 09:54:34 MSD 2015


the simplest way is to have your extension numbers to be full e164
numbers: 19545551212 instead of 1100 in the default context.

Alternatively, you may add a SIP header indicating the dialed number,
and configure your target PBX to take the information from there.

Also see "Modifying the To: header" at
https://wiki.freeswitch.org/wiki/Sofia-SIP , which may actually be
what you need.

you see, there's always a number of ways to do what you want :)



On Mon, Aug 3, 2015 at 12:57 AM, Rick Ewart <rick at ewart.net> wrote:
> Hello.
>
>
>
> I am a relative newbie with FreeSwitch. Have been reading the FreeSWITCH 1.2
> book and have managed to setup things and get them working without too much
> issue.
>
>
>
> I am basically trying to setup FreeSwitch to act as an intermediary
> (softswitch) between my carriers and my client’s PBXs. I have the PBXs
> registering as extensions and am able to make calls and direct DIDs into
> them.
>
>
>
> The one thing I seem to be struggling with (at the moment anyhow) is how to
> pass the dialed number (i.e. DID dialed) to the internal extension I am
> transferring the call to. Because the one user will have multiple DIDs
> assigned to them and their system (an Asterisk PBX) needs to route the
> incoming call appropriately. But the “dialed number” being passed to the
> Asterisk PBX is the extension being called for the transfer.
>
>
>
> I have spent hours googling for an answer and never seem to get quite what I
> need. Seems I need to set a variable, but what I have done so far isn’t
> working.
>
>
>
> Below is my definition for the DID. I am wondering if this is the correct
> way to go about this, or if I should be setting these up different? I do
> want the clients to register to my switch, which is why I have them setup as
> internal user extensions.
>
>
>
> Thanks in advance for any help you can provide.
>
> Rick
>
>
>
> <include>
>
>   <extension name="test_did">
>
>     <condition field="destination_number" expression="^(19545551212)$">
>
>       <action application="set" data="domain_name=$${domain}"/>
>
>       <action application="set" data="dialed_number=19545551212"/>
>
>       <action application="transfer" data="1100 XML default"/>
>
>     </condition>
>
>   </extension>
>
> </include>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list