Transfer an incoming call to another extension

Jun 12, 2014 at 4:41 PM
Hi everyone,

First of all i want to thank the people who help me to resolve the calling issue i had. Thanks one more time.
Now i face the following issue
when i try to transfer an incoming call (a call from a mobile for example) from one extension to another the call is drop when the destination extension starts ringing.
(Extension 301 answers the call and try to transfer it to extension 302)

this is my code:
      RedirectAction o = new RedirectAction();
      // originator            
      o.Channel = "SIP/301-0000003f";

      // destination
        o.Context = "DLPN_DialPlan302";
        o.Exten =  "302";

        o.Priority = 1;


            ManagerResponse response = manager.SendAction(o);
        catch (Exception ex)
            MessageBox.Show("Error connect\n" + ex.Message + " - " + ex.ToString());
the 0000003f value i take it when i do the following command
MyPBX*CLI> core show channels
Channel Location State Application(Data)
SIP/301-0000003f (None) Up AppDial((Outgoing Line))

if i don't put the value 0000003f the extension 302 does not ring.

So my questions are 2.
1) What i am doing wrong and the call is drop ?
2) How can i take the value 0000003f automatically ?

Jun 13, 2014 at 8:55 AM
You are trying to specify a channel name, when you should only be giving the SIP/<devicename> - where the device name related to the device in sip.conf.

Remove the -0000003f and try again. However, turn on verbose at the asterisk console and look at the output, it will give you much more information than we can as to why the call may be failing.