[Freeswitch-users] Passing Dialed Number to User Agent

Rick Ewart rick at ewart.net
Mon Aug 3 16:10:35 MSD 2015


Hi Stanislav.

Thanks that might be exactly what I need - the modification of the To: 
header, that is.

I don't think a custom header would probably work well as there will be 
multiple different systems connecting in, so I need to make it somewhat 
transparent. Similarly, naming the extension the full E164 numbers wont work 
either as I would otherwise need a separate registration for each DID. Some 
of my PBXs can have 50 DIDs going to them, which would be a nightmare to 
manage and create unnecessary traffic.

Thanks for your help and thoughts.
Rick

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org 
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of 
Stanislav Sinyagin
Sent: Monday, August 03, 2015 1:55 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Passing Dialed Number to User Agent

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-use
> rs
> http://www.freeswitch.org

_________________________________________________________________________
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