Commit Graph

4949 Commits

Author SHA1 Message Date
paulc b6d72c4fc5 Always use the RTP started flag, no matter in which version.
git-svn-id: http://voip.null.ro/svn/yate@5230 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 23:08:21 +00:00
paulc 2d3c720bba Fixed Jingle audio content creation in a scenario with immediate answer.
git-svn-id: http://voip.null.ro/svn/yate@5229 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 21:09:08 +00:00
paulc 8a5cf1c398 Reset Jingle audio content on answer only if it was an early media one.
git-svn-id: http://voip.null.ro/svn/yate@5228 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 18:02:21 +00:00
oana afc7680016 Set allowed number of simultaneous calls from configuration files. If not set, default to the maxchans setting in yate.conf.
git-svn-id: http://voip.null.ro/svn/yate@5227 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 13:29:31 +00:00
oana 7a778bc084 Added mechanism to drop INVITE/REGISTER/SUBSCRIBE/OPTIONS messages when detecting a flood.
Other messages, as well as reINVITEs are still allowed.
Note: the meaning of the floodevents setting from ysipchan.conf has changed: now it sets the threshold for dropping messages.


git-svn-id: http://voip.null.ro/svn/yate@5226 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 12:31:07 +00:00
paulc 8b3f18d4e2 Display a warning when receiving an unknown RTP payload.
git-svn-id: http://voip.null.ro/svn/yate@5225 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 09:45:20 +00:00
paulc 00e6ea144c Added address and length of RTP, UDPTL and STUN packets on XDEBUG.
git-svn-id: http://voip.null.ro/svn/yate@5224 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 09:44:45 +00:00
oana 72ba0c6911 Fix bug: first check if a message is a re-INVITE and handle it if required, otherwise check if the INVITE can be accepted.
git-svn-id: http://voip.null.ro/svn/yate@5223 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-15 12:44:53 +00:00
oana e4f1433541 Keep channel count in a member variable. Replace the use of count() on the channel list with this variable.
git-svn-id: http://voip.null.ro/svn/yate@5222 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-15 12:36:53 +00:00
paulc 0ff8708bd4 Added the banbrutes PHP script to the default install.
Added note that Yate needs to run as root for banbrutes.php to work.


git-svn-id: http://voip.null.ro/svn/yate@5221 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-13 14:15:22 +00:00
paulc a12d52eae2 Added the WebRTC based iLBC codec to Windows build and packing.
git-svn-id: http://voip.null.ro/svn/yate@5220 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-08 15:44:27 +00:00
oana 4f3379b900 Try to get socket address length from sa_len field when it is present.
git-svn-id: http://voip.null.ro/svn/yate@5219 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-07 15:22:56 +00:00
oana 9e5c0b49b6 Detect the presence of the sa_len field of struct sockaddr and set it if that is the case. Fixes the comparison of SocketAddr objects on Mac OS X and BSD-based systems.
git-svn-id: http://voip.null.ro/svn/yate@5218 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-07 12:08:16 +00:00
oana c58f683dd1 Fixed compiler warnings which appeared on Mac OS X 10.6.
git-svn-id: http://voip.null.ro/svn/yate@5217 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-07 09:02:28 +00:00
paulc 6225ee6901 Added support for updating remote dialog and party on reINVITE.
git-svn-id: http://voip.null.ro/svn/yate@5216 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-03 21:20:10 +00:00
paulc 52511b371f Allow the registration and routing to be disabled by message parameters in regfile and register.
Previously only the authentication could be disabled.


git-svn-id: http://voip.null.ro/svn/yate@5215 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-03 15:13:31 +00:00
paulc 8bb150f186 Assume a SIP 3xx response is a redirect unless the "redirect" parameter is explicitely false.
Works around broken providers that lack a Contact header in their CNAM answer.


git-svn-id: http://voip.null.ro/svn/yate@5214 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-30 17:26:42 +00:00
paulc 1ddb40ad1a Package the WebRTC based iLBC codec.
git-svn-id: http://voip.null.ro/svn/yate@5213 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-30 12:56:13 +00:00
marian b55ef69c2a Add 'action' attribute in jingle stanza for old version to generate an event when session initiate stanza is confirmed. This will fix call.ringing dispatch by the jingle channel.
git-svn-id: http://voip.null.ro/svn/yate@5212 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-24 15:07:11 +00:00
oana 5180f37fe7 Added special handling for late PING/PONG frames.
git-svn-id: http://voip.null.ro/svn/yate@5211 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-24 14:24:24 +00:00
oana 047c411a6b Don't clear incoming frames queue, avoids losing received ACKs.
git-svn-id: http://voip.null.ro/svn/yate@5210 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-24 14:11:41 +00:00
oana a94e3dd447 Never reject processing an INVAL frame.
git-svn-id: http://voip.null.ro/svn/yate@5209 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-24 14:07:10 +00:00
oana 2baff58dac Don't increment output sequence number when sending an INVAL.
git-svn-id: http://voip.null.ro/svn/yate@5208 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-24 14:02:24 +00:00
paulc 9789c3061c Clear the "message" member of Channel only when script ended, else just mark it invalid.
git-svn-id: http://voip.null.ro/svn/yate@5207 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-24 10:31:12 +00:00
paulc f66cfe2ddc Use static strings in the SIP CNAM and LNP lookup module.
git-svn-id: http://voip.null.ro/svn/yate@5206 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-20 15:03:55 +00:00
paulc 19a8243c2a Added possibility to set the From "domain" parameter in SIP LNP and CNAM queries.
git-svn-id: http://voip.null.ro/svn/yate@5205 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-20 14:57:09 +00:00
paulc 7fc2e11287 Add the "bitrate" as a generic payload parameter in addition to the attribute.
On inbound contents read the bitrate from generic parameter in preference to attribute.
Add the bitrate to the iLBC formats as some clients use it a a type hint instead of ptime.


