[Freeswitch-users] Differentiating external did

John freeswitch at earthspike.net
Tue Feb 21 01:15:24 MSK 2012


Joseph

I do this with multiple DIDs on a FreeTDM ISDN trunk.  In the public 
context dialplan I have an extension for each DID (and a catch all ^.*$ 
at the end because I like to install a known catch point in case the 
provider [BT in UK] goes mad):

<extension name="public_abc">
<condition field="destination_number" expression="^987654$">
:
:
<action application="set" 
data="effective_caller_id_name=ABC:0${caller_id_number}"/>
<action application="set" 
data="effective_caller_id_number=0${caller_id_number}"/>

The provider drops the leading 0 from the caller ID, so I add that back 
in, and for the name prefix with ABC to represent the incoming DID.  
Also, my provider only sends the last 6 digits as the called number; 
your mileage may vary...

John

On 20/02/12 07:26, Victor wrote:
> One way is to add a prefix to the incoming callerid name. Ex: DID1-DOE,JOHN
>
> --Victor
>
>
>
> 2012/2/19 Joseph L. Casale<jcasale at activenetwerx.com>:
>> I have two offices that each had their own single external did and have now
>> combined locations so they want both dids registered on one server.
>>
>> However they want to discern from which did an inbound call originates on their
>> Aastra desk phones.
>>
>> Anyway to accomplish this?
>>
>> Thanks!
>> jlc
>>




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list