Askozia Forums
January 19, 2017, 12:14:22 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: AMI - Originate Call  (Read 9810 times)
rbackes
Newbie
*

Karma: 0
Posts: 6


View Profile
« on: February 10, 2015, 11:55:27 AM »

Hi,

I'm trying to use the AMI interface to originate a call to the outside networks. After a lot of trying I have managed to call internally:
Action: Originate
Channel: SIP/18
Exten: 20
Context: localchannels
Priority: 1
Timeout: 60000

But when I try to dial an outside number I don't come through. e.g.:
Action: Originate
Channel: SIP/18
Exten: 0172xxxxxxxx
Context: default
Priority: 1
Timeout: 60000

when I try this, the local phone rings, but when I pick it up, it drops the call.

Does anybody know, which Context I have to use ?

Thanks a lot 

Rainer
Logged
goseph
Hero Member
*****

Karma: 29
Posts: 798


View Profile
« Reply #1 on: February 10, 2015, 12:00:10 PM »

try leaving the context empty.
And don't forget to give feedback, please!
« Last Edit: February 10, 2015, 12:45:50 PM by goseph » Logged
rbackes
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #2 on: February 11, 2015, 10:11:22 AM »

Great - that worked - I never thought of trying an empty context...

this is the AMI command that works:

Action: Originate
Channel: SIP/18
Exten: 017xxxxxxx
Context:
Priority: 1
Timeout: 60000

Thanks a lot for this fast reply !
« Last Edit: February 11, 2015, 12:46:59 PM by rbackes » Logged
goseph
Hero Member
*****

Karma: 29
Posts: 798


View Profile
« Reply #3 on: February 11, 2015, 10:18:58 AM »

How do you execute the command?
Logged
rbackes
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #4 on: February 11, 2015, 12:52:46 PM »

As I want to integrate this feature in my application written in Delphi, I wrote a simple testing programm that opens the connection to AMI and allows to send and receive messages. I'm now checking how to monitor the status of the exetensions and especially the callers connected to the extensions. (to whom it concerns: I use synapse as TCP/IP library, not Indy).
The app is a support tracking system and originating calls from the app is a really great feature. And identifying the caller and opening his records comes next.
« Last Edit: February 11, 2015, 01:44:11 PM by rbackes » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.111 seconds with 19 queries.