Commit Graph

4405 Commits (57c2c84d3664fae1446567ad3d550a4f883411cf)

Author SHA1 Message Date
Terry Wilson 28423c15fc If we fail to alloc a channel, we should re-lock the pvt structure before returning.
18 years ago
Jason Parker be8690e9a8 Make sure to reenable echo can after a "failed" (canceled, etc) three-way call.
18 years ago
Kevin P. Fleming 57eaf9dd8f don't generate D-Channel "up" and "down" messages unless the channel state is actually changing; also, generate the "up" message when an implicit "up" occurs due to reception of a normal event when we thought the channel was "down"
18 years ago
Tilghman Lesher 56e908b787 Safely use the strncat() function.
18 years ago
Russell Bryant 9479a831f0 Fix a potential deadlock and a few different potential crashes.
18 years ago
Joshua Colp cd703523db Add a control frame to indicate the source of media has changed. Depending on the underlying technology it may need to change some things.
18 years ago
Kevin P. Fleming 461e3fea79 when a PRI call must be moved to a different B channel at the request of the other endpoint, ensure that any DSP active on the original channel is moved to the new one
18 years ago
Tilghman Lesher b350a97937 Correctly initialize retransid in SIP, and ensure that the warning when failing to delete a schedule entry can actually hit the log.
18 years ago
Joshua Colp 36bb1f9d46 When a new source of audio comes in (such as music on hold) make sure the marker bit gets set.
18 years ago
Russell Bryant 7f7dbcb11f In the case of an ast_channel allocation failure, take the local_pvt out of the
18 years ago
Russell Bryant b3c0e042d4 Fix a potential memory leak of the local_pvt struct when ast_channel allocation
18 years ago
Joshua Colp 70d43ff1d2 Add a comment to describe some logic.
18 years ago
Jason Parker 70a45ef5b1 According to a video at www.cisco.com, the 7921G supports 6 line appearances.
18 years ago
Russell Bryant 54eaddd028 When we receive a known alarm, make sure that the unknown alarm flag is not still
18 years ago
Russell Bryant 37f0ad57a7 Zaptel 1.4 now exposes FXO battery state as an alarm. However, Asterisk 1.4
18 years ago
Russell Bryant bc56a84c58 Merge changes from team/russell/smdi-1.4
18 years ago
Jason Parker aba8d8d763 IPTOS_MINCOST is not defined on Solaris.
18 years ago
Joshua Colp e6652d0a13 Make it so a users.conf user creates both a SIP peer and a SIP user. The user will be used for inbound authentication for the device, and peer will be used for placing calls to the device.
18 years ago
Russell Bryant c27732c38c Ensure that the channel doesn't disappear in agent_logoff(). If it does, it
18 years ago
Joshua Colp 9b32204204 If a resubscription comes in for a dialog we no longer know about tell the remote side that the dialog does not exist so they subscribe again using a new dialog.
18 years ago
Joshua Colp 2395b1a6f5 Due to recent changes tag will no longer be NULL if not present so we have to use ast_strlen_zero to see if it's actually blank.
18 years ago
Tilghman Lesher 638ca62698 Backwards debug message.
18 years ago
Mark Michelson 2d8f502132 And as a followup to revision 104026, completely remove event-related
18 years ago
Mark Michelson b3dd064bcb Remove an incorrect debug message. It reported that it had received a specific event and tried to report
18 years ago
Joshua Colp 11edc2ab8d Don't wait for additional digits when overlap dialing is enabled if the setup message contains the sending_complete information element.
18 years ago
Mark Michelson 6835ca7d03 Fix a crash if the channel becomes NULL while attempting to lock it.
18 years ago
Joshua Colp 749f1e1963 Send CallerID Name in setup message.
18 years ago
Russell Bryant 8c9a6024d9 Account for the fact that the "other" channel can disappear while the local pvt
18 years ago
Joshua Colp 7b6d391b76 Fix building of chan_sip.
18 years ago
Olle Johansson 7b72c89fb9 Make sure we send error replies correctly by checking the via header.
18 years ago
Jason Parker add30e2666 Fix previous commit so that we actually disable echocanbridged if echocancel is off.
18 years ago
Jason Parker 4ce44f1c28 Correct a message when echocancelwhenbridged is on, but echocancel is not.
18 years ago
Tilghman Lesher 4306df31b1 When a SIP channel is being auto-destroyed, it's possible for it to still be
18 years ago
Mark Michelson a300034b08 Fix a linked list corruption that under the right circumstances
18 years ago
Joshua Colp c8d5a65d35 Don't care if the extension given doesn't exist for subscription based MWI.
18 years ago
Russell Bryant 6bf909cd2e Fix a crash in chan_iax2 due to a race condition
18 years ago
Tilghman Lesher e049bdfcfa We aren't talking to ourselves; we're talking to someone else.
18 years ago
Joshua Colp f3f663d6fd Even if no CallerID name or number has been provided by the remote party still use the configured sip.conf ones.
18 years ago
Mark Michelson 19f5074cd8 Yield the thread and return -1 if the ioctl fails for Zaptel timing device.
18 years ago
Joshua Colp 5e3cbd6f92 Make sure the presence of dbsecret is factored into user scoring.
18 years ago
Joshua Colp f26bac62e6 Only consider a T.38-only INVITE compatible if we have both a joint capability between us and them and if they provided T.38.
18 years ago
Mark Michelson 748609f25e Clear the DTMF buffer on hangup.
18 years ago
Joshua Colp e9c59d95eb If a REGISTER attempt comes in that is a retransmission of a previous REGISTER do not create a new nonce value.
18 years ago
Kevin P. Fleming 8a2fd8fdbd ensure that components of chan_misdn.so are built using any special build options that the configure script generated (reported by Philipp Kempgen on asterisk-dev)
18 years ago
Olle Johansson 649a083adb Use the same CSEQ on CANCEL as on INVITE (according to RFC 3261)
18 years ago
Olle Johansson 9a5d78c2c7 Handle ACK and CANCEL in an invite transaction - even if we get INFO transactions during the actual call setup.
18 years ago
Russell Bryant 26365fdeca Change the SDP_SAMPLE_RATE macro. It turns out that even though G.722 is 16 kHz,
18 years ago
Russell Bryant fe59cfa7aa Add some more sanity checking on IAX2 dial strings for the case that no peer
18 years ago
Jason Parker 9742fb53fe Solaris compat fixes for struct in_addr funkiness.
18 years ago
Russell Bryant 0343bf8348 Add more missing locking of the agents list ...
18 years ago
Russell Bryant 70200cec77 Move the locking from find_agent() into the agent dialplan function handler to
18 years ago
Russell Bryant c6c7c3bf58 Add missing locking to the find_agent() function.
18 years ago
Olle Johansson 5e02b0d76e Stop musiconhold on attended transfer.
18 years ago
Jason Parker f60be6bdb8 Initialize an array to 0s if config option not specified.
18 years ago
Jason Parker 75007e2ab5 Allow zap groups above 30 to work properly.
18 years ago
Christian Richter 31c5fc22a5 fixed potential segfault in misdn show channels CLI command
18 years ago
Olle Johansson 52cfa83d42 (closes issue #11736)
18 years ago
Mark Michelson d53c693509 Undoing the deprecation of chan_vpb. It is alive and well.
18 years ago
Russell Bryant fe50ae6de5 For some reason, the use of this strdupa() is leading to memory corruption on
18 years ago
Jason Parker 58a4fa50ce Correct a comment which made little/no sense.
18 years ago
Russell Bryant ef78f25e8a Make some deadlock related fixes. These bugs were discovered and reported
18 years ago
Tilghman Lesher 7060a6888d When deleting a task from the scheduler, ignoring the return value could
18 years ago
Mark Michelson 53859e0bfc Deprecating chan_vpb. It is now preferred that users of Voicetronix products
18 years ago
Jason Parker a70508ed3d This would have never been true, since we're passing (sizeof(req.data) - 1) as the len to recvfrom().
18 years ago
Olle Johansson 107c1c37b4 Second attempt. Don't change invitestate when receiving 18x messages in CANCEL state.
18 years ago
Olle Johansson d95d9d7132 Make sure we don't cancel destruction on calls in CANCEL state, even if we
18 years ago
Mark Michelson 3e54e684b2 These flag tests were illogical. They were testing sip_peer flags on a sip_pvt.
18 years ago
Olle Johansson f9cf98d4bf Thanks to Russell's education I realize that BUFSIZ has changed since I learned the C language
18 years ago
Olle Johansson 48066f4cfd Add more dependencies on chan_local and add a note to the description of chan_local
18 years ago
Olle Johansson 33b77709a7 Cleaning up some documentation that led to confusion in a bug report
18 years ago
Mark Michelson cdd8c1a3c3 Fixing an issue wherein monitoring local channels was not possible. During a channel
18 years ago
Joshua Colp 785f7da384 Bump the buffer size for Via headers up to 512. There are some exceptionally large Via headers out there.
18 years ago
Russell Bryant 6d0ee62540 Have IAX2 optimize the codec translation path just like chan_sip does it. If
18 years ago
Joshua Colp 1156daa2e4 Add missing NULLs at end of two ast_load_realtimes.
18 years ago
Mark Michelson 7decb0d343 Fix a deadlock in chan_local in local_hangup. There was contention because
18 years ago
Joshua Colp d35f5e39a2 Don't drop the old record route information when dealing with packets related to a reinvite.
18 years ago
Russell Bryant 48a72bba86 Change a buffer in check_auth() to be a thread local dynamically allocated
18 years ago
Russell Bryant 7a007060bd Commit a fix for some memory access errors pointed out by the valgrind2.txt
18 years ago
Joshua Colp d355eb9c84 Based on the boundary found move over the correct amount.
18 years ago
Joshua Colp e3458a4976 Accept "; boundary=" not just ";boundary=" in the multipart mixed content type.
18 years ago
Tilghman Lesher 0b289ed1b6 Back out changes from revision 97077, since it wasn't perfect
18 years ago
Tilghman Lesher 7f61492a42 1) When we get a translated frame out, clone it, because if the
18 years ago
Philippe Sultan 863ef8d7d2 Set the caller id within the gtalk_alloc function.
18 years ago
Kevin P. Fleming d235974bd6 pass the right variable to get an error string... oops
18 years ago
Kevin P. Fleming 7bfd21933f add error number output to ioctl failure messages to help with debugging
18 years ago
Joshua Colp 61ee1872b1 Fix various DTMF issues in chan_mgcp.
18 years ago
Tilghman Lesher 1b289c2998 Apply multiple crash fixes, found in issue #11386, but not completely
18 years ago
Tilghman Lesher 58cc575e52 If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes kablooie.
18 years ago
Russell Bryant 6787783ce5 Make use of the temporary channel pointer while the pvt is unlocked.
18 years ago
Russell Bryant 6ae86ec183 Don't crash if the iax2 pvt structure has been destroyed before we get to this point
18 years ago
Christian Richter 2a4a61f914 make sure frame is completely clean, before we send it to asterisk as DTMF. If we don't make it clean, it happens that one way audio occurs..
18 years ago
Christian Richter be6e667c1e when overlapdial was used and no number was dialed, the call was dropped, now we just jump into the s extension, which makes a lot more sense.
18 years ago
Joshua Colp b5087d7743 Allocate a SIP refer structure when performing a transfer using BYE with Also so that the transfer information is properly stored. (AST-2008-001)
18 years ago
Russell Bryant ce3f27c5d5 Remove duplicate increment of the header count in the add_header() function.
18 years ago
Joshua Colp e276b231fb Include types.h in chan_h323 as without it it can not be compiled on some operating systems like FreeBSD to name one.
18 years ago
Joshua Colp 856bc2ef76 Use ast_strlen_zero to see if our_contact is set or not on the dialog. It is possible for it to be a pointer to NULL.
18 years ago
Joshua Colp 25aef5fc44 file says... build on the builders.
18 years ago
Tilghman Lesher 9dbd385de7 More deadlock avoidance code (this time between sip_monitor and sip_hangup)
18 years ago
Tilghman Lesher f26935218f Another bit of bad logic in realtime_peer
18 years ago
Tilghman Lesher 1e5463be20 Argh... I suppose third time's the charm.
18 years ago
Russell Bryant 32c8a851c7 Merged revisions 94255 via svnmerge from
18 years ago
Russell Bryant b80002cc9f Fix a deadlock in d-channel handling in chan_zap.
18 years ago
Joshua Colp 52527facc4 Make the 1.4 builders happy, ensure var is NULL.
18 years ago
Tilghman Lesher d1a1f4599b Avoid segfault in chan_iax when peer isn't defined
18 years ago
Jason Parker ff5ffd02cf FreeBSD also does not have byte swap functions.
18 years ago
Tilghman Lesher be17d99712 Merged revisions 93667 via svnmerge from
18 years ago
Joshua Colp 48ae6172da If a call is received with a called number IE containing nothing go to the 's' extension.
18 years ago
Kevin P. Fleming fd1e942f53 fix some copy-and-paste leftovers
18 years ago
Olle Johansson 517dacce70 Issue 11574: Add dependencies on res_monitor and res_features.
18 years ago
Kevin P. Fleming 627f595c58 In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
18 years ago
Joshua Colp 6a2c388e18 Up the length of the format on the SIP channel since it can now be rather long.
18 years ago
Christian Richter 876afa76de fixed the sequencing of WAITING_4DIGS state setting and overlap_task thread starting.
18 years ago
Tilghman Lesher 9d70e52611 Properly initialize polarity statuses, so that they are detected properly.
18 years ago
Jason Parker 8771f23fff If a typo is found in a config file, we previous continued on with what was already loaded.
18 years ago
Joshua Colp 6fcaf2bb4b It is possible for nativeformats to contain more then one codec, so print out multiple ones.
18 years ago
Olle Johansson 7efa6b1fe0 Avoid reinvite race situations with two Asterisks trying
18 years ago
Joshua Colp 4edfc25a1f Add support for accepting and sending T.38 in the initial INVITE.
18 years ago
Mark Michelson 7b052b78e1 A big one...
18 years ago
Mark Michelson d2d88e0f3d Changing some bad logic when calculating the interdigit timeout.
18 years ago
Jason Parker 90edaee7dd Only log debug messages if debug is enabled.
18 years ago
Russell Bryant 1f8caa100d Change the behavior of ao2_link(). Previously, in inherited a reference.
18 years ago
Joshua Colp daf94226d5 Fix locking issues under one legged replaces scenarios.
18 years ago
Mark Michelson a53959d666 Clear the DTMF buffer if the call times out.
18 years ago
Olle Johansson 0c3ec937ce If we get a codec offer using a well-known payload type, but using it for another
18 years ago
Christian Richter be20960013 added RR patch from iroot #10908, thanks.
18 years ago
Tilghman Lesher 245abfa1c2 Fix an uninitialized memory read found by valgrind
18 years ago
Tilghman Lesher f39db73930 Yet another memory corruption issue.
18 years ago
Olle Johansson 9d3be20a0d Don't send re-invites during pending INVITE transactions.
18 years ago
Olle Johansson fc49ddab3a Improve support for multipart messages. Code by gasparz, changes
18 years ago
Jason Parker fb0bb38fc4 Fix building on newer systems which require a third arg to open() when using O_CREAT.
18 years ago
Tilghman Lesher 4332b72082 If we set a value for qualify, we should actually pay attention to it, instead of overriding the value
18 years ago
Tilghman Lesher 1a052e0498 Fix two cases of memory corruption caused by background threads.
18 years ago
Christian Richter c2c1e68238 if we're NT and no number was dialed and overlapdial is set, we wait for the ISDN timeout instead of starting our own timer. added a comment for the misdn.conf.sample for the overlapdial config option.
18 years ago
Christian Richter 4e52dc67dc added restart all interfaces Restart_Indicator, to automatically send a RESTART after the L2 of a PTP Port comes up. Also fixed some places where we have send a RELEASE without need for it.
18 years ago
Christian Richter 472f7a471c fixed a state/event issue with overlapdial=yes when no extension matched. removed the general sending of a RELEASE_COMPLETE when we receive a RELEASE, this is done by mISDNuser/mISDN. This makes it possible to use asterisk-1.4 with mISDN trunk, but requires users of mISDN/mISDNuser-1.1.X to upgrade to at least mISDNuser-1.1.6 (when using the NT mode at all)
18 years ago
Christian Richter ad50f139c4 fixed the support for CW and therefore for the reject_cause option.
18 years ago
Christian Richter 57ccb76df1 aded ntkeepcalls option, to avoid droÃpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer.
18 years ago
Mark Michelson 3b75ff9010 Rework of the commit I made yesterday to use the already built-in
18 years ago
Joshua Colp 3aea241b63 Do not add a sip: to the beginning of the To URI unless needed.
18 years ago
Joshua Colp 0f1ef85f9a Improve the devicestate logic for multiple devices. If any are available then the extension is considered available.
18 years ago
Joshua Colp 53fd91490e Add support for allowing one outgoing transaction. This means if a response comes back out of order chan_sip will still handle it. I dream of a chan_sip with real transaction support.
18 years ago
Joshua Colp f1309f2c3f If callerid is configured in sip.conf use that for checking the presence of an extension in the dialplan.
18 years ago
Mark Michelson 0d76379f54 This patch makes it possible for SIP phones to dial extensions defined with '#' characters
18 years ago
Joshua Colp cac21aa19b Make it so that if a peer is determined to be unreachable using qualify their devicestate will report back unavailable.
18 years ago
Joshua Colp 8b309c7bb9 Fix improbable but possible memory leaks in chan_zap.
18 years ago
Russell Bryant ea00780d49 When traversing the list of channel variables here in transmit_invite(), the
18 years ago
Russell Bryant 69e42e6096 Fix up some indentation.
18 years ago
Joshua Colp 10c172eb00 If a SIP channel is put on hold multiple times do not keep incrementing the onHold value.
18 years ago
Jason Parker 7fa3a53ec2 Make sure we destroy the config structure on configuration failure.
18 years ago
Luigi Rizzo a0edff2477 Rename ast_string_field_free_pool to ast_string_field_free_memory,
18 years ago