aboutsummaryrefslogtreecommitdiffstats
path: root/res
AgeCommit message (Collapse)AuthorFilesLines
2008-06-05Merged revisions 120675 via svnmerge from phsultan1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r120675 | phsultan | 2008-06-05 18:56:15 +0200 (Thu, 05 Jun 2008) | 2 lines Ignore appended resource when comparing JIDs. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120676 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-05Conditionally load the AGI command gosub, depending on whether or not res_agitilghman1-1/+0
has been loaded, fix a return value in the loader, and ensure that the help workhorse header does not print on load. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120602 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-03Move compatibility options into asterisk.conf, default them to on for upgrades,tilghman1-1/+17
and off for new installations. This includes the translation from pipes to commas for pbx_realtime and the EXEC command for AGI, as well as the change to the Set application not to support multiple variables at once. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120171 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-03Merged revisions 119929 via svnmerge from murf1-6/+0
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r119929 | murf | 2008-06-03 08:49:46 -0600 (Tue, 03 Jun 2008) | 16 lines as per http://lists.digium.com/pipermail/asterisk-users/2008-June/212934.html, which is a message from Philipp Kempgen, requesting that the WARNING that an extension is empty be reduced to a NOTICE or less, as empty extensions are syntactically possible, and no big deal. With which I agree, and have removed that WARNING message entirely. I think it is not necessary to see this message. It didn't state that a NoOp() was inserted automatically on your behalf, and really, as users, who cares? Why freak out dialplan writers with unnecessary warnings? The details of the machinations a compiler goes thru to produce working assembly code is of little interest to most programmers-- we will follow the unix principal of doing our work silently. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119930 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Do not link the guest account with any configured XMPP client (inphsultan1-4/+17
jabber.conf). The actual connection is made when a call comes in Asterisk. Apply this fix to Jingle too. Fix the ast_aji_get_client function that was not able to retrieve an XMPP client from its JID. (closes issue #12085) Reported by: junky Tested by: phsultan git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119741 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27When binding anonymously, credentials are still needed.tilghman1-1/+3
(closes issue #12601) Reported by: suretec Patches: res_config_ldap.c.patch uploaded by suretec (license 70) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118302 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23Protect the object from changing while the 'odbc show' CLI command is runningtilghman1-0/+4
(Closes issue #12704) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118129 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23- remove whitespaces between tags in received XML packets before givingphsultan1-3/+34
them to the parser ; - report Gtalk error messages from a buddy to the console. This patch makes Asterisk "Google Jingle" (chan_gtalk) implementation work with Empathy. Note that this is only true for audio streams, not video. Thank you to PH for his great help! (closes issue #12647) Reported by: PH Patches: trunk-12647-1.diff uploaded by phsultan (license 73) Tested by: phsultan, PH git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118020 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22- revert change to ast_queue_hangup and create ast_queue_hangup_with_causemvanbaak3-5/+5
- make data member of the ast_frame struct a named union instead of a void Recently the ast_queue_hangup function got a new parameter, the hangupcause Feedback came in that this is no good and that instead a new function should be created. This I did. The hangupcause was stored in the seqno member of the ast_frame struct. This is not very elegant, and since there's already a data member that one should be used. Problem is, this member was a void *. Now it's a named union so it can hold a pointer, an uint32 and there's a padding in case someone wants to store another type in there in the future. This commit is so massive, because all ast_frame.data uses have to be altered to ast_frame.data.data Thanks russellb and kpfleming for the feedback. (closes issue #12674) Reported by: mvanbaak git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-20Increase limit of unshared connections from 1023 to 4.2 billion.tilghman1-2/+2
(Related to issue #12677) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117264 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-20Revert part of previous fix, and heavily comment the logic for objecttilghman1-21/+47
destruction, for future users. (Closes issue #12677) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117262 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19Merged revisions 117135 via svnmerge from file1-1/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r117135 | file | 2008-05-19 13:50:52 -0300 (Mon, 19 May 2008) | 6 lines Use the right pthread lock and condition when waiting. (closes issue #12664) Reported by: tomo1657 Patches: res_smdi.c.patch uploaded by tomo1657 (license 484) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117136 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19Remove a premature mutex destroy (the destruction callback will end up ↵file1-13/+19
destroying it) and use a callback to purge remaining classes. (closes issue #12677) Reported by: falves11 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117133 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14Merged revisions 116466 via svnmerge from tilghman1-1/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r116466 | tilghman | 2008-05-14 16:38:09 -0500 (Wed, 14 May 2008) | 7 lines Avoid zombies when the channel exits before the AGI. (closes issue #12648) Reported by: gkloepfer Patches: 20080514__bug12648.diff.txt uploaded by Corydon76 (license 14) Tested by: gkloepfer ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116467 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14Make the ldap version setting work without having both version and protocol set.file1-1/+1
(closes issue #12613) Reported by: suretec git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116350 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14Formatting changes (coding guidelines) while thinking about something else...oej1-29/+31
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116224 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13Initialize the start time in smdi_msg_wait. Somehow this code got lost in ↵russell1-0/+2
trunk. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115847 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-07Don't free the object on destroy, as astobj2 takes care of that for youtilghman1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115525 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-07Only save a password if a username exists.russell1-5/+8
(closes issue #12600) Reported By: suretec Patch by me git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115523 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-07Use the default that the log output claims will be used for the basednrussell1-2/+3
(closes issue #12599) Reported by: suretec Patches: 12599.patch uploaded by juggie (license 24) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115521 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-06Merged revisions 115418 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r115418 | qwell | 2008-05-06 14:34:58 -0500 (Tue, 06 May 2008) | 7 lines Switch to using ast_random() rather than just rand(). This does not fix the bug reported, but I believe it is correct. (from issue #12446) Patches: bug_12446.diff uploaded by snuffy (license 35) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115419 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-05Merge refcounting of res_odbctilghman1-233/+117
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115337 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-02Make res/snmp/agent.c buildmmichelson1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115199 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-01Modify TIMEOUT() to be accurate down to the millisecond.tilghman1-8/+10
(closes issue #10540) Reported by: spendergrass Patches: 20080417__bug10540.diff.txt uploaded by Corydon76 (license 14) Tested by: blitzrage git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115076 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-01Merge changes from team/russell/smdi-msg-searchingrussell1-16/+74
This commit adds some new features to the SMDI_MSG_RETRIEVE() dialplan function. Previously, this function only allowed searching by the forwarding station. I have added some options to allow you to also search for messages in the queue by the message desk terminal ID, as well as the message desk number. This originally came up as a suggestion on the asterisk-dev mailing list. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115021 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-29Merged revisions 114829 via svnmerge from qwell1-2/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114829 | qwell | 2008-04-29 12:08:55 -0500 (Tue, 29 Apr 2008) | 1 line Change warning message to debug, since there are cases where 0 results is perfectly fine. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114830 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-23Merged revisions 114594 via svnmerge from qwell1-17/+36
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114594 | qwell | 2008-04-23 13:28:44 -0500 (Wed, 23 Apr 2008) | 8 lines Fix reload/unload for res_musiconhold module. (closes issue #11575) Reported by: sunder Patches: M11575_14_rev3.diff uploaded by junky (license 177) bug11575_trunk.diff.txt uploaded by jamesgolovich (license 176) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114595 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-21Only print out the error message if ldap_modify_ext_s actually returns an ↵file1-1/+1
error, and not success. (closes issue #12438) Reported by: gservat Patches: res_config_ldap.c-patch-code uploaded by gservat (license 466) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114320 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-18If the parsing of the config file fails make sure we unlock ldap_lock.file1-0/+1
(closes issue #12477) Reported by: IgorG git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114254 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-18Add g__object_unref to clean up gmime message objectdbailey1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114253 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-17Merged revisions 114198 via svnmerge from phsultan1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114198 | phsultan | 2008-04-17 15:42:23 +0200 (Thu, 17 Apr 2008) | 2 lines Use keepalives effectively in order diagnose bug #12432. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114199 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-17Merged revisions 114195 via svnmerge from tilghman1-0/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114195 | tilghman | 2008-04-17 07:56:38 -0500 (Thu, 17 Apr 2008) | 8 lines Add special case for when the agi cannot be executed, to comply with the documentation that we return failure in that case. (closes issue #12462) Reported by: fmueller Patches: 20080416__bug12462.diff.txt uploaded by Corydon76 (license 14) Tested by: fmueller ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114196 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-16Standardized routines for forking processes (keeps all the specialized code ↵tilghman2-47/+12
in one place). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114188 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Need a new buffer for each looptwilson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-14Don't unref user twice on failure. Also, when adding sorted list of users, ↵twilson1-2/+1
it is best to check the entry already in the list for a "next" entry instead of the newly created entry... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114124 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Use the correct function for free'ing objects, and maybe we won't crash.tilghman1-2/+2
(closes issue #12163) Reported by: gservat Patches: 20080411__bug12163.diff.txt uploaded by Corydon76 (license 14) Tested by: gservat git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114085 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Make sure that ${LINE} is set even if linenumber is not set in users.conftwilson1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114080 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Fix the fact that global_variables 1) weren't being updated on reload ↵twilson1-24/+51
(thanks for the report, Doug), and 2) weren't actually being appended to the list of profile variables because build_profile was called before the list was populated. Also needed to free the contents returned by load_file(). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114067 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11Errors are all greater than 0tilghman1-9/+9
(closes issue #12422) Reported by: nito Patches: res_config_ldap_result_check_patch.diff uploaded by nito (license 340) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114061 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-07atoi(NULL) is badtwilson1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113170 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-05AsyncAGI should not close the manager session on error.tilghman1-2/+2
(closes issue #12370) Reported by: srt Patches: asterisk-12370.diff uploaded by srt (license 378) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112972 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-05Clean up some memory leak/ref counting issuestwilson1-22/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112939 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-05Multi-line support for phoneprovtwilson1-138/+343
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112906 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-02Re-add HTTP post support by moving to res_http_post.ctwilson2-2/+344
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112426 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-31Initialize all these here tmp pointers at declaration. They confused some ↵file1-4/+3
compilers a wee bit. (closes issue #12333) Reported by: ovi git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111961 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-27Merged revisions 111341 via svnmerge from murf1-50/+93
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r111341 | murf | 2008-03-26 21:21:05 -0600 (Wed, 26 Mar 2008) | 15 lines (closes issue #12302) Reported by: pj Tested by: murf These changes will set a channel variable ~~EXTEN~~ just before generating code for a switch, with the value of ${EXTEN}. The exten is marked as having a switch, and ever after that, till the end of the exten, we substitute any ${EXTEN} with ${~~EXTEN~~} instead in application arguments; (and the ${EXTEN: also). The reason for this, is that because switches are coded using separate extensions to provide pattern matching, and jumping to/from these switch extensions messes up the ${EXTEN} value, which blows the minds of users. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@111360 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-20Add some fixes that I made in regards to wideband codec handling to getrussell1-1/+1
G.722 music on hold working for me. (issue #12164, reported by milazzo and jsmith, patches by me) res/res_musiconhold.c: - I moved a single line so that the sample queue update happened before ast_write(). The reason that this was a bug is that the G.722 frame originally says it has 320 samples in it (which is correct). However, when the frame is written to a channel that uses RTP, main/rtp.c modifies the frame to cut the number of samples in half before it sends it on the wire. This is to account for the stupid incorrect G.722 spec that makes it so we have to lie about the number of samples with RTP. I should probably go and re-work the RTP code so it doesn't modify the frame so that a bug like this won't happen in the future. However, this change to MOH is harmless. main/channel.c: - I made two fixes in regards to generator timing. Generators use samples for timing. However, this code assumed 8 kHz samples. In one case, it was a hard coded 160 samples, that is now written as the sample rate / 50. The other place was dealing with timing a generator based on frames coming from the other direction. However, that would have only worked if the sample rates for the formats in both directions were the same. The code now takes into account that the sample rates may differ, and scales the generator samples accordingly. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110268 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-19Merged revisions 110035 via svnmerge from file1-2/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r110035 | file | 2008-03-19 16:11:33 -0300 (Wed, 19 Mar 2008) | 4 lines Add sanity checking for position resuming. We *have* to make sure that the position does not exceed the total number of files present, and we have to make sure that the position's filename is the same as previous. These values can change if a music class is reloaded and give unpredictable behavior. (closes issue #11663) Reported by: junky ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110036 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-19ensure that res_phoneprov's HTTP handler tells the dispatcher what method it ↵kpfleming1-0/+1
can handle git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109926 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18Change back to using ldap_initialize() and let the user specify a URL directly,tilghman1-20/+23
instead of trying to piece it together, badly. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109775 f38db490-d61c-443f-a65b-d21fe96a405b