Commit Graph

1511 Commits

Author SHA1 Message Date
Anthony Minessale baf0174ab6 change & to , in forked dial
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3559 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-06 17:24:14 +00:00
Anthony Minessale 9914dd71f5 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3558 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-06 17:19:07 +00:00
Anthony Minessale f7bcbb7216 avoiding nulls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3557 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-06 16:38:41 +00:00
Michael Jerris 500452fdc5 change function name switch_ivr_menu_stack_free
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3556 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-06 15:17:16 +00:00
Michael Jerris c8cdf81f1e make build again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3555 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-06 14:16:09 +00:00
Michael Jerris 07c3c5eda0 Fixes/tweaks to conference from Neal Horman
1. 3 retries for pin entry
2. don't require pin entry for outbound calls 
3. allow outbound calls to enter the conference when locked

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3553 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-06 07:21:12 +00:00
Anthony Minessale efa104e868 answer tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3549 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-05 23:08:14 +00:00
Michael Jerris efa2322670 initial bits of conference control changes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3548 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-05 22:58:26 +00:00
Michael Jerris aa926a5b86 cleanups in mod_conference from Neal Horman.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3547 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-05 22:28:30 +00:00
Anthony Minessale 906adea94d feeling lucky part 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3545 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-05 21:26:26 +00:00
Anthony Minessale 8fd300e992 feeling lucky
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3544 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-05 21:10:33 +00:00
Michael Jerris 2c4cd71f95 comment this out in the sample to avoid support issues when people use the default config.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3543 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-05 18:58:47 +00:00
Michael Jerris 99399ca28c don't clobber the ldflags
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3537 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-05 02:40:14 +00:00
Michael Jerris 52781647c7 initial work on mod_wanpipe for windows. This does not work yet.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3536 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 22:25:31 +00:00
Anthony Minessale e7d0fe5a63 update wanpipe
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3535 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 20:51:16 +00:00
Anthony Minessale c1553f1ca2 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3534 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 18:40:31 +00:00
Anthony Minessale 4b52830415 move include above declarations
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3533 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 16:18:39 +00:00
Anthony Minessale 2b1572c9c1 remove patch line that doesn't exist
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3532 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 15:53:57 +00:00
Michael Jerris b616b6ec2a add ivr application that uses the switch_ivr_menu functions, from Neal Horman.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3528 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 05:50:41 +00:00
Michael Jerris 84c625d98f refinements and additions to switch_ivr_menu from Neal Horman.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3527 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 05:41:03 +00:00
Anthony Minessale ad63096f5c fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3524 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 00:04:20 +00:00
Anthony Minessale bd460fa547 fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3523 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-03 23:58:01 +00:00
Anthony Minessale 176c3731ca put presence tags back
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3518 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-03 03:19:35 +00:00
Anthony Minessale 3f2ebf479d try adding the gc code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3515 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-02 05:40:58 +00:00
Anthony Minessale af5336563a add odbc support to javascript
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3514 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-02 02:41:24 +00:00
Anthony Minessale 81ee9b74d1 codec_string channel_var sets per-call codecs on outbound calls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3511 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 21:24:54 +00:00
Michael Jerris 07a6c2e21d move email to etpan, cleanup the new stubs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3510 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 19:16:46 +00:00
Anthony Minessale 12ebe76bfe add some vars
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3508 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 18:27:45 +00:00
Michael Jerris c8b129df56 initial stubs for odbc and libetpan modules for spidermonkey. These do not do anything yet.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3507 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 17:59:58 +00:00
Anthony Minessale 5969fe801b prevent double load of modules
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3506 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 16:08:56 +00:00
Anthony Minessale b1c5e9e55b dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3505 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 16:00:16 +00:00
Anthony Minessale d138ed71b7 adjustments to the core do a make sure
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3504 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 15:26:37 +00:00
Michael Jerris 92bd5358d0 fix mod_enum on windows, fix logic error in free function causing operations on freed memory
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3503 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-01 06:12:07 +00:00
Michael Jerris fb447028bc mod_enum doesn't crash windows now, still a bit to get it to work right.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 23:47:30 +00:00
Michael Jerris fadc1ccebe win32 build for mod_enum/libudns. Please note, this builds but still DOES NOT work on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3499 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 23:33:37 +00:00
Michael Jerris 1f8b1ee421 cast tweak to make compiler happy
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3498 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 22:57:16 +00:00
Michael Jerris 693c80fb01 update to sofia release 1.12.4, many fixes including fix for assert(sip) on response to invite after an outbound register
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3497 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 22:56:56 +00:00
Anthony Minessale 8c67ef2c5d mod_enum
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3495 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 22:02:49 +00:00
Anthony Minessale 60434decf5 ENUM Support
mod_enum can be used as a dialplan app, an api call from the console or as a dialplan interface.


