# c2d

**URL:** <https://community.asterisk.org/t/c2d/37531>\
**Category:** Asterisk Support\
**Created:** [November 30, 2011, 8:42am UTC](https://community.asterisk.org/t/c2d/37531 "2011-11-30T08:42:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 30, 2011, 8:42am UTC](https://community.asterisk.org/t/c2d/37531/1 "2011-11-30T08:42:49Z")

</div>

Hallo and greetings to everybody,

my name is Rainer, i live in Germany and i am new to this forum.

For a problem i am working on i need some help:

On my desctop i am running a softphone (phoner). The sp is registered at Asterisk. At the pc there is no microfon neither speaker or headset or anything else for talking.  
For outgoing calls i use my desctop phone.  
So i would like to DIAL the destination phonenumber with my softphone and then hand over the call automatic to my desctop phone to do the call, nearly like a click to dial funktion.  
The thing i need, i think, is an automated call transfer from the softphone to the hardphone.  
I tried some commands in the extensions.conf like

- transfer
- bridge  
and some other but nothing works for me.  
I also found a thread, where somebody explains to realize this via meeting, but i think this is a big shot for a small problem 😉

Is somebody out there, who give me a hint, how to set up this funktion in the extensions.conf?

Any help will be apreciated.  
Thanks in advance.

Greetings

Rainer

---

<div class="post-metadata">

**Author:** ![adeel2215](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@adeel2215](https://community.asterisk.org/u/adeel2215)\
**Post date:** [November 30, 2011, 12:21pm UTC](https://community.asterisk.org/t/c2d/37531/2 "2011-11-30T12:21:56Z")

</div>

I would suggest to have this meeting in order to understand Asterisk functions 😄 I also live in Germany 😄  
Anyway, you need to register first the hard phone to Asterisk and you may then use dialplan to forward calls to this hard phone.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 30, 2011, 12:34pm UTC](https://community.asterisk.org/t/c2d/37531/3 "2011-11-30T12:34:33Z")

</div>

Hello adeel2215,

thanks for your sugestions.  
The hard phone is registered at the Asterisk.  
I’ve read this morning a lot about the BRIDGE function in the dialplan of Asterisk.  
Seems that should work for me but nowhere i could find an example with more the 2 lines of code ☹

So i don’t know exactly to define this bridge() command in the extensions.conf.

Do you know an adress with a more detailed example?

Regards

Rainer

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [November 30, 2011, 12:42pm UTC](https://community.asterisk.org/t/c2d/37531/4 "2011-11-30T12:42:39Z")

</div>

What are you trying to dial from ?

There are plugins for Thunderbird and ADA may also still be available as is asttapi  
if its Firefox there are scripts for grease-monkey that will do this.

basically ditch the soft-phone and use a app to do the dialing.

ian

[www.cyber-cottage.co.uk](http://www.cyber-cottage.co.uk)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 30, 2011, 1:16pm UTC](https://community.asterisk.org/t/c2d/37531/5 "2011-11-30T13:16:29Z")

</div>

Hello ian,

thank you.

> [@ianplain](#):
>
> What are you trying to dial from ?

Let me explain it in another way:

I am running three phones (phone\_1, phone\_2, phone\_3), all of them are registered at Asterisk.  
Now i dial from phone\_1 the number of phone\_3.  
If phone\_3 is ringing i would like to have an automaticly transfer from phone\_1 to phone\_2.  
In this way i could dial my number from phone\_1 but make the call from phone\_2 to phone\_3.

[quote] There are plugins for Thunderbird and ADA may also still be available as is asttapi  
if its Firefox there are scripts for grease-monkey that will do this.  
[/quote]  
This is right but i need the described functionality for a special app and also i am interested to learn about it.

Regards

Rainer

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [November 30, 2011, 1:49pm UTC](https://community.asterisk.org/t/c2d/37531/6 "2011-11-30T13:49:09Z")

</div>

Why ?  
seems overly complicated method of making a call as as you say teh mic doesnt work on the PC anyway.

Ian

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 30, 2011, 1:53pm UTC](https://community.asterisk.org/t/c2d/37531/7 "2011-11-30T13:53:09Z")

</div>

[quote=“ianplain”]Why ?  
seems overly complicated method of making a call as as you say teh mic doesnt work on the PC anyway.

Ian[/quote]

Like i’ve explained in my first post:

Dialing from PC but speaking from the hard phone.

Greets

Rainer

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 30, 2011, 1:55pm UTC](https://community.asterisk.org/t/c2d/37531/8 "2011-11-30T13:55:21Z")

</div>

Unless you give a good reason why this needs to be done, I don’t think anyone is going to put much effort into working out how to trick asterisk into doing it (in principle it can be done by getting the call to shell out and do AMI or CLI originate, but there are a lot of details to fill in for something that seems pointless. I’m not sure if later versions of Asterisk can do originate direct from the dialplan.

At the moment, it seems so contrived that it could be a school homework exercise.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 30, 2011, 2:48pm UTC](https://community.asterisk.org/t/c2d/37531/9 "2011-11-30T14:48:16Z")

</div>

Hello david55,

thank you so much, ORIGINATE did the trick.  
I’ve tried it and it works fine!

> [@](#):
>
> I’m not sure if later versions of Asterisk can do originate direct from the dialplan.

That means that till now there is no way to do this via the dialplan?  
Now i understand why i didn’t find anything to this in the internet.

> [@](#):
>
> it could be a school homework exercise

No, it is not a school exercise, i left school 30 years ago 😉

> [@](#):
>
> Unless you give a good reason

We are running a company with \> 25 employes. In this company we are using an old DOS app for our crm and stockmanagement. In this app the phonenumbers of our customers are stored too. It would be nice to call a customer just by copy the customer phonenumber from the DOS app and paste it to a job which initiates the call.

I think to send the phonenumber to the cli should be to realize.

Greets

Rainer

---

<div class="post-metadata">

**Author:** ![adeel2215](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@adeel2215](https://community.asterisk.org/u/adeel2215)\
**Post date:** [November 30, 2011, 3:01pm UTC](https://community.asterisk.org/t/c2d/37531/10 "2011-11-30T15:01:38Z")

</div>

errrrrrrrrrrrr… which Asterisk version are you using? It is the simplest thing. You do not need to do use any BRIDGING function. Just call phone\_3 from phone\_1… now from phone\_1 press ‘#’ for blindxtfer,this will put phone\_3 on hold, and dial phone\_2 number. After that phone\_2 starts ringing and as soon as u pick it up it will connect phone\_1 - phone\_2 and disconnect phone\_3.

Hope it helps…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 30, 2011, 3:39pm UTC](https://community.asterisk.org/t/c2d/37531/11 "2011-11-30T15:39:03Z")

</div>

Hello adeel2215,

thank you.

> [@](#):
>
> which Asterisk version are you using?

Asterisk 1.6.2.5-0ubuntu1.4 built by buildd @ yellow on a x86\_64 running Linux on 2011-07-12 21:40:24 UTC

> [@](#):
>
> now from phone\_1 press ‘#’ for blindxtfer,this will put phone\_3 on hold,

May be i’m doing something wrong, but it seems to me that i’ve to pick up phone\_3 before i’m able to put it on hold with the pound sign.  
The second thing is that i’m not so fast as asterisk and so phone\_3 will be ringing sometimes before i can hand-over the call to phone\_2.

Greets

Rainer

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [November 30, 2011, 4:21pm UTC](https://community.asterisk.org/t/c2d/37531/12 "2011-11-30T16:21:21Z")

</div>

So we finally get a clue as to what you are doing.

> [@](#):
>
> We are running a company with \> 25 employes. In this company we are using an old DOS app for our crm and stockmanagement. In this app the phonenumbers of our customers are stored too. It would be nice to call a customer just by copy the customer phonenumber from the DOS app and paste it to a job which initiates the call.

As I orignally said you DO NOT need a soft phone. we have used a flash based web [app](http://cyber-cottage.co.uk/site/component/option,com_wrapper/Itemid,42/) to do exactly this as well as PHP versions for other customers.  
It can an is done purely using AMI and ONE phone. We have one customers doing 20000+ calls a month using this exact method.

Sometimes its good to forget preconceptions

basicly all you do is copy or type number in box , click call, and your phone rings you answer and the call is established to the number you pasted

Ian

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 30, 2011, 4:37pm UTC](https://community.asterisk.org/t/c2d/37531/13 "2011-11-30T16:37:43Z")

</div>

Hello ian,

> [@](#):
>
> you DO NOT need a soft phone

Now it seems to you’re right. First the soft phone seemed to be the simplest solution.

> [@](#):
>
> basicly all you do is copy or type number in box , click call, and your phone rings you answer and the call is established to the number you pasted

That’s exactly what we want to do also.  
Is the solution you are using for your customer a “free” solution?

Greets

Rainer

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [November 30, 2011, 5:05pm UTC](https://community.asterisk.org/t/c2d/37531/14 "2011-11-30T17:05:59Z")

</div>

ive sent you an email

Ian

---

<div class="post-metadata">

**Author:** ![adeel2215](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@adeel2215](https://community.asterisk.org/u/adeel2215)\
**Post date:** [November 30, 2011, 5:24pm UTC](https://community.asterisk.org/t/c2d/37531/15 "2011-11-30T17:24:29Z")

</div>

hmm… Try this in your dialplan… phone\_1 should dial… 8phone\_2#phone\_3  
this will bridge phone2 and phone3 and phone1 can do a spy or hangup the call.
