Call forward in asterisk

hello everyone,

can anybody assist me on how to call forward from one sip to other sip?

thanks,
dOnie

hello,
firstly, add two sip extensions in /etc/asterisk/sip.conf ,for example:
[1]
type=friend
username=1
secret=1
host=dynamic
context=from-sip

[2]
type=friend
username=2
secret=2
host=dynamic
context=from-sip

secondly, add dialplan in /etc/asterisk/extensions.conf
[from-sip]
exten => 1,1,Dial(sip/1)
exten => 1,2,Hangup()
exten => 2,1,Dial(sip/2)
exten => 2,2,Hangup()
lastly,use x-lite to register to sip extensions on two PCs.

done… i already setup something like that…

the scenario is like this: SIP1 called SIP2 now SIP2 will forward the call from SIP1 to SIP3…

Hi

Do you mean “forward” or do you mean transfer,

IE sip2 ring and if not answered SIP3 rings or SIP2 answeres the call and then puts teh call through to SIP3 manually

Ian

My suspicion is that the common confusion between extensions and devices applies here. The answer may be as simple as:

exten => 2,1,Dial(sip/3)
exten => 2,2,Hangup()

Otherwise, you need to explain exactly what you mean.

Note, if you mean that SIP/2 transfers after answering the call, X-Lite is not a good phone to use as its native transfer capability, which wouldn’t have required any specific Asterisk configuration, is deabled to make you want to buy Eyebeam. That means you would need to configure both features.conf and extensions.conf, to allow Asterisk features transfers.

Incidentally, at least for currently supported versions of Asterisk, you do not need the Hangup line.

what i mean is transferring a call…when someone calling the wrong extension i will just transfer it to the right extension.