Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor updates

About


Excerpt

Simple examples to use the originate API command to initiate calls.

...



 

Expand
titleClick here to expand Table of Contents


Panel
borderColorlightgray
bgColor#f7f7f7
borderWidth1
borderStyledotted

Table of Contents
maxLevel3
outlinetrue
indent1em
excludeAbout
stylenone
printablefalse


Originate Example 1

Courtesy of SwK:

Simplified originate usage template:

originate ALEG BLEG
 

The full template from the FreeSWITCH API command interpreter:

originate <call url> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]


Code Block
languagexml
themeEmacs
titleoriginate Example 1
originate {origination_caller_id_number=9005551212}sofia/default/whatever@wherever 19005551212 XML default CALLER_ID_NAME CALLER_ID_NUMBER

This will make a call out to sip:whatever@wherever with the Caller ID number set to 9005551212. After the A-leg supervises (is answered) it will send the call to the XML dialplan using context=default with the destination number of 19005551212 using the Caller ID name and number specified in the fields CALLER_ID_NAME and CALLER_ID_NUMBER.
 

Originate Example 2

 

Code Block
languagexml
themeEmacs
titleoriginate Example 2
originate {origination_caller_id_number=9005551212}sofia/default/whatever@wherever &bridge({origination_caller_id_number=8001234567}sofia/profile/someother@destination.com)

...

originate {origination_caller_id_number=12345,ignore_early_media=true,call_timeout=60,hangup_after_bridge=true}sofia/default....