Dialplan Interface:
put enum as the dialplan parameter in an endpoint module
i.e. instead of "XML" set it to "enum" or "enum,XML" for fall through.

Dialplan App:
This example will do a lookup and set the a variable that is the proper
dialstring to call all of the possible routes in order of preference according to 
the lookup and the order of the routes in the enum.conf section.

<extension name="tollfree">
  <condition field="destination_number" expression="^(18(0{2}|8{2}|7{2}|6{2})\d{7})$">
    <action application="enum" data="$1"/>
    <action application="bridge" data="${enum_auto_route}"/>
  </condition>
</extension>

You can also pick an alrernate root:
<action application="enum" data="$1 myroot.org"/>	


API command:
at the console you can say:
enum <number> [<root>]

The root always defaults to the one in the enum.conf section.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 21:28:32 +00:00
Michael Jerris f5e183cb48 cast for datatype of score.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3488 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 20:08:12 +00:00
Michael Jerris ec34d7bdaf playfile fixes for startpos from Matt Klein.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3487 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 20:07:13 +00:00
Anthony Minessale f6fd954631 api tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3485 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 17:10:40 +00:00
Michael Jerris 50d87f2c78 more ani2 -> aniii changes. Note, if you have mysql tables setup, you may need to alter them
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3483 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 14:32:11 +00:00
Paul Tinsley ea19c0e980 No reason to consider % dangerous twice...
Also i retract my pcre statement from before, i doubt a perl pack and hex call are going to work in pcre.  The regex should give plenty of idea what you need to do in your language of choice though, thats the point :)


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3482 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 05:46:12 +00:00
Paul Tinsley 0c1e83a43f Fix for event serialization, multi-ilne variables or crazy characters in a line could cause parsing errors in consumers of serialized events.
All values are now url encoded to ensure they don't have "dangerous" characters in them.  make sure you url_decode in your language of choice when consuming events in plain format from the event socket.

