Make call in AMI.

Home » Asterisk Users » Make call in AMI.
Asterisk Users 2 Comments

Good afternoon list.

I need to make calls via AMI, but I need to leave the links in their
respective contexts, to mobile phone calls by leaving out the context of
mobile and so on.

Already configured the settings that way, but I do not like the the Action
Originate do it. I tried several ways, none successfully. What came closer
to work the way I need is this:

action: originate
channel: Local/04191028897@interMovel
context: returnCall
extension: *10198
priority: 1
async: true

“interMovel” is my context.

But the answer on the Asterisk console was this:

[Nov 19 16:49:56] NOTICE[23371]: chan_local.c:655 local_alloc: No such
extension/context 04191028897@interMovel creating local channel
[Nov 19 16:49:56] NOTICE[23371]: channel.c:3854 __ast_request_and_dial:
Unable to request channel Local/04191028897@interMovel
[Nov 19 16:49:56] ERROR[3843]: pbx.c:8396 device_state_cb: Received invalid
event that had no device IE
[Nov 19 16:49:56] ERROR[3843]: app_queue.c:862 device_state_cb: Received
invalid event that had no device IE

I need to do the links go out into different channels according to what is
configured in the dialplan and dynamically. I can make a call by calling the
channel normally, thus:

action: originate
channel: DAHDI/g1/04191028897
context: returnCall
extension: *10198
priority: 1
async: true

Does anyone have any idea how to do?

Thank you in advance,

2 thoughts on - Make call in AMI.

  • 2010/11/19 Rodrigo Lang

    can you display interMovel context ?
    Is there any entry matching 0419102889 in interMovel context ?

  • Oh! Like I’m stupid. This basic detail went totally unnoticed. Thanks for
    the reply and sorry for my fault. The context:

    context interMovel {
    _00XX[7-9]XXXXXXX => { &saidaGSM(${EXTEN:1}); }
    h => { &hangupGlobal(); }
    }

    It worked properly when I added one more zero. Thanks again.

    At,