M
M
miolini2012-05-14 07:54:45
Asterisk
miolini, 2012-05-14 07:54:45

Originate Command

Hello!

I would like to make Asterisk call first to one number, then to the second, and link them into one conversation. I cause through the console

originate SIP/external/74951111111 extension SIP/external/74952222222

But after a call on the first number falls down in a nonexistent s a context. Added a context to default,

exten => s,1,LOG(VERSION,call log)

now after a call to the first number it simply stops processing with a corresponding entry in the log.

Tell me, please, how to do it right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sasharu, 2012-05-27
@sasharu

You spelled the command incorrectly.
You need something like this:
originate SIP/external/74951111111 extension [email protected]
Well, or like this:
originate SIP/external/74951111111 application Dial SIP/external/74952222222

Z
ZogG, 2012-05-15
@ZogG

and the call works if you call locally, call and see how the call comes out in the log. External is a sip trunk? If not, he won't call. There it works as: type (sip, ajax, dadi) / trunk / number. Also look at the dilplen, since the trunk can change the number, though I don’t remember if it changes with the originate. There is also the command dialplan or show diaplan, which shows the dialplan by number and context, look through which trunk the output is and how it calls.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question