"Channel Originate"

Hello !

I’m using FreePBX 13.0, Asterisk 13.17.0 and sipML5 webRTC.

My task is to simulate a predictive caller.
as an example :

[channel originate sip/XXXX extensions s@from-internal] (XXXX = extension)

I want to do 5 “channel originate” calls pointing toward 5 differents smartphone :
0611111111
0622222222
0633333333
0644444444
0655555555

At the same time a webRTC sipML5 calling a basic conference where the maximum participants is “2”

I want the first of the 5 calls join the conference.

sipML5 exten : “10”
conference exten : “1000”

So :

  • Is it possible to redirect a “channel originate” call into an existing conference ?

  • What happen if someone want to join a 2/2 conference ?

  • Can add some arguments into this command to use it into the dialplan?

*[channel originate sip/XXXX extensions s@from-internal argument argument] *

I’m a bit noob with FBX and asterisk but any advices will help,
Thanks by advance,
NCNN.

Is it possible to redirect a “channel originate” call into an existing conference ?

Sure. Using the CLI command you can do something like the following (same should work using AMI action):

channel originate <tech/data> application <appname> [appdata]

So for example if I want to originate a call using pjsip endpoint 101 into the ConfBridge using the bridge profile “confbridge” and user profile “101” (defined in confbridge.conf) then I could do the following:

*CLI> channel originate PJSIP/101 application ConfBridge confbridge,,101

What happen if someone want to join a 2/2 conference ?

If you have set max_members=2 in the bridge profile then when a third channel attempts to join it will be rejected and not allowed to join.

Can add some arguments into this command to use it into the dialplan?

You can’t pass arguments into the dialplan using the “extension” parameter. But if you can enter the dialplan at a specific extension if you like (where XXXX the extension you want to enter at):

 *CLI> channel originate PJSIP/101 extension XXXX
2 Likes

Hi kharwell

Thanks for your reply !
To achieve my task i need to specify my callerid, and with the “extension” args i can’t do that?

How should i do with the “application” one ?

If you want to do anything complex on the A sid,e use a loal channel.

Hi again,

I’m trying to use as you said the “application” arg to custom the dialplan

but i’m trying to do this :

channel originate sip/XXXX application Goto my-macro,s,1 application Confbridge 4444,testbridge,testuser,testmenu

but only the first “application” is executed, how should i do to add some more as i want to ?

When executing an originate command from the CLI you can only send the channel leg to a single application. See creating and manipulating Channels from the CLI on the wiki for more information about how to use that command.

If you need to manipulate the channel in some way before it goes into an application then you’ll need to use the “extension” syntax instead and send it to an extension in the dialplan first.

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