Asterisk Originate to external number

asterisk
Tags: #<Tag:0x00007fafc1825320>

#1

I am trying to initiate a call using the Asterisk Call Manager. I can get a local extension to originate to an external number just fine. But when making the originating number an external number, the destination seems to ring before the local/originating number.

I believe this has to do with the context. I am currently using from-internal (which again works for the extensions when dialing). What should the context be for the originating number to be external and wait for that person to pickup before proceeding.


(Dave Burgess) #2

I don’t think you’re going to find a provably correct way of doing that.

If the number in question has “listen for a fax” style capabilities, the phone will be marked as “answered” as soon as it starts to ring. This feature is common on many phone systems and may be the default your a cell phone (for example).

The way we’d handle it in the case of a Ring Group, for example, would be to wait for the recipient to press a key to accept the call. I don’t think that capability exists with “just a number”, so you might need to explore other options.


#3

If i understand context correctly, is the a way to dial the “source” first number … wait() … and then dial the “destination” number?

Or even better a way to change the wait() into something that verifies connection?


#4

First calls internal extension 1100 and once answered, calls external number 8005551212:

channel originate local/1100@from-internal extension 8005551212@outbound-allroutes

Opposite direction, first calls external number 8005551212 and then when answered, rings local extension 1100:

channel originate local/8005551212@outbound-allroutes extension 1100@from-internal

That is the syntax if you are doing the originates from the CLI. You should be able to follow the logic and do the same using AMI or .call files.


#5

I am actually trying to do external to external.


#6

channel originate local/8005551212@outbound-allroutes extension 8005551313@outbound-allroutes

or swap the numbers to call them in the opposite order.

Here’s more information on Asterisk’s “local” channel if you want to understand better what’s going on with these originates that use local/ : https://wiki.asterisk.org/wiki/display/AST/Local+Channel


(system) closed #7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.