Commit 55f48f13 authored by Hugo Lefeuvre's avatar Hugo Lefeuvre Committed by Sébastien Blin

fix spelling errors

Change-Id: Ifbc5f3792a7019dcfa8249eb30afe2a64cbeb57c
Reviewed-by: Sébastien Blin's avatarSebastien Blin <sebastien.blin@savoirfairelinux.com>
parent c2bfe7cc
......@@ -203,7 +203,7 @@ STACK_DIRECTION = 0 => direction of growth unknown */
/* Version number of package */
#define VERSION "2.3.0"
// UWP compatability
// UWP compatibility
#define PROGSHAREDIR ""
/* Define to limit the scope of <windows.h>. */
......
......@@ -178,7 +178,7 @@
</tp:docstring>
<arg type="s" name="transferID" direction="in">
<tp:docstring>
The callID of the call to be transfered.
The callID of the call to be transferred.
</tp:docstring>
</arg>
<arg type="s" name="targetID" direction="in">
......@@ -271,7 +271,7 @@
<tp:docstring>
Detach local participant from the conference.
Remote participants are placed in hold.
The signal <tp:member-ref>conferenceChanged</tp:member-ref> is emited.
The signal <tp:member-ref>conferenceChanged</tp:member-ref> is emitted.
</tp:docstring>
<arg type="b" name="detachSucceeded" direction="out"/>
</method>
......@@ -279,7 +279,7 @@
<method name="detachParticipant" tp:name-for-bindings="detachParticipant">
<tp:added version="0.9.7"/>
<tp:docstring>
Detach the given call from the conference. If only one participant is left, the conference is deleted and the signal <tp:member-ref>conferenceRemoved</tp:member-ref> is emited.
Detach the given call from the conference. If only one participant is left, the conference is deleted and the signal <tp:member-ref>conferenceRemoved</tp:member-ref> is emitted.
</tp:docstring>
<arg type="s" name="callID" direction="in">
<tp:docstring>
......@@ -342,7 +342,7 @@
<method name="getConferenceId" tp:name-for-bindings="getConferenceId">
<tp:added version="1.1.0"/>
<tp:docstring>
If thsi call participate to a conference, return the conference id.
If this call participate to a conference, return the conference id.
Return an empty string elsewhere.
</tp:docstring>
<arg type="s" name="callID" direction="in">
......@@ -415,7 +415,7 @@
<signal name="recordPlaybackFilepath" tp:name-for-bindings="recordPlaybackFilepath">
<tp:docstring>
Once after starting recording for the first time, this signal is emited to
Once after starting recording for the first time, this signal is emitted to
provide the recorded file path to client application.
</tp:docstring>
<arg type="s" name="callID" />
......@@ -650,7 +650,7 @@
<signal name="conferenceCreated" tp:name-for-bindings="conferenceCreated">
<tp:added version="0.9.7"/>
<tp:docstring>
Emited when a new conference is created. Ring-client is reponsible for storing the confID and call <tp:member-ref>getParticipantList</tp:member-ref> to update the display.
Emitted when a new conference is created. Ring-client is responsible for storing the confID and call <tp:member-ref>getParticipantList</tp:member-ref> to update the display.
</tp:docstring>
<arg type="s" name="confID">
<tp:docstring>
......@@ -662,7 +662,7 @@
<signal name="conferenceRemoved" tp:name-for-bindings="conferenceRemoved">
<tp:added version="0.9.7"/>
<tp:docstring>
Emited when a new conference is remove. Ring-client should have kept a list of current participant in order to display modification.
Emitted when a new conference is remove. Ring-client should have kept a list of current participant in order to display modification.
</tp:docstring>
<arg type="s" name="confID">
<tp:docstring>
......@@ -727,7 +727,7 @@
<signal name="transferSucceeded" tp:name-for-bindings="transferSucceeded">
<tp:docstring>
<p>Transfer has been successfully
processed. Client should remove transfered
processed. Client should remove transferred
call from call list as it is no longer
accessible in Ring-daemon (dring).</p>
</tp:docstring>
......
......@@ -32,7 +32,7 @@
<li>CONFIG_ACCOUNT_ENABLE: True or False (Default: True)</li>
<li>CONFIG_ACCOUNT_RESOLVE_ONCE</li>
<li>CONFIG_ACCOUNT_TYPE: SIP or RING</li>
<li>HOSTNAME: The IP adress or hostname of the registrar</li>
<li>HOSTNAME: The IP address or hostname of the registrar</li>
<li>USERNAME: The username (or extension) of the account</li>
<li>PASSWORD: The password associated to the account</li>
<li>REALM</li>
......@@ -1183,7 +1183,7 @@
</arg>
<arg type="b" name="success" direction="out">
<tp:docstring>
<p>True if the certificate state was succesfully set.</p>
<p>True if the certificate state was successfully set.</p>
</tp:docstring>
</arg>
</method>
......
......@@ -103,7 +103,7 @@ RestClient::initLib(int flags)
// Configuration event handlers
// This is a short example of a callbakc using a lambda. In this case, this displays the incomming messages
// This is a short example of a callback using a lambda. In this case, this displays the incoming messages
const std::map<std::string, SharedCallback> configEvHandlers = {
exportable_callback<ConfigurationSignal::IncomingAccountMessage>([]
(const std::string& accountID, const std::string& from, const std::map<std::string, std::string>& payloads){
......@@ -146,7 +146,7 @@ RestClient::initResources()
// This is the function that initiates the resources.
// Each resources is defined by a route and a void function with a shared pointer to the session as argument
// In this case, here's an example of the default route. It will list all the managers availables
// In this case, here's an example of the default route. It will list all the managers available
auto default_res = std::make_shared<restbed::Resource>();
default_res->set_path("/");
default_res->set_method_handler("GET", [](const std::shared_ptr<restbed::Session> session){
......
......@@ -24,7 +24,7 @@
/**
* @file account_schema.h
* @brief Account specfic keys/constants that must be shared in daemon and clients.
* @brief Account specific keys/constants that must be shared in daemon and clients.
*/
namespace ring { namespace Conf {
......
......@@ -205,7 +205,7 @@ void enableProxyClient(const std::string& accountID, bool enable);
void setPushNotificationToken(const std::string& pushDeviceToken);
/**
* To be called by clients with relevent data when a push notification is received.
* To be called by clients with relevant data when a push notification is received.
*/
void pushNotificationReceived(const std::string& from, const std::map<std::string, std::string>& data);
......@@ -313,7 +313,7 @@ struct ConfigurationSignal {
using cb_type = void(const std::string& /*accountId*/, const std::string& /*device*/, int /*status*/);
};
/**
* These are special getters for Android and UWP, so the daemon can retreive
* These are special getters for Android and UWP, so the daemon can retrieve
* information only accessible through their respective platform APIs
*/
#if defined(__ANDROID__) || (defined(TARGET_OS_IOS) && TARGET_OS_IOS)
......
......@@ -73,7 +73,7 @@ struct DataTransferInfo
std::string peer; ///< Identifier of the remote peer (in the semantic of the associated account)
std::string displayName; ///< Human oriented transfer name
std::string path; ///< associated local file path if supported (empty, if not)
std::string mimetype; ///< MimeType of transfered data (https://www.iana.org/assignments/media-types/media-types.xhtml)
std::string mimetype; ///< MimeType of transferred data (https://www.iana.org/assignments/media-types/media-types.xhtml)
};
std::vector<DataTransferId> dataTransferList() noexcept;
......@@ -93,7 +93,7 @@ std::vector<DataTransferId> dataTransferList() noexcept;
///
/// Other fields are not used, but you must keep the default assigned value for compatibility.
///
/// \param info a DataTransferInfo structure filled with information usefull for a file transfer.
/// \param info a DataTransferInfo structure filled with information useful for a file transfer.
/// \param[out] id data transfer identifiant if function succeed, usable with other APIs. Undefined value in case of error.
///
/// \return DataTransferError::success if file is accepted for transfer, any other value in case of errors
......@@ -114,7 +114,7 @@ DataTransferError sendFile(const DataTransferInfo& info, DataTransferId& id) noe
/// \param id data transfer identification value as given by a DataTransferEvent signal.
/// \param file_path file path going to be open in binary write mode to put incoming data.
/// \param offset used to indicate the remote side about the number of bytes already received in
/// a previous transfer session, usefull in transfer continuation mode.
/// a previous transfer session, useful in transfer continuation mode.
///
/// \return DataTransferError::invalid_argument if id is unknown.
/// \note unknown \a id results to a no-op call.
......
......@@ -52,7 +52,7 @@ bool init(enum InitFlag flags) noexcept;
/**
* Start asynchronously daemon created by init().
* @returns true if daemon started successfuly
* @returns true if daemon started successfully
*/
bool start(const std::string& config_file={}) noexcept;
......@@ -81,7 +81,7 @@ void pollEvents() noexcept;
* to keep compatibility over releases we don't let user directly provides
* his callbacks as it or through a structure.
* This way brings ABI violation if we need to change the order
* and/or the existance of any callback type.
* and/or the existence of any callback type.
* Thus the user have to pass them using following template classes
* and functions, that wraps user-callback in a generic and ABI-compatible way.
*/
......
......@@ -59,7 +59,7 @@ namespace ring { namespace fileutils {
std::string get_cache_dir();
/**
* Check directory existance and create it with given mode if it doesn't.
* Check directory existence and create it with given mode if it doesn't.
* @param path to check, relative or absolute
* @param dir last directory creation mode
* @param parents default mode for all created directories except the last
......
......@@ -45,7 +45,7 @@ public:
using RecvCb = std::function<ssize_t(const ValueType* buf, std::size_t len)>;
/// Close established connection
/// \note Terminate oustanding blocking read operations with an empty error code, but a 0 read size.
/// \note Terminate outstanding blocking read operations with an empty error code, but a 0 read size.
virtual void shutdown() {}
/// Set Rx callback
......
......@@ -88,7 +88,7 @@ public:
bool isInitiator() const;
/**
* Start tranport negociation between local candidates and given remote
* Start tranport negotiation between local candidates and given remote
* to find the right candidate pair.
* This function doesn't block, the callback on_negodone_cb will be called
* with the negotiation result when operation is really done.
......
......@@ -301,7 +301,7 @@ struct Manager::ManagerPimpl
std::atomic_bool autoAnswer_ {false};
/** Application wide tone controler */
/** Application wide tone controller */
ToneControl toneCtrl_;
/** Current Call ID */
......@@ -2020,7 +2020,7 @@ Manager::peerAnsweredCall(Call& call)
const auto call_id = call.getCallId();
RING_DBG("[call:%s] Peer answered", call_id.c_str());
// The if statement is usefull only if we sent two calls at the same time.
// The if statement is useful only if we sent two calls at the same time.
if (isCurrentCall(call))
stopTone();
......
......@@ -185,7 +185,7 @@ class Manager {
/**
* Attended transfer
* @param The call id to be transfered
* @param The call id to be transferred
* @param The target
*/
bool attendedTransfer(const std::string& transferID, const std::string& targetID);
......@@ -233,7 +233,7 @@ class Manager {
bool unHoldConference(const std::string& conference_id);
/**
* Test if this id is a conference (usefull to test current call)
* Test if this id is a conference (useful to test current call)
* @param the call id
*/
bool isConference(const std::string& call_id) const;
......@@ -690,7 +690,7 @@ class Manager {
/**
* @return true is there is one or many incoming call waiting
* new call, not anwsered or refused
* new call, not answered or refused
*/
bool incomingCallsWaiting();
......
......@@ -245,7 +245,7 @@ class AudioBuffer {
* Convert fixed-point channel to float and write in the out buffer (Float 32-bits).
* The out buffer must be at least of size capacity()*sizeof(float) bytes.
*
* @returns Number of samples writen.
* @returns Number of samples written.
*/
size_t channelToFloat(float* out, const int& channel) const;
......@@ -253,7 +253,7 @@ class AudioBuffer {
* Write interleaved multichannel data to the out buffer (fixed-point 16-bits).
* The out buffer must be at least of size capacity()*sizeof(AudioSample) bytes.
*
* @returns Number of samples writen.
* @returns Number of samples written.
*/
size_t interleave(AudioSample* out) const;
......@@ -261,7 +261,7 @@ class AudioBuffer {
* Write null data (silence) to the out buffer (fixed-point 16-bits).
* The out buffer must be at least of size capacity()*sizeof(AudioSample) bytes.
*
* @returns Number of samples writen.
* @returns Number of samples written.
*/
size_t fillWithZero(AudioSample* out) const;
......@@ -269,7 +269,7 @@ class AudioBuffer {
* Write interleaved multichannel data to the out buffer (fixed-point 16-bits).
* The out buffer is resized to hold the full content of this buffer.
*
* @returns Number of samples writen.
* @returns Number of samples written.
*/
size_t interleave(std::vector<AudioSample>& out) const;
......@@ -282,7 +282,7 @@ class AudioBuffer {
* Write interleaved multichannel data to the out buffer, while samples are converted to float.
* The out buffer must be at least of size capacity()*sizeof(float) bytes.
*
* @returns Number of samples writen.
* @returns Number of samples written.
*/
size_t interleaveFloat(float* out) const;
......
......@@ -54,7 +54,7 @@ class AudioRecord {
/**
* Check if no other file is opened, then create a new one
* @param filename A string containing teh file (with/without extension)
* @param filename A string containing the file (with/without extension)
* @param type The sound file format (FILE_RAW, FILE_WAVE)
* @param format Internal sound format (INT16 / INT32)
* @return bool True if file was opened
......
......@@ -27,7 +27,7 @@ namespace opensl {
/*
* Called by OpenSL SimpleBufferQueue for every audio buffer played
* directly pass thru to our handler.
* directly pass through to our handler.
* The regularity of this callback from openSL/Android System affects
* playback continuity. If it does not callback in the regular time
* slot, you are under big pressure for audio processing[here we do
......
......@@ -145,7 +145,7 @@ class RingBuffer {
NON_COPYABLE(RingBuffer);
/**
* Return the smalest readoffset. Usefull to evaluate if ringbuffer is full
* Return the smalest readoffset. Useful to evaluate if ringbuffer is full
*/
size_t getSmallestReadOffset() const;
......
......@@ -57,7 +57,7 @@ class RingBufferPool {
void setInternalAudioFormat(AudioFormat format);
/**
* Bind together two audio streams so taht a client will be able
* Bind together two audio streams so that a client will be able
* to put and get data specifying its callid only.
*/
void bindCallID(const std::string& call_id1,
......@@ -104,7 +104,7 @@ class RingBufferPool {
/**
* Create a new ringbuffer with a default readoffset.
* This class keeps a weak reference on returned pointer,
* so the caller is responsible of the refered instance.
* so the caller is responsible of the referred instance.
*/
std::shared_ptr<RingBuffer> createRingBuffer(const std::string& id);
......
......@@ -32,7 +32,7 @@ namespace ring {
* ToneControl is a class to handle application wide business logic
* to control audio tones played at various application events.
* Having an application wide instance gives a way to handle
* complexes interactions occuring in a multi-call context.
* complexes interactions occurring in a multi-call context.
*/
class TelephoneTone;
......
......@@ -159,7 +159,7 @@ struct AccountCodecInfo
AccountCodecInfo& operator=(AccountCodecInfo&&);
const SystemCodecInfo& systemCodecInfo;
unsigned order {0}; /*used to define prefered codec list order in UI*/
unsigned order {0}; /*used to define preferred codec list order in UI*/
bool isActive {true};
/* account custom values */
unsigned payloadType;
......
......@@ -139,7 +139,7 @@ constexpr const char * const VideoPreferences::CONFIG_LABEL;
static const char * const DECODING_ACCELERATED_KEY = "decodingAccelerated";
#endif
static const char * const DFT_PULSE_LENGTH_STR = "250"; /** Default DTMF lenght */
static const char * const DFT_PULSE_LENGTH_STR = "250"; /** Default DTMF length */
static const char * const ALSA_DFT_CARD = "0"; /** Default sound card index */
Preferences::Preferences() :
......
......@@ -3468,7 +3468,7 @@ void RingAccount::setPushNotificationToken(const std::string& token)
}
/**
* To be called by clients with relevent data when a push notification is received.
* To be called by clients with relevant data when a push notification is received.
*/
void RingAccount::pushNotificationReceived(const std::string& from, const std::map<std::string, std::string>& data)
{
......
......@@ -372,7 +372,7 @@ class RingAccount : public SIPAccountBase {
void setPushNotificationToken(const std::string& pushDeviceToken = "");
/**
* To be called by clients with relevent data when a push notification is received.
* To be called by clients with relevant data when a push notification is received.
*/
void pushNotificationReceived(const std::string& from, const std::map<std::string, std::string>& data);
......
......@@ -860,7 +860,7 @@ TlsSession::TlsSessionImpl::handleStateHandshake(TlsSessionState state)
RING_DBG("[TLS] session established: %s", desc);
gnutls_free(desc);
// Anonymous connection? rehandshake immediatly with certificate authentification forced
// Anonymous connection? rehandshake immediately with certificate authentification forced
auto cred = gnutls_auth_get_type(session_);
if (cred == GNUTLS_CRD_ANON) {
RING_DBG("[TLS] renogotiate with certificate authentification");
......@@ -1037,7 +1037,7 @@ TlsSession::TlsSessionImpl::handleDataPacket(std::vector<ValueType>&& buf, uint6
///
/// Reorder and push received packet to upper layer
///
/// \note This method must be called continously, faster than RX_OOO_TIMEOUT
/// \note This method must be called continuously, faster than RX_OOO_TIMEOUT
///
void
TlsSession::TlsSessionImpl::flushRxQueue()
......@@ -1064,7 +1064,7 @@ TlsSession::TlsSessionImpl::flushRxQueue()
auto item = std::begin(reorderBuffer_);
auto next_offset = item->first;
// Wait for next continous packet until timeout
// Wait for next continuous packet until timeout
if ((clock::now() - lastReadTime_) >= RX_OOO_TIMEOUT) {
// OOO packet timeout - consider waited packets as lost
if (auto lost = next_offset - gapOffset_)
......
......@@ -123,7 +123,7 @@ bool Pattern::matches()
offset_[1] = ovector_[1] + offset_[0];
}
// Matching succeded but not enough space.
// Matching succeeded but not enough space.
// @TODO figure out something more clever to do in this case.
if (rc == 0)
throw MatchError("No space to store all substrings.");
......
......@@ -78,7 +78,7 @@ class PresSubClient {
bool subscribe();
/**
* Send a SUBCRIBE to the PXB or directly to a pres_client in the IP2IP context but
* the 0s timeout make the dialog expire immediatly.
* the 0s timeout make the dialog expire immediately.
*/
bool unsubscribe();
/**
......
......@@ -227,7 +227,7 @@ PresSubServer::pres_on_rx_subscribe_request(pjsip_rx_data *rdata)
return PJ_TRUE;
}
/*Send notify immediatly. Replace real status with fake.*/
/*Send notify immediately. Replace real status with fake.*/
// pjsip_pres_set_status(sub, pres->getStatus()); // real status
......
......@@ -43,8 +43,8 @@ class PresSubServer {
PresSubServer(SIPPresence * pres, pjsip_evsub *evsub, const char *remote, pjsip_dialog *d);
~PresSubServer();
/*
* Acces to the evsub expire variable.
* It was recieved in the SUBSCRIBE request.
* Access to the evsub expire variable.
* It was received in the SUBSCRIBE request.
*/
void setExpires(int ms);
int getExpires() const;
......
......@@ -109,7 +109,7 @@ SdesNegotiator::parse(const std::vector<std::string>& attributes)
} else
return cryptoAttributeVector;
// Check if the crypto suite is valid and retreive
// Check if the crypto suite is valid and retrieve
// its value.
cryptoSuitePattern->updateSubject(sdesLine.at(1));
......
......@@ -241,7 +241,7 @@ class SIPAccount : public SIPAccountBase {
}
/**
* Get the registration stucture that is used
* Get the registration structure that is used
* for PJSIP in the registration process.
* Settings are loaded from configuration file.
* @return pjsip_regc* A pointer to the registration structure
......
......@@ -149,7 +149,7 @@ public:
/**
* Determine if TLS is enabled for this account. TLS provides a secured channel for
* SIP signalization. It is independant of the media encription (as provided by SRTP).
* SIP signalization. It is independent of the media encryption (as provided by SRTP).
*/
virtual bool isTlsEnabled() const {
return false;
......
......@@ -1014,7 +1014,7 @@ SIPCall::waitForIceAndStartMedia()
if (!ice->isInitialized())
return true;
// Start transport on SDP data and wait for negotation
// Start transport on SDP data and wait for negotiation
auto rem_ice_attrs = call->sdp_->getIceAttributes();
if (rem_ice_attrs.ufrag.empty() or rem_ice_attrs.pwd.empty()) {
RING_ERR("[call:%s] Media ICE attributes empty", call->getCallId().c_str());
......@@ -1033,7 +1033,7 @@ SIPCall::waitForIceAndStartMedia()
auto ice = call->getIceMediaTransport();
if (ice->isFailed()) {
RING_ERR("[call:%s] Media ICE negotation failed", call->getCallId().c_str());
RING_ERR("[call:%s] Media ICE negotiation failed", call->getCallId().c_str());
call->onFailure(EIO);
return false;
}
......@@ -1081,7 +1081,7 @@ SIPCall::openPortsUPnP()
* Try to open the desired ports with UPnP,
* if they are used, use the alternative port and update the SDP session with the newly chosen port(s)
*
* TODO: the inital ports were chosen from the list of available ports and were marked as used
* TODO: the initial ports were chosen from the list of available ports and were marked as used
* the newly selected port should possibly be checked against the list of used ports and marked
* as used, the old port should be "released"
*/
......
......@@ -450,7 +450,7 @@ SipTransportBroker::getTlsIceTransport(const std::shared_ptr<ring::IceTransport>
{
std::lock_guard<std::mutex> lock(transportMapMutex_);
// we do not check for key existance as we've just created it
// we do not check for key existence as we've just created it
// (member of new SipIceTransport instance)
transports_.emplace(std::make_pair(tr, sip_tr));
}
......
......@@ -190,7 +190,7 @@ public:
std::shared_ptr<SipTransport> addTransport(pjsip_transport*);
/**
* Start gracefull shutdown procedure for all transports
* Start graceful shutdown procedure for all transports
*/
void shutdown();
......@@ -214,7 +214,7 @@ private:
std::mutex transportMapMutex_ {};
/**
* Transports are stored in this map in order to retreive them in case
* Transports are stored in this map in order to retrieve them in case
* several accounts would share the same port number.
*/
std::map<SipTransportDescr, pjsip_transport*> udpTransports_;
......
......@@ -232,7 +232,7 @@ transaction_request_cb(pjsip_rx_data *rdata)
Manager::instance().startVoiceMessageNotification(account_id, voicemail);
}
} else if (request.find("MESSAGE") != std::string::npos) {
// Reply 200 immediatly (RFC 3428, ch. 7)
// Reply 200 immediately (RFC 3428, ch. 7)
try_respond_stateless(endpt_, rdata, PJSIP_SC_OK, nullptr, nullptr, nullptr);
// Process message content in case of multi-part body
auto payloads = im::parseSipMessage(rdata->msg_info.msg);
......@@ -396,7 +396,7 @@ transaction_request_cb(pjsip_rx_data *rdata)
return PJ_FALSE;
}
// Check if call has been transfered
// Check if call has been transferred
pjsip_tx_data *tdata = 0;
if (pjsip_inv_initial_answer(call->inv.get(), rdata, PJSIP_SC_TRYING, NULL, NULL, &tdata) != PJ_SUCCESS) {
......@@ -452,7 +452,7 @@ tp_state_callback(pjsip_transport* tp, pjsip_transport_state state,
{
// There is no way (at writing) to link a user data to a PJSIP transport.
// So we obtain it from the global SIPVoIPLink instance that owns it.
// Be sure the broker's owner is not deleted during proccess
// Be sure the broker's owner is not deleted during process
if (auto sipLink = getSIPVoIPLink()) {
if (auto& broker = sipLink->sipTransportBroker)
broker->transportStateChanged(tp, state, info);
......
......@@ -1040,7 +1040,7 @@ UPnPContext::handleUPnPEvents(Upnp_EventType event_type, const void* event)
case UPNP_EVENT_SUBSCRIBE_COMPLETE:
/* RING_DBG("UPnP: Control Point async subscription complete"); */
/* TODO: check if successfull */
/* TODO: check if successful */
break;
......@@ -1215,7 +1215,7 @@ UPnPContext::removeMappingsByLocalIPAndDescription(const UPnPIGD& igd, const std
/* failed to delete entry, skip it and try the next one */
++entry_idx;
}
/* note: in the case that the entry deletion is successfull, we do not increment the entry
/* note: in the case that the entry deletion is successful, we do not increment the entry
* idx as the number of entries has decreased by one */
} else
++entry_idx;
......
......@@ -148,7 +148,7 @@ private:
IGD* chooseIGD_unlocked() const;
bool hasValidIGD_unlocked() const;
/* tries to add mapping, assumes you alreayd have lock on igd_mutex_ */
/* tries to add mapping, assumes you already have lock on igd_mutex_ */
Mapping addMapping(IGD* igd,
uint16_t port_external,
uint16_t port_internal,
......
......@@ -590,7 +590,7 @@ dirent_next(
/* Got a file */
p = &dirp->data;
} else {
/* The very last entry has been processed or an error occured */
/* The very last entry has been processed or an error occurred */
FindClose (dirp->handle);
dirp->handle = INVALID_HANDLE_VALUE;
p = NULL;
......
......@@ -173,7 +173,7 @@ test_SIP::testSimpleOutgoingIpCall()
void
test_SIP::testSimpleIncomingIpCall()
{
std::cout << ">>>> test simple incomming IP call <<<< " << '\n';
std::cout << ">>>> test simple incoming IP call <<<< " << '\n';
CPPUNIT_ASSERT(Manager::instance().callFactory.empty());
......
......@@ -75,7 +75,7 @@ Account_factoryTest::tearDown()
void
Account_factoryTest::testAddRemoveSIPAccount()
{
// verify if there is no account at the begining
// verify if there is no account at the beginning
CPPUNIT_ASSERT(accountFactory->empty());
CPPUNIT_ASSERT(accountFactory->accountCount()==0);
......@@ -95,7 +95,7 @@ Account_factoryTest::testAddRemoveSIPAccount()
void
Account_factoryTest::testAddRemoveRINGAccount()
{
// verify if there is no account at the begining
// verify if there is no account at the beginning
CPPUNIT_ASSERT(accountFactory->empty());
CPPUNIT_ASSERT(accountFactory->accountCount()==0);
......@@ -115,7 +115,7 @@ Account_factoryTest::testAddRemoveRINGAccount()
void
Account_factoryTest::testClear()
{
// verify if there is no account at the begining
// verify if there is no account at the beginning
CPPUNIT_ASSERT(accountFactory->empty());
CPPUNIT_ASSERT(accountFactory->accountCount()==0);
......
......@@ -107,7 +107,7 @@ FileutilsTest::testCheckDir()
CPPUNIT_ASSERT(isDirectory(NON_EXISTANT_PATH));
CPPUNIT_ASSERT(removeAll(NON_EXISTANT_PATH_BASE) == 0);
CPPUNIT_ASSERT(!isDirectory(NON_EXISTANT_PATH_BASE));
//remove an non existant directory
//remove an non existent directory
CPPUNIT_ASSERT(removeAll(NON_EXISTANT_PATH_BASE) == -1);
}
......
......@@ -303,7 +303,7 @@ exten => _91700XXXXXXX,1,Dial(IAX2/${GLOBAL(IAXINFO)}@iaxtel.com/${EXTEN:1}@iaxt
; The SWITCH statement permits a server to share the dialplan with
; another server. Use with care: Reciprocal switch statements are not
; allowed (e.g. both A -> B and B -> A), and the switched server needs
; to be on-line or else dialing can be severly delayed.
; to be on-line or else dialing can be severely delayed.
;
[iaxprovider]
;switch => IAX2/user:[key]@myserver/mycontext
......
......@@ -83,7 +83,7 @@
; 1. Asterisk checks the SIP From: address username and matches against
; names of devices with type=user
; The name is the text between square brackets [name]
; 2. Asterisk checks the From: addres and matches the list of devices
; 2. Asterisk checks the From: address and matches the list of devices
; with a type=peer
; 3. Asterisk checks the IP address (and port number) that the INVITE
; was sent from and matches against any devices with type=peer
......@@ -219,7 +219,7 @@ tlsbindaddr=0.0.0.0:5061 ; IP address for TLS server to bind to (0.0.0.0)
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
; Specifying a port in a SIP peer definition or
; when dialing outbound calls will supress SRV
; when dialing outbound calls will suppress SRV
; lookups for that peer or call.
;pedantic=yes ; Enable checking of tags in headers,
......@@ -786,7 +786,7 @@ tlscertfile=/etc/asterisk/keys/asterisk.pem ; Certificate file (*.pem format onl
; 'comedia RTP handling' refers to the technique of sending RTP to the port that the
; the other endpoint's RTP arrived from, and means 'connection-oriented media'. This is
; only partially related to RFC 4145 which was referred to as COMEDIA while it was in
; draft form. This method is used to accomodate endpoints that may be located behind
; draft form. This method is used to accommodate endpoints that may be located behind
; NAT devices, and as such the port number they tell Asterisk to send RTP packets to
; for their media streams is not actual port number that will be used on the nearer
; side of the NAT.
......
......@@ -6299,7 +6299,7 @@ def ParseArguments(args):
try:
_valid_extensions = set(val.split(','))
except ValueError:
PrintUsage('Extensions must be comma seperated list.')
PrintUsage('Extensions must be comma separated list.')
if not filenames:
PrintUsage('No files were specified.')
......
......@@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
"""DRing controling class through DBUS"""
"""DRing controlling class through DBUS"""
import sys
import os
......
......@@ -33,7 +33,7 @@ except Exception as e:
exit(1)
from errors import *
from controler import DRingCtrl