Author Topic: AMI - Originate Call  (Read 11919 times)

rbackes

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
AMI - Originate Call
« on: February 10, 2015, 12:55:27 PM »
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

goseph

  • Hero Member
  • *****
  • Posts: 841
  • Karma: 35
    • View Profile
Re: AMI - Originate Call
« Reply #1 on: February 10, 2015, 01:00:10 PM »
try leaving the context empty.
And don't forget to give feedback, please!
« Last Edit: February 10, 2015, 01:45:50 PM by goseph »

rbackes

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: AMI - Originate Call
« Reply #2 on: February 11, 2015, 11: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, 01:46:59 PM by rbackes »

goseph

  • Hero Member
  • *****
  • Posts: 841
  • Karma: 35
    • View Profile
Re: AMI - Originate Call
« Reply #3 on: February 11, 2015, 11:18:58 AM »
How do you execute the command?

rbackes

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: AMI - Originate Call
« Reply #4 on: February 11, 2015, 01: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, 02:44:11 PM by rbackes »