git-svn-id: http://voip.null.ro/svn/yate@5204 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-17 14:25:38 +00:00
paulc 566e2035c5 Use the formats (synonyms) order if possible when populating a list of media.
This allows controlling the order in outbound Jingle calls and early media.


git-svn-id: http://voip.null.ro/svn/yate@5203 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-17 13:16:37 +00:00
paulc f59258cefb Fixed word size on 64 bit MIPS.
git-svn-id: http://voip.null.ro/svn/yate@5202 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-16 12:40:28 +00:00
paulc f11818cb93 Fixed several signed/unsigned formatting mismatches.
git-svn-id: http://voip.null.ro/svn/yate@5201 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-16 12:39:57 +00:00
paulc 0c1463af1c Fixed "unused returned value" compiler warning.
git-svn-id: http://voip.null.ro/svn/yate@5200 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-16 12:35:02 +00:00
paulc 951c55e0d6 Fixed typo in variable default initialization.
git-svn-id: http://voip.null.ro/svn/yate@5199 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-16 12:34:09 +00:00
oana 1ceb36f16d Always try to adjust timestamps when sending frames.
git-svn-id: http://voip.null.ro/svn/yate@5198 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 14:19:19 +00:00
oana aa7cf9b3bf Bug fix: Send ACK when receiving ANSWER, don't send ACK when receiving INVAL.
git-svn-id: http://voip.null.ro/svn/yate@5197 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 14:13:01 +00:00
oana b585521133 Bug fix: don't search an ACK for a sent PING.
git-svn-id: http://voip.null.ro/svn/yate@5196 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 14:01:12 +00:00
oana 1981eeaf15 Bug fix: don't terminate a transaction until an ACK is received which matches the sent HANGUP frame.
git-svn-id: http://voip.null.ro/svn/yate@5195 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 13:52:40 +00:00
oana 02e5bbafae Bug fix: don't refuse INVAL/VNAK frames even if a HANGUP has been sent for a transaction.
git-svn-id: http://voip.null.ro/svn/yate@5194 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 13:43:26 +00:00
oana 84425f1199 Send an INVAL frame when receiving a frame for an unknown transaction.
git-svn-id: http://voip.null.ro/svn/yate@5193 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 13:27:02 +00:00
oana 51546ba933 Bug fix: don't remove a frame unless it matches with a received ACK.
git-svn-id: http://voip.null.ro/svn/yate@5192 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 13:13:16 +00:00
oana 236feb7ba1 Bug fix: after the last retransmission of a frame, wait for a while for an answer before destroying the transaction. Changed debug level for message regarding media transmission.
git-svn-id: http://voip.null.ro/svn/yate@5191 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 12:49:44 +00:00
paulc 91342343ae Added support for mapping repeated ISUP parameters to Yate messages.
The names are ParamName, ParamName.1, ParamName.2 and so on.


git-svn-id: http://voip.null.ro/svn/yate@5190 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-11 11:15:59 +00:00
paulc e121386c7d Use setMedia(0) instead of clearEndpoint() so chan.rtp with terminate=true is emitted when changing media in SIP.
git-svn-id: http://voip.null.ro/svn/yate@5189 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-09 13:41:14 +00:00
paulc e924a7720e Return last "localip" and "localport" in the chan.rtp message on termination.
Also return a "status" parameter.


git-svn-id: http://voip.null.ro/svn/yate@5188 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-09 13:39:46 +00:00
paulc 53692fe085 Linear interpolate audio data when upsampling to reduce artifacts.
git-svn-id: http://voip.null.ro/svn/yate@5187 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 12:28:05 +00:00
paulc bca21af985 Fixed timestamps when playing files with rate not 8kHz.
git-svn-id: http://voip.null.ro/svn/yate@5186 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 12:13:33 +00:00
paulc 2871fbbb0c Fixed the timestamp adjusting condition.
git-svn-id: http://voip.null.ro/svn/yate@5185 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 11:53:23 +00:00
paulc 2624d1e132 Fixed iSAC encoding timestamps.
git-svn-id: http://voip.null.ro/svn/yate@5184 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 11:50:14 +00:00
oana 0af4cc2c14 Bug fix: moved the verifying of a pointer that was causing the dropping of L_CANCEL component messages.
git-svn-id: http://voip.null.ro/svn/yate@5183 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 11:42:29 +00:00
paulc 8df140fa4b List incoming Jingle codecs in caller's preferred order if available.
git-svn-id: http://voip.null.ro/svn/yate@5182 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-05 17:02:10 +00:00
paulc e67b049d7d Lock the Jingle channel while changing its formats list.
git-svn-id: http://voip.null.ro/svn/yate@5181 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-05 11:25:18 +00:00