Commit Graph

2018 Commits

Author SHA1 Message Date
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
Anthony Minessale 90ddec83d9 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3493 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 15:27:37 +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 6b5a464f2b fix spidermonkey build on FreeBSD (patch from Matt Klein)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3484 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-29 14:43:41 +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
Paul Tinsley 53e4be8bc0 Add a notice to try and deal with a common build problem.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3477 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 22:13:45 +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
Brian West 3b521f2084 update public key
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3469 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-28 19:07:29 +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
Michael Jerris fc03e90da4 silence silly warning on msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:21:44 +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