[asterisk-users] One phone, many names / Was: Loss of devices registration (pjsip)

Ishfaq Malik ish at pack-net.co.uk
Tue Mar 22 05:15:19 CDT 2016


On 22 March 2016 at 08:55, A J Stiles <asterisk_list at earthshod.co.uk> wrote:

> On Monday 21 Mar 2016, somsad khan wrote:
> > Hello guys,
> >
> > I need some help.
> >
> > I have a client coming who wants to assign 5 different numbers to one
> > virtual employee SIP phone at his desk or softphone (Zoiper).
> >
> > which I can assign for the incoming or outgoing both.
> >
> > but the problem is which I might not understanding enough, that,
> >
> > e.g. when line 1 calls the virtual employee will answer “hello this is
> xyz
> > company how can I help you”
> >
> > when line 2 calls the virtual employee will answer “hello this is abc
> > company how can I help you”
> >
> > So it is important the employee can recognize which line is calling as
> they
> > cannot say the wrong company name by mistake!
> >
> > please let me know if there is any possible ways.
>
> Dead easy!  Done this before, in a very similar situation  (agent has to
> answer with a different name, depending on the number the customer
> dialled).
>
> All you need to do -- as long as the phone you are using is modern enough
> to
> support it -- is have in your dialplan, before the Dial() instruction to
> the
> agent's phone, an instruction like
> Set(CALLERID(name)=something)
> where "something" depends on ${EXTEN}.
>
> For example, if the numbers for the virtual companies are 731615, 701289
> and
> 718182, and the extension to ring is 301, you might do
>
> [from_pstn]
> ; 731615 is company ABC
> exten => 731615,1,NoOp(Call to 731615)
> exten => 731615,n,Set(CALLERID(name)=Company ABC)
> exten => 731615,n,Dial(301)
> exten => 731615,n,HangUp()
>
> ; 701289 is company XYZ
> exten => 701289,1,NoOp(Call to 701289)
> exten => 701289,n,Set(CALLERID(name)=Company XYZ)
> exten => 701289,n,Dial(301)
> exten => 701289,n,HangUp()
>
> ; 718182 is company PQR
> exten => 718182,1,NoOp(Call to 718182)
> exten => 718182,n,Set(CALLERID(name)=Company PQR)
> exten => 718182,n,Dial(301)
> exten => 718182,n,HangUp()
>
>
> For the agent to be able to dial out presenting different caller ID
> numbers,
> use prefixes such as 16, 17, 18 to indicate dialling out as different
> companies;
> strip out the prefix using ${EXTEN:2} to recover the number by skipping two
> digits from the beginning, and Set(CALLERID(num)=) as appropriate.
>
>
>
>
You can also use the A option in the Dial application to play an audio file
to the callee before the channels are bridged.

https://wiki.asterisk.org/wiki/display/AST/Application_Dial



-- 

Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)161 660 2350
f: +44 (0)161 660 9825
e: ish at pack-net.co.uk
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160322/820366b4/attachment.html>


More information about the asterisk-users mailing list