For those perl or pcre heads out there you can use the following regex:
$value =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/sego;



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3481 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 04:57:01 +00:00
Anthony Minessale 4ebf67c27a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3478 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 22:37:53 +00:00
Anthony Minessale bf4d94affe doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3476 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 21:59:27 +00:00
Anthony Minessale d288ae58a8 add timelimit to record
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3475 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 21:46:29 +00:00
Anthony Minessale fe376294fc fix a few js issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3474 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 20:54:26 +00:00
Anthony Minessale 8c541bdc30 fix a few js issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3473 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 20:53:26 +00:00
Anthony Minessale d3758afbae fix a few js issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3472 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 20:52:04 +00:00
Paul Tinsley a85ec77f99 Fix a few overflow problems
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3471 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 20:20:22 +00:00
Paul Tinsley e15479daae Get rid of the hard coded console help output, and add an api version command for fun.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3470 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 19:33:54 +00:00
Anthony Minessale 987e580fc9 add some vard
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3467 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 16:45:25 +00:00
Anthony Minessale d20870e121 fix obscure bs, remove CR from dptools, add info app
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3463 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 02:23:26 +00:00
Michael Jerris 44649c70b4 Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors:
/* For Emacs:
 * Local Variables:
 * mode:c
 * indent-tabs-mode:nil
 * tab-width:4
 * c-basic-offset:4
 * End:
 * For VIM:
 * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
 */


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 22:30:48 +00:00
Anthony Minessale 361dc67be2 no_media/ringback tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3461 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 21:52:38 +00:00
Anthony Minessale c08e943e44 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3460 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 17:12:40 +00:00
Anthony Minessale dd1f941744 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3458 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-26 20:06:04 +00:00
Anthony Minessale 57dd6da1fe add sip_authorized variable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3456 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-25 16:52:35 +00:00
Anthony Minessale 2580c41f82 add vars
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3455 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-25 16:35:56 +00:00
Michael Jerris 757d26b382 use LF, not CRLF
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3452 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-24 15:44:10 +00:00
Michael Jerris 63aae494ac add "log" application to print log messages From Mike Murdock.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3451 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-24 15:43:46 +00:00
Anthony Minessale 74dee5f6ec update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3449 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-23 19:44:20 +00:00
Anthony Minessale fd16c8f245 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3448 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-23 19:42:21 +00:00
Anthony Minessale 5869b86676 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3447 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-23 19:32:28 +00:00
Anthony Minessale 251d8c45b4 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3446 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-23 19:13:54 +00:00
Anthony Minessale 3a7a5295af update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3437 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-22 17:48:53 +00:00
Anthony Minessale 69197e82df update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3433 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-21 19:30:39 +00:00
Anthony Minessale 6c0b467d75 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3432 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-21 19:01:54 +00:00
Anthony Minessale c7636b5f71 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3430 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-21 15:43:55 +00:00
Anthony Minessale 097d4a66f0 send 180 when there is no ringback specified on forked calls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3428 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-21 00:29:51 +00:00
Michael Jerris cb24948735 update to new sofia snapshot. Fixes a memory leak on invite, a timer bug, and several other issues as follows:
Thu Nov 16 07:23:30 Eastern Standard Time 2006  Pekka.Pessi@nokia.com
  * nta.c: setting the local sequence number of nta_leg_t only when first reques
t is sent.

  Application can now set the initial value of CSeq either in nta_leg_create()
  or in nta_outgoing_*create() (or nta_msg_request_complete()).

  * nua_session.c: fixed session timer negotiation when UAS does refreshing with
 INVITEs

  The session-expires header had "uac" even when uac did not support timer.
  The UAS failed to send re-INVITEs.

  Thanks for Chung Pak Lai for reporting this problem.

  * bnf: added host_cmp().

  * outbound.c: using host_cmp() to check if Via host and received parameter dif
fer

  Bug reported by Marc Blanchet.

  * nua_session.c: fixed leak in incomin INVITE processing.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3425 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-20 21:54:19 +00:00
Anthony Minessale fdd912f714 fix memory leak, don't need su_home_init after su_home new, and use su_home_unref instead of su_home_deinit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3424 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-20 21:45:00 +00:00
Anthony Minessale b2bc13dc7e Add signal handlers for SIGIO and SIGPOLL
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3423 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-20 21:43:44 +00:00
Michael Jerris 2f8197b38a disable registration probe and options keep-alive for now as there is a bug in the implementation of this on the sofia side, and it causes the registration to never happen, and for it to spin re-registering out of control forever in some situations with UA's that send 404's to OPTIONS packets, or when behind nat on either side. This will get fixed in sofia, then become a configurable option on our side.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3419 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-20 05:26:20 +00:00
Anthony Minessale 32e293d67f ampersand was being used to indicate a function and a double call change it to carrot ^ for functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3418 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-20 02:01:21 +00:00
Anthony Minessale 3a90756886 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 20:30:17 +00:00
Anthony Minessale 02ca948e7a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3416 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 20:08:58 +00:00
Anthony Minessale 24456954f7 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3415 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 20:08:16 +00:00
Anthony Minessale da2397d006 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3414 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 19:51:40 +00:00
Anthony Minessale 9f9abf2ea1 stackable dialplans
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:21:41 +00:00
Michael Jerris 3a57946bea parentheses for proper cast.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3411 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:11:07 +00:00
Anthony Minessale dcc6c5ef82 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3410 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:09:10 +00:00
Michael Jerris 4d450eba16 code before declaration.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3409 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:09:04 +00:00
Anthony Minessale d7baa16132 Ringback (sponsored by Front Logic)
This addition lets you set artifical ringback on a channel
that is waiting for an originated call to be answered.

