Commit Graph

1160 Commits (67e1c5942744b3d0a2e37bf01c7dfb84204411e8)

Author SHA1 Message Date
Jeremy McNamara de20d2a179 rollback everything to known good state. E.164 and prefix routing patches are broken
22 years ago
Jeremy McNamara 6fb5ebfedb try to work around CCM interop, UNTESTED! Someone with a CCM needs to test this
22 years ago
Jeremy McNamara 7132570353 Change 'show locals' into 'local show channels' to follow other channel methods. Bug #1255
22 years ago
Mark Spencer af6016cfd0 Add experimental nbscat application
22 years ago
Mark Spencer 7192fbfae7 Round offset timestamps to nearest 20ms to clean up numbers.
22 years ago
Mark Spencer c36ec4f9d7 Major MGCP enhancements (*very* big thank you to serkan and Sentito) (bug #1114)
22 years ago
Mark Spencer 785ac43c84 Just to be on the safe side, don't update timestamps against anything but voice packets.
22 years ago
Mark Spencer 7075b58ee1 Don't use hard timestamps for non-voice frames.
22 years ago
Mark Spencer a386f01a7c Favor requested codec whenever possible (pass #1)
22 years ago
Mark Spencer 8c232e1dbb Populate DNID for SIP
22 years ago
Jeremy McNamara d3b2cb19e4 Properly deal with E.164 and Prefix routing
22 years ago
Mark Spencer e7ecf6accb Populated RDNIS
22 years ago
Mark Spencer bf5d593e71 Fix parser
22 years ago
Mark Spencer 29b7818ebf Fix timestamp to always be unsigned
22 years ago
Mark Spencer 726d3cba43 Answer the line when hangup received and callwait is up
22 years ago
Mark Spencer b690dc13aa Fix timestamp delivery calculation in IAX... Still might be some mess left...
22 years ago
Malcolm Davenport b0d28cedf7 Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed
22 years ago
Mark Spencer b3f94c4c00 Fix small typo
22 years ago
Malcolm Davenport 0753ca66ab Bug #1222: Fixed
22 years ago
James Golovich 9223055df1 Fixup some pthread_t checking in channels
22 years ago
James Golovich 0e90480d6b Fix bug 1217. Change pthread_t initializers to AST_PTHREADT_NULL and
22 years ago
James Golovich c30ff0935d Add 'pri show span <spanno>' command to chan_zap.c
22 years ago
Malcolm Davenport 89c55fe46c Bug #1213. Fix for improperly specified Content-Length header
22 years ago
Mark Spencer 0852f5a930 Preserve IAX timestamps
22 years ago
Mark Spencer ea92b714f2 Turn off silence suppression in SDP
22 years ago
Mark Spencer afab3c4151 Fix a martin segfault
22 years ago
Mark Spencer f12928f700 Make sure no path leaves channel lock locked
22 years ago
James Golovich 6741234ec9 Make sure usedistinctivering gets set to the right value
22 years ago
James Golovich 18b3da6bab Wipe out p->exten in zt_hangup (bug 1115)
22 years ago
James Golovich fac46c078a Make distinctiveringdetection configurable per channel (bug 1168)
22 years ago
James Golovich d298a73aab Fix chan_iax2 compiling with MYSQL_FRIENDS
22 years ago
James Golovich 6f0d8022d1 Make mess more informative if non-dynamic sip user registers (bug 1186)
22 years ago
James Golovich 0d5dcf7358 Fix typo in chan_zap.c
22 years ago
James Golovich f2b52d46d0 Make sure chan_iax.c and chan_iax2.c know the size of G726 frames
22 years ago
Mark Spencer e42e998f76 Expand our definition of 3XX responses
22 years ago
James Golovich 82a2a8b7eb Fix pri->pvt[chan]->owner dereference (bug #1161)
22 years ago
James Golovich 359160d8a1 Change tormenta.conf to zaptel.conf
22 years ago
Mark Spencer a1d8701369 Formatting fixup
22 years ago
Mark Spencer b4ea3725da Set the context properly for a given peer
22 years ago
Jeremy McNamara 657056b114 clean up warning
22 years ago
Jeremy McNamara 16d9e65b32 check to see if sub->rtp is allocated. Bug #1040
22 years ago
Jeremy McNamara 9e21bc74ac check return value stop seg. Bug #967
22 years ago
Jeremy McNamara 1f691912e1 deal with bindaddr properly
22 years ago
Jeremy McNamara bff0a94507 deal with bindaddr properly
22 years ago
Mark Spencer 806bb3c63f Add support for parking with IAX2
22 years ago
James Golovich e67f8a50f9 Make PRI span completion only show spans that actually are PRIs
22 years ago
Mark Spencer b82aa22442 Process SDP on 183 session progress (bug #930)
22 years ago
Mark Spencer a9d042db2c Handle video codecs properly
22 years ago
Mark Spencer 6a73e70663 Make iax2 compile on *BSD
22 years ago
James Golovich 96abbad91d Add missing include to chan_iax2.c
22 years ago
Malcolm Davenport 6023b736d9 Bug # 1052 Got it this time..I'm sure of it ;)
22 years ago
Mark Spencer 066212158e Add IAX2 firmware upgrade support
22 years ago
Malcolm Davenport 23eaf5c442 Fix Bug # 935 and Bug # 1052
22 years ago
Mark Spencer 1f33e8b807 Optimization in pri_fixup
22 years ago
Mark Spencer d1cb6a3aa9 Merge Tilghman's and Cam's user defined cadence patch
22 years ago
Mark Spencer e08247218e Small but important fix for channel relocation (bug #54)
22 years ago
Mark Spencer 90594b5fc8 Properly lock slave and master in zt_unlink (bug #1008)
22 years ago
Mark Spencer 6724dd1597 Improve SIP friends support (should address bugs #1063 & #1052)
22 years ago
James Golovich 48496a930c Fix another spelling typo in chan_sip.c (bug #1059)
22 years ago
James Golovich 43e312bd62 Fix spelling typo in chan_sip.c (bug #1059)
22 years ago
Mark Spencer 89c76a80f2 Minor file.c cleanup for valgrind, log PRI event properly
22 years ago
Mark Spencer f285c61830 Cleanups to recent changes
22 years ago
Mark Spencer cc894e6100 Use call numbers instead of pointers in IAX2
22 years ago
Jim Dixon df987c2086 Added support for specifing Zaptel tonezone on a per-channel basis for
22 years ago
James Golovich 7907a37002 Fix typo in chan_sip.c (bug #1037)
22 years ago
Mark Spencer 2a31c91136 Add logging of agent login/logoff
22 years ago
Martin Pycko f49d75994e Fix recording the agent's calls by default
22 years ago
Mark Spencer 98391c1324 Free mysql results
22 years ago
Mark Spencer bac2215fb6 Fix several memory leaks
22 years ago
Mark Spencer 7cdb6d36f4 Fix a couple of memory leaks
22 years ago
Martin Pycko 2671e3d9bb Fix some minor errors: when logging off using AgentCallbackLogin don't put again the global *AGENTID* variable. Remove the '.' from the link that is put in the userfiled of CDR record
22 years ago
Jim Dixon 29571cfcb1 Fixed bug in FXOGS. Was not closing loop after starting.
22 years ago
Mark Spencer 077975cba7 Fix memory leak with SIP friends (bug #1010)
22 years ago
Mark Spencer e1df8c9082 Properly fully URL decode the REPLACES in SIP and also watch for edge condition (bug #1015)
22 years ago
Mark Spencer 02f99cb631 Omit PRI layer 1 information for data call (need updated libpri too) (bug #1012)
22 years ago
Mark Spencer ae4adad5c4 Insert blank after REFER (bug #997)
22 years ago
Mark Spencer cf4825233d Don't free private structure until iax2_hangup is actually called
22 years ago
Martin Pycko ba3b53d64a Add AgentMonitorOutgoing application to allow recording of outgoing calls made by the interface that is registered as an callback agent. Refer to "show application AgentMonitorOutput" for more info.
22 years ago
Martin Pycko 860f35a7ab Add recording agent's calls patch. Basically the call starts recording when the agent picks up and the file is stamped with the agent's id and the timestamp. Also optionally a URL link to that file may be inserted in the userfield of the CDR record. By default the recorded file will be mixed if soxmix is available.
22 years ago
Mark Spencer 694058ccb1 Implement REGREL in IAX2
22 years ago
Mark Spencer 1a225306f8 Don't get stuck in loop
22 years ago
Mark Spencer 2c9585e9f6 Force SIP reload to happen in network thread only
22 years ago
Mark Spencer bc06fe3b51 Fix small typos
22 years ago
Mark Spencer 5bb289262e Centralize all sip registration around a single lock
22 years ago
Mark Spencer 8c339b9d63 Perform proper locking on registration on SIP
22 years ago
Mark Spencer 904027f25f Release the call when freeing a registry
22 years ago
Mark Spencer 9c2f131b66 NetBSD portability enhancements (bug #969)
22 years ago
Mark Spencer e2dddf3532 Use better flags when starting MGCP threads (bug #598)
22 years ago
Mark Spencer 12934e17e6 If unregistered, don't consider it valid (bug #956)
22 years ago
Mark Spencer 87f28fa6dd Add "iaxcompat" option to allow nested switch statements, still might fail if you have an IAX call going to something with a switch...
22 years ago
Mark Spencer 83344af1c2 Fix add include (bug #966) and small update to bug 890
22 years ago
Mark Spencer 48748b8f9a Handle cause in DISCONNECT too
22 years ago
Mark Spencer c33c9283f1 Send busy when busy, congestion when congestion on PRI (bug #890)
22 years ago
Mark Spencer 32e131862d Elminate unused code/warnings (bug #934)
22 years ago
Mark Spencer aa4f316c14 Clarify iax foo to iax1 foo in chan_iax (bug #924)
22 years ago
Mark Spencer 80f23eb97d Don't send VMWI when we're not registered
22 years ago
Mark Spencer e7f46a4251 Seriously fix echo cancellation on inbound calls with FXO interfaces (and enable echo training on them)
22 years ago
Mark Spencer 662e7238ef Send 481 if call leg does not exist on CANCEL, and send 487 before 200 as per rfc3261 (bug #917)
22 years ago
Jeremy McNamara 8face6c67c Add even more explicit information. Take 2
22 years ago
Jeremy McNamara f2bb840936 Add even more explicit information
22 years ago
Mark Spencer 785da17231 Properly handle transfer of application (bug #911)
22 years ago
Mark Spencer a9b3a77cda Fix default to not use iax friends
22 years ago
Mark Spencer 1499f1e480 Create individual sip reload command (bug #880)
22 years ago
Mark Spencer 8abe6ccb64 Merge SIP/MySQL friends patch
22 years ago
Jim Dixon a7154d73fe Added functionality for E911 signalling
22 years ago
Mark Spencer 94da5ac1e8 Fix unload/load of chan_zap
22 years ago
Jeremy McNamara 508cb3d34a Change IAXPeers to IAX1Peers. Bug #838
22 years ago
Jeremy McNamara a4cc03ffd9 clean up output and print that we are unregistering a channel type
22 years ago
Jeremy McNamara 8fb24677a4 last try
22 years ago
Jeremy McNamara 337d7f6884 bed time
22 years ago
Jeremy McNamara 54478c3a0a h.323 gk cycle is still broken on -r
22 years ago
Jeremy McNamara 00fff0dbc1 renable h.323 gk cycle, fixed
22 years ago
Jeremy McNamara e46d9edc98 Not needed here
22 years ago
Jeremy McNamara e88fdae17d ok, its waay too late
22 years ago
Jeremy McNamara b3d1d22317 WTF
22 years ago
Jeremy McNamara 3817133d4f stupid, stupid, stupid stupid stupid stupid
22 years ago
Jeremy McNamara 9c1844a927 Fix it so we can be unloaded/loaded at will
22 years ago
Jeremy McNamara 4a558d611b comment out getsipuri to stop compiler warning
22 years ago
Jeremy McNamara 226ec5bd25 via z9hG4bK issue. Bug #663
22 years ago
Jeremy McNamara 3340239733 fix copy/paste error
22 years ago
Jeremy McNamara c5dcbb9901 Implement NAT trick for outbound SIP connections
22 years ago
Jeremy McNamara 0f4379d111 Fix monitor thread issue.
22 years ago
Jeremy McNamara aa03b29d77 fix typo. Bug #813
22 years ago
Jeremy McNamara d4af3ee3b6 clean up sip debug output. Bug #674
22 years ago
Mark Spencer 7a39517c94 Add new sound, fix nit picky detail in channel registration
22 years ago
Jeremy McNamara c060d39cca clean up our mess on unload. Bug #799
22 years ago
Jeremy McNamara a39f993cd4 fix monitor thread issue, even though commented out
22 years ago
Martin Pycko 9e1bae7bad Fix a typo
22 years ago
Jeremy McNamara b103bfdb8b Give seperate config option for deprecated chan_iax. Bug #801
22 years ago
Jeremy McNamara e08cce6b6b fix monitor thread. Bug #726
22 years ago
Jeremy McNamara 92f261cf3b unregister cli functions and fix monitor thread. Bug #798
22 years ago
Mark Spencer 5520872def Add distinctive ring detection
22 years ago
Jeremy McNamara 00f8683fc0 update with explict versions I like
22 years ago
Jeremy McNamara b7e53c695f clean up debug
22 years ago
Jeremy McNamara f102ce6f26 Fix ast-db seeding. Bug #767
22 years ago
Jeremy McNamara 1e3bd03b92 More buffer overflow checks from Corydon76.
22 years ago
Jeremy McNamara 2eaddaca67 check buffer for possible overflow. Thanks Corydon76 Bug #788
22 years ago
Jeremy McNamara da6648f3c9 don't try to print out username before its copied
22 years ago
Mark Spencer ed72e0e169 Show who sends us bad packets
22 years ago
Mark Spencer 389d089ecc Implement missing function
22 years ago
Mark Spencer 459d19823e Locking changes for IAX2
22 years ago
Jeremy McNamara 6b6ff098eb clean up code and remove install directive in h323/ Makefile
22 years ago
Jeremy McNamara 3f0477868a clean up code and remove unnecessary debug
22 years ago
Mark Spencer 5bd726380c When rejecting a call, free up the channel (bug #661)
22 years ago
Mark Spencer 861ed9a339 Cleanup ACL parsing, handle properly reload on sip with ACL
22 years ago
Mark Spencer 0cd9e10d2d Reorder events in IAX, make "IAX1" compatibility
22 years ago
Mark Spencer 5a0ef67644 When poking a peer after registration, release lock temporarily
22 years ago
Jeremy McNamara 2d8a1765eb remove broken cli command, for now
22 years ago
Jeremy McNamara d3c388db9c make firmware version configurable per device
22 years ago
Jeremy McNamara 5fc7f417da don't try to unreg with gk, on reload, now
22 years ago
Malcolm Davenport d9de4806b0 Bug #765: Modifying Auto-Congestion to p->maxtime * 4 instead of * 2
22 years ago
Malcolm Davenport 12186e981c Bug #710: Format fix for "zap show channels"
22 years ago
Malcolm Davenport d86261dc2b Bug #736: Better checking to avoid chan_zap segfault re: ss_thread and zt_new()
22 years ago
Jeremy McNamara 9697652c0a re-do the monitor fix (check for io before killing ourself)
22 years ago
Jeremy McNamara c3b8ab76a5 add a couple cli commands (h.323 hangup <token> and H.323 show tokens) and clean up code
22 years ago
Jeremy McNamara 19b7e41fda nuke file descriptor leak..You don't need a whole new thread to hang up a friggen call
22 years ago
Jeremy McNamara d0a7e585d7 clean up file descriptor leak and check for io before thread cancellation
22 years ago
Mark Spencer 148edfcf26 Ignore signals in select, fix typo in last patch
22 years ago
Jeremy McNamara 8abff30849 totally revert that highly broken patch. Please test your code before submitting diffs.
22 years ago
Jeremy McNamara 91ef46755f comment out two lines from PCadach's patch, they blow things up.
22 years ago
Jeremy McNamara ecc015889c Apply massive patch from PCadach. If things are broken blame him. Bug#469
22 years ago
Jeremy McNamara ddf7bc57d3 clean up output on debug
22 years ago
Mark Spencer d3bf33f9aa Send date with invite
22 years ago
Mark Spencer ef6973087b Fix reload race in SIP
22 years ago
Martin Pycko 0ae915c0f6 Fix the passing of digital PRI-PRI
22 years ago
Martin Pycko f96c0762ff Allow doing digital PRI to PRI calls automatically
22 years ago
Jeremy McNamara 9e996ceef8 follow same naming scheme as other simular functions
22 years ago
Jeremy McNamara 83c63206c1 don't create another endpoint on a reload
22 years ago
Jeremy McNamara fd0c9f6c2d remove debug and switch printf's out
22 years ago
Jeremy McNamara a2418cd15d don't complain on type=h323 itself :)
22 years ago
Martin Pycko 40b77a4661 Move zaptrcallerid out of #define ZAPATA_PRI
22 years ago
Martin Pycko 60d1f9cf45 Change long variable name to the shorter one
22 years ago
Martin Pycko a41fc6bbf9 Add 'useincomingcalleridonzaptransfer' keyword to chan_zap so that if there is incoming call on fxs port and you flashhook and transfer that call (or do a threeway call) the incoming callerid will be presented.
22 years ago
Mark Spencer 8b557dfd30 Minor cleanup
22 years ago
Mark Spencer 6fb9ea4ea5 Fix qualify + register
22 years ago
Mark Spencer 1a603dd365 The SIP motto is "There's More Than One Standard for Doing It"
22 years ago
Mark Spencer 25ebd8de49 Properly fix double locking issue, fix wav49 issue
22 years ago
Martin Pycko 41d9f563a8 We really don't want to lock ourselves in zt_exception
22 years ago
Mark Spencer 1540cd05a9 Properly handle exceptions in zt_read
22 years ago
Jeremy McNamara c3b80c117f stomp on seg if no config file
22 years ago
Mark Spencer 5dd1310ac6 Get rid of old chan_zap_old
22 years ago
Mark Spencer 2f69b332d8 Cleanup unload calls
22 years ago
Mark Spencer 23cfe10d94 Don't retransmit INVITE on 407 retransmission
22 years ago
Mark Spencer 72e21db66a Minor sip fixes
22 years ago
Mark Spencer a5e6cf5003 Patch for improving unload on zap (thanks James)
22 years ago
Jeremy McNamara 2b30f6aa04 implement userbyalias. This will look to IP instead of H.323ID, if enabled Bug #251
22 years ago
Mark Spencer 1451a407ac Minor mgcp debuggin changes, sip deadlock improvement
22 years ago
Mark Spencer 0f2bdc6d0a Remove gratuitous race
22 years ago
Martin Pycko eab0dfc66b Provide a channel if PRI_EVENT_RING comes without a channel
22 years ago
Mark Spencer 9270beada5 Don't use dynamic mode when scanning all gateways
22 years ago
Mark Spencer 37f1885152 Quiet more authentication info if not enabled
22 years ago
Mark Spencer fac7eaffa9 Fix PGSQL voicemail issues (bug #625) and fix reload races in iax2
22 years ago
Mark Spencer da34cf8fd6 Add auth debug option
22 years ago
Martin Pycko bbbf123fcf Fix the ZapHangup, ZapDialOffhook, ZapTransfer manager commands
22 years ago
Jeremy McNamara 3d776a2da2 Update with current information
22 years ago
Jeremy McNamara 6b45687df2 add warning for keywords in type=h323 that make no sense
22 years ago
Mark Spencer 1740f71793 Don't don't show verbose 3 message when verbose not set
22 years ago
Mark Spencer 08c7c4be31 Don't retrain after each digit
22 years ago
Mark Spencer b3e9086d5d Really fix chan local races (I hope)
22 years ago
Mark Spencer f42b2aaeef Fix chanzap for p0, p1, etc
22 years ago
Mark Spencer 9ccfcb3d24 Properly build Contact on INVITE when asking for authentication
22 years ago
Mark Spencer efc61fe709 Temporarily revert changes, prepare for proper fix (sorry for the cvs spam)
22 years ago
Mark Spencer 7d74bcd7bc Always save the extension
22 years ago
Mark Spencer 37f33c4346 Build contact, don't copy it
22 years ago
Mark Spencer d4fe6cf255 Have a contact line in responses, merge logging patches
22 years ago
Mark Spencer 6a7ddeb222 limit fixes in SIP
22 years ago
Mark Spencer e45e601c35 Use global nat settings in auto peers
22 years ago
Mark Spencer f367a8bd33 Minor 407 improvements
22 years ago
Mark Spencer 3cfe7e6e25 Apply host access rules in SIP
22 years ago
Mark Spencer 55beaa4d47 Increment session version each time we send a new SDP
22 years ago
Mark Spencer 171b29fd4c Allow SIP/peer/exten like IAX
22 years ago
Mark Spencer 73b98c7500 Enable on hook transfer for vmwi
22 years ago
Jeremy McNamara d547cbee4e add stop media transmission message
22 years ago
Mark Spencer bfb27d0836 Make CALLTYPE available
22 years ago
Martin Pycko dc17a4c1c8 Don't crash if ZapHangup, ZapTransfer, ZapDialOffhook are used on the channel that is onhook (idle)
22 years ago
Mark Spencer 669e957291 Delete on unregister (bug #527)
22 years ago
Jeremy McNamara e09ed4f612 Update with current information
22 years ago
Jeremy McNamara 54ae8fcd9e apply G.729 patches (with changes) from bug #421
22 years ago
Martin Pycko a16e5d577c Fix segfault if more than 32 channels are used because of round_robin[x] = p;
22 years ago
Mark Spencer 626d85b1bd More VPB updates from Paul
22 years ago
Martin Pycko e30e685ee1 We have to hangup the bridge not continue on AbsoluteTimeout
22 years ago
Martin Pycko bb2bb1d083 Fix the AbsoluteTimeout issue with IAX/IAX2 when in native mode
22 years ago
Mark Spencer e406f72564 Add date/time to IAX2 register
22 years ago
Martin Pycko e3b0a66805 Don't do reinvite if both parties talk diffrent codecs
22 years ago
Martin Pycko 6f9da41a6c Do the last thing the right way (thanks Mark)
22 years ago
Martin Pycko 2850b4962f Don't allow to run SIPDtmfMode on other channels than SIP ones.
22 years ago
Martin Pycko 265d0a060c A little oops ...
22 years ago
Mark Spencer 6f6ff1a673 Don't try to expire if there is no expirey
22 years ago
Martin Pycko e7626bb3ce Fix deadlock in iax
22 years ago
Mark Spencer f6c230ebcb Minor alsa fix
22 years ago
Mark Spencer 9d244cb4ce Don't reconnect db on reload unless there was a failure
22 years ago
Mark Spencer c71d9d53ff Update so that "users" are implemented as well
22 years ago
Mark Spencer 08b0a2e4e2 Start on mysql_user, move to misery
22 years ago
Mark Spencer 484e1fae4e Tone/indications issue
22 years ago
Mark Spencer 4195115d60 Fix typo
22 years ago
Mark Spencer d21c6b7c13 Properly decode strings in REPLACES and ignore leading whitespace
22 years ago
Mark Spencer 38ea72559b Backport to iax
22 years ago
Martin Pycko 9d2c55e62a Fix SIP_CODEC support
22 years ago
Mark Spencer 6955b7cda1 Preliminary support for iax2 friends in mysql database
22 years ago
Mark Spencer a2303e3d0f Don't reinvite if we got a refer
22 years ago
Martin Pycko 5865f43a79 Implement several manager commands for Zap channels: ZapTransfer (flash hook), ZapHangup, ZapDial
22 years ago
Mark Spencer 027d5bbf30 Add ${SIPDOMAIN} and "dynamic peer" mode
22 years ago
Mark Spencer 9175d0a1ee If somehow we don't have an answer, set need to destroy on CANCEL
22 years ago
Mark Spencer b0f482d9b3 Handle 401 for INVITE as well (should we add support for BYE too?)
22 years ago
Mark Spencer 81339d3c3c Trustingly add Thorston's deadlock patch
22 years ago
Martin Pycko 6cd4d3c008 Add round robin to chan_zap with use of Zap/r<number>/<exten> (ascending) or Zap/R<number>/<exten> (descending).
22 years ago
Jeremy McNamara 994d37c441 Fix directons below. Thanks xam
22 years ago
Mark Spencer b5ec8ef1d9 Train echo canceller on FXO before last digit
22 years ago
Martin Pycko 019d707dc2 Add PRI_CAUSE feature for PRI ... If you set PRI_CAUSE=17 with SetVar and then call Hangup app the PRI will disconnect with this cause (it overrides the cause sent if we get it from incoming call)
22 years ago
Mark Spencer e255fe1685 Turn off music on hold when doing *0
22 years ago