Trunk call Making from Asterisk

kcsenthil7

Joined
Oct 29, 2010
Messages
13
Likes
0
Points
0
#1
Hi,

I am using Elastix, to call managements, and i am using C#.net application to manage asteisk through Asterisk.NET C# class library, i can connect succesfully with Asterisk server, and can make the calls in internal Extensions. using ConnectionManager, but i can not make any trunk calls outside, just it says good bye message..

This is the code i am using

string address = "192.168.2.164";
int port = 5038;
string user = "admin";
string password = "elastix456";

ManagerConnection manager = new ManagerConnection(address, port, user, password);
manager.Login();
OriginateAction oc = new OriginateAction();
oc.Context = "Default";
oc.Priority = 1;
oc.Channel = "SIP/114";
oc.CallerId = "114";
oc.Exten = "115"; //but when i use External trunk number it says good bye msg.
oc.Timeout = 3000;
ManagerResponse originateResponse = manager.SendAction(oc, oc.Timeout);

MessageBox.Show("" + originateResponse.ToString());




i expecting help to Dial trunk calls..

Thanks,
Senthil. :(
 

komodor

Joined
Jul 22, 2010
Messages
22
Likes
0
Points
0
#2
what is your outbound configuration? do you have a Outbounb line? it is voip, FXO or GSM?
 

kcsenthil7

Joined
Oct 29, 2010
Messages
13
Likes
0
Points
0
#3
Yes i am using FXO for out going lines, ventor is Grandstream.


And it is working when call from soft phone X-Lite. and i can not make call through my code as above, can you please assist me.. what i am doing wrong in code.
 

komodor

Joined
Jul 22, 2010
Messages
22
Likes
0
Points
0
#4
If works well with grandstream I need to know your X-lite confg.


mine config.

Display name (your name)
User Name (EXTENSION)
PASSWORD (Is better put the pass the same number of extension)
AUTHORIZATION USER NAME (SAME EXTENSION)
DOMAIN (PBX IP)

I hoppe help you.

reggards
 

komodor

Joined
Jul 22, 2010
Messages
22
Likes
0
Points
0
#5

kcsenthil7

Joined
Oct 29, 2010
Messages
13
Likes
0
Points
0
#6
I am using the X-lite config you mentioned formate, it is working for me,

when i try to dial it through code only problem,

i can dial extensions created(114,112,111,110,115) in elastix, but when i try to dial outside trunk calls, it says good bye message.

i Mailed you the outgoing, trunk pages.


Thanks,
Senthil
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,566
Latest member
Fpino
Top