the syntax is 

<action application="set" data="ringback=[data]"/>

where data is either the full path to an audio file
or a teletone generation script..


syntax of teletone scripts

LEGEND:

0-9,a-d,*,# (standard dtmf tones)

variables: c,r,d,v,>,<,+,w,l,L,%

c (channels)        - Sets the number of channels.
r (rate)            - Sets the sample rate.
d (duration)        - Sets the default tone duration.
v (volume)          - Sets the default volume.
> (decrease vol)    - factor to decrease volume by per frame (0 for even decrease across duration).
< (increase vol)    - factor to increase volume by per frame (0 for even increase across duration).
+ (step)            - factor to step by used by < and >.
w (wait)            - default silence after each tone.
l (loops)           - number of times to repeat each tone in the script.
L (LOOPS)           - number of times to repeat the the whole script.
% (manual tone)     - a generic tone specified by a duration, a wait and a list of frequencies.

standard tones can have custom duration per use with the () modifier
7(1000, 500) to generate DTMF 7 for 1 second then pause .5 seconds

EXAMPLES

UK Ring Tone [400+450 hz on for 400ms off for 200ms then 400+450 hz on for 400ms off for 2200ms]
%(400,200,400,450);%(400,2200,400,450)

US Ring Tone [440+480 hz on for 2000ms off for 4000ms]
%(2000,4000,440,480)

ATT BONG [volume level 4000, even decay, step by 2, # key for 60ms with no wait, volume level 2000, 350+440hz {us dialtone} for 940ms
v=4000;>=0;+=2;#(60,0);v=2000;%(940,0,350,440)

SIT Tone 913.8 hz for 274 ms with no wait, 1370.6 hz for 274 ms with no wait, 1776.7 hz for 380ms with no wait
%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)

ATTN TONE (phone's off the hook!) 1400+2060+2450+2600 hz for 100ms with 100ms wait
%(100,100,1400,2060,2450,2600)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3408 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:05:06 +00:00
Michael Jerris 814fefdfba check for null qrealm too.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3405 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:44:09 +00:00
Michael Jerris b0dde8deb9 need to add to the pointer, not the pointee
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:37:25 +00:00
Michael Jerris 4f2824e371 need to free the head pointer of malloc'd memory (form anthm's working copy)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3402 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 16:35:03 +00:00
Michael Jerris 9687f37f92 catch up with api, add option to switch_core_destroy call.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 06:43:37 +00:00
Anthony Minessale 6dd370b007 reg realm stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3398 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 22:13:26 +00:00
Anthony Minessale 5af884576c return 404 when you cant find a user
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3397 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 21:57:47 +00:00
Anthony Minessale e2d6484493 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 18:22:32 +00:00
Anthony Minessale 715a6ac9ab update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3393 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-17 00:13:36 +00:00
Anthony Minessale 7fc62a3ff8 ignore options reply (nevermind)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3391 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 22:30:19 +00:00
Anthony Minessale 57515855fd ignore options reply
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3390 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 22:16:30 +00:00
Anthony Minessale 251453e254 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3389 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 21:20:00 +00:00
Anthony Minessale 89989bc34f vg mode
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3388 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 19:43:25 +00:00
Michael Jerris 7409f414f5 logic fix on rtp_common_read on a not ready session, init bytes to 0 so the checks outside of the while loop work.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3386 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 18:48:53 +00:00
Anthony Minessale 9415cdcacb update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3385 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 16:10:39 +00:00