I have configured asterisk and using AsterNet to consume asterisk functionality. While I am trying to originate call to a local mobile number. Call first come to the extension number (2001) if I pick up only then call goes to mobile number. I have created channel from a usb dongle.
Please suggest where I need to make change so that call directly connect to the mobile number.
Code that I am using to originate call is
OriginateAction oc = new OriginateAction();
oc.Context = "from-internal";
oc.Priority = 1;
oc.Channel = "SIP/2001";
oc.CallerId = "any id";
oc.Exten = "9911XXXXXX";
oc.Timeout = 15;
ManagerResponse originateResponse = manager.SendAction(oc, oc.Timeout);