Commit Graph

2931 Commits (d2cb9b0d3b294b51c633af5cd52ff3a71939f005)

Author SHA1 Message Date
Russell Bryant d2cb9b0d3b After parsing information elements in IAX frames, set the data length to zero,
18 years ago
Russell Bryant 460df0480b (closes issue #9660)
18 years ago
Russell Bryant 2c757b4ab7 The function make_trunk() can fail and return -1 instead of a valid new call
18 years ago
Mark Michelson 140c936792 The cli command "agent logoff Agent/x soft" did not work...at all. Now it does.
18 years ago
Joshua Colp 7055d9fe45 Use some Makefile magic to determine if linux/compiler.h is present. (issue #10174 reported by francesco_r)
18 years ago
Jason Parker 5dd56e420c Fix an issue with wrapuptime not working when using AgentLogin.
18 years ago
Jason Parker 29da454042 Several chan_zap options were not working on reload because they were arbitrarily
18 years ago
Russell Bryant 0a22a51525 If a sip_pvt struct has already registered an extension state callback,
18 years ago
Russell Bryant ed261253d5 (closes issue #10125)
18 years ago
Mark Michelson 3735871ed4 Fixed a bug wherein agents get stuck busy. (issue 9618, reported by jiddings, patched by moi)
18 years ago
Kevin P. Fleming 585de1223e we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729
18 years ago
Joshua Colp 0b2c98ac3e Copy language information to the dialog structure when calling a peer for situations where a PBX may be started on the dialed channel. (issue #10121 reported by clegall_proformatique)
18 years ago
Joshua Colp 1dc2b9c0f7 Actually check to make sure a PBX was started on one of the Local channels instead of blindly assuming it was. (issue #10112 reported by makoto)
18 years ago
Christian Richter ce99e9d955 bchannel configurations like echocancel and volume control, need to be setuped on inbound calls too.
18 years ago
Christian Richter 479d7e4738 bad bug in overlapdial case, we called start_pbx multiple times, because the state wasn't changed..
18 years ago
Christian Richter 2676d6c595 fixed issue, that misdn_l2l1_check could only be called from mISDN Source channels.. #9449
18 years ago
Russell Bryant defd4eb3e2 Backport changes that make chan_iax2 not start the PBX on an incoming channel
18 years ago
Christian Richter fc4111b44f check if the bchannel stack id is already used, if so don't use it a second time. Also added a release_chan lock, so that the same chan_list object cannot be freed twice. chan_misdn does not crash anymore on heavy load with these changes.
18 years ago
Christian Richter 3637816f4c simplified generation for dummy bchannels, also we mark them as dummies, so they are not used later as real-bchannels, optimized the RESTART mechanisms, we block a channel now on cause:44, and send out a RESTART automatically, then on reception of RESTART_ACKNOWLEDGE we unblock the channel again.
18 years ago
Christian Richter 5f272436b9 simplified channel finding and locking a lot. removed unnecessary #ifdefed areas.
18 years ago
Christian Richter 085065ac35 isdn_lib.c didn't compile
18 years ago
Christian Richter 16ecedee04 for inbound TE calls, we setup the bchannel when we get the CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore.
18 years ago
Joshua Colp 76b4eb5daa Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick)
18 years ago
Christian Richter d8d4454ae5 we activate the bchannels in TE mode on incoming calls only when we want to connect the call.
18 years ago
Joshua Colp 6357ad5659 Don't overwrite the configured username setting upon a REGISTER. (issue #8565 reported by jsmith)
18 years ago
Russell Bryant cfaead2b9c Fix a problem where an established call would not be properly disconnected
18 years ago
Christian Richter f5f018a209 forgot one place ..
18 years ago
Christian Richter 7fc236e53b fixed a bug that was introduced by copy and paste in the last commit ..bchannels weren't cleaned properly.
18 years ago
Christian Richter ede913f976 on receiption of cause:44 we mark the channel as in use and inform the user about the situation, we need to test the RESTART stuff then. Also shuffled the empty_chan_in_stack function after the bchannel cleaning functions, to avoid race conditions.
18 years ago
Russell Bryant 6e0248318b Backport fix for crashes related to subscriptions from 1.4 ...
18 years ago
Christian Richter 3322095dea when we send out a SETUP, but get no response, we should cleanup everything after reception of a hangup.
18 years ago
Joshua Colp dc41ce9857 Set the peer name on the dialog to the one configured in sip.conf and NOT the username to be used for authentication attempts. (issue #9967 reported by achauvin)
18 years ago
Christian Richter ba372aa9a4 restart indicator 0x80 is correct, at least that's what libpri does.
18 years ago
Christian Richter 37ded96cfa if the bridged partner is mISDN too we should not send dtmf tones, they are transmitted inband always
18 years ago
Christian Richter 7bb272f942 if we have already some digits, we just stop the tones.
18 years ago
Christian Richter 9809905c76 added check for NULL Pointer when calling misdn_new. Asterisk does not allow us to create channels anymore when stop gracefully is used :). also modified the restart_indicator to 0
18 years ago
Christian Richter 5cc2b1078e fixed problem that the dummybc chanels had no lock, checking for the lock now. Also fixed the channel restart stuff, we can now specify and restart particular channels too.
18 years ago
Joshua Colp 084ede4507 Only notify the devicestate system of a peer state change when the peer is built from the config file. (issue #9900 reported by arkadia)
18 years ago
Christian Richter f002ad09a3 briding is a bool, fixed copy and paste issue.
18 years ago
Christian Richter e7590d0aec simplified the EVENT_SETUP handling in the cb_events function a lot. Commented the different possibilities a bit and made functions of shared code. When the dialed extension does not exist in the extensions.conf we'll jump into the 'i' extension if this does exist, else we disconnect the call with the cause:1 = No Route to Destination.
18 years ago
Nadi Sarrar e0f4f4969c Backport of the overlap_dial functionality from asterisk-1.4's chan_misdn.
18 years ago
Christian Richter 3cd1c84e8d added possibility to deactivate bridging per port
18 years ago
Joshua Colp 22fe1b73cc It is now possible for this path of execution to have the frame pointer be NULL, therefore we need to check for it before trying to access it. (issue #9836 reported by barthpbx)
18 years ago
Olle Johansson c4e7d9fef5 Issue #9802 - Change inuse counter on CANCEL
18 years ago
Joshua Colp ad2f350d39 Allow RFC2833 to be negotiated when an INVITE comes in without SDP and is not matched to a user or peer. (issue #9546 reported by mcrawford)
18 years ago
Christian Richter 17175c7d54 we should only activate the generator in chan_misdn, when asterisk hask not yet taken the call (WAITING4DIGS state). Alerting audio will be generated fomr asterisk for example.
18 years ago
Kevin P. Fleming cba8e2f704 ensure that variables are set on a newly created channel before we start a PBX on it
18 years ago
Kevin P. Fleming 9edd1e094c if we are going to set variables on a newly created channel, it should be done *before* we start the PBX on it
18 years ago
Russell Bryant 2f0f1f5e00 Revert revision 62417 as someone reported problems with it to Mark. This was
18 years ago
Christian Richter 0b6da8d56e we stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNECTED state we should not stop tones when we receive an Information Message
18 years ago