Session originate
From FreeSWITCH Wiki
Originates a new call with an existing session object.
Note: Use this method if no other options exist. Instead, you may originate calls using the session constructor.
[edit]
Usage
5389 and later
result = new_session.originate(session, dest[, timeout]);
Pre 5389
result = new_session.originate(session, dest[[[[[[[[[[, dialplan], context], cid_name], cid_num], network_addr], ani], aniii], rdnis], username], timeout]);
- session - the session of the A leg of a call
- dest - Dialplan compliant destination string ("sofia/sip/1234@10.10.2.55") including "," and "|" parms
- dialplan - Name of dialplan module (default = "xml") such as xml, enum, etc.
- context - context within the dialplan (default = "default")
- cid_name - callerid name to use.
- cid_num - callerid number to use.
- network_addr - caller profile network address
- ani - caller profile ANI
- aniii - caller profile ANI-II
- rdnis - caller profile RDNIS
- username - caller profile username
- timeout - Time out value in seconds
[edit]
see also
- waitForAnswer - Wait for answer after originate
- export
- Mod_commands originate
