Commit graph

2341 commits

Author SHA1 Message Date
paulc
4a641d9b25 Fixed timestamps in AMR when transcoding from non-20ms packetization.
Added setting for initial AMR mode.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5278 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-21 10:38:19 +00:00
marian
ec97de2487 Honor detected method when sending DTMFs.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5277 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-20 09:29:28 +00:00
marian
08654d5b53 Override channel dtmf methods in chan.dtmf only if explicitly requested.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5276 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-19 14:11:11 +00:00
marian
c0a1420b5e Start capability exchange procedure when connection is established and didn't received remote capabilities.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5274 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-19 12:34:50 +00:00
andrei
1cbe7df586 Avoid declaring variables with the same name.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5272 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-19 11:12:50 +00:00
andrei
9a6586e49b Fixed Visual C compile error.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5269 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-19 10:25:40 +00:00
marian
ec380ed341 Added parameter lists used to encode/decode MAP sendParameters request and response.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5268 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-18 15:31:26 +00:00
paulc
5b5530d25e Enqueue the module.update immediately when the RTP wrapper is destroyed.
These monitoring messages are now disabled by default.
Emit a delayed module.update if the number of RTP sessions or reflectors change.
This commit fixes a memory leak and system slowdown.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5267 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-18 11:26:23 +00:00
marian
0583b5cdc5 Changed info allowed debug message level. Show it when compiled with xdebug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5266 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-18 11:14:58 +00:00
marian
e0fdf7c584 Allow dtmf send method(s) to be configured. Detect RFC2833 support when receiving remote capabilities.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5265 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-18 08:49:39 +00:00
marian
2030126a5f Allow send dtmf method(s) to be configurable. Detect remote party INFO support from 'Allow' header.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5264 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-18 08:40:29 +00:00
andrei
fee18f0f18 Send accounting interim updates on call cdr status message.
Added Quintum radius attrinutes.
Add duplicate radius parameters in yate message.
Added the option to send radius messages from outside radius module.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5263 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-14 15:15:06 +00:00
andrei
5adc97d095 Added the option to disable call cdr updates.
Added the option to send call cdr status.
Added the option to format call time.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5262 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-14 15:12:16 +00:00
paulc
31155b34db Properly clean up a fork slave whose call.execute succeeded but connect() failed.
This fixes a dangling pointer crash caused by some misconfigurations.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5261 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-14 12:01:53 +00:00
andrei
900e263138 Handle charging isup message.
Added possibility to specify how to handle it from configuration. 


git-svn-id: http://yate.null.ro/svn/yate/trunk@5260 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-14 08:51:24 +00:00
paulc
1b5e46cecc Allow postponing the embedded R: command when creating continuity check connection.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5256 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-11 18:42:52 +00:00
paulc
054a52f4eb Avoid making copies of message parameters in the RTP module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5255 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-11 10:31:55 +00:00
marian
c8466bc285 Fixed bug: don't change party when processing inactive events to avoid overriding it with a wrong one. Moved party changed debug message to DebugInfo level.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5251 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-05 10:19:37 +00:00
marian
a77586a7a9 Added configurable option (defaults to disable) used to change remote party's ip/port when a channel receives a response or a new transaction from a different address.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5250 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-03 09:41:46 +00:00
andrei
f565edd8d7 Fixed crash. Release m_sending mutex when the socket is null.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5249 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-30 15:13:04 +00:00
paulc
b59e4a9a41 Fixed millisecond to timestamp conversion in IAX audio.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5244 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-28 00:31:06 +00:00
paulc
989e7d9b2f Override the IAX caller and callername only if presenty in REGACK.
Allow setting the preferred caller and callername in account.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5243 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-27 20:59:19 +00:00
paulc
01a81504e9 Overwrite the calling number and name on IAX calls only if they are set by the line.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5242 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-27 20:36:54 +00:00
paulc
a5aaf0406d Display maxcalls besides running cals count in "callgen info" command.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5241 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-27 12:59:04 +00:00
paulc
a9b848b408 Added an optional kernel buffer setting for RTP sockets.
This limits how much delayed (so useless anyway) packets are processed under high load.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5239 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-24 17:53:33 +00:00
oana
4b096a8081 Added separate setting for activating the SIP flood protection mechanism.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5234 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-20 11:06:06 +00:00
paulc
d4aacc8ce9 Always use the RTP started flag, no matter in which version.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5230 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 23:08:21 +00:00
paulc
3919a0668e Fixed Jingle audio content creation in a scenario with immediate answer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5229 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 21:09:08 +00:00
paulc
237b6c9c55 Reset Jingle audio content on answer only if it was an early media one.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5228 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 18:02:21 +00:00
oana
ca3528c6e2 Set allowed number of simultaneous calls from configuration files. If not set, default to the maxchans setting in yate.conf.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5227 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 13:29:31 +00:00
oana
9ad504a992 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://yate.null.ro/svn/yate/trunk@5226 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 12:31:07 +00:00
paulc
dee6e5e67f Display a warning when receiving an unknown RTP payload.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5225 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 09:45:20 +00:00
paulc
2752ffb31b Added address and length of RTP, UDPTL and STUN packets on XDEBUG.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5224 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-17 09:44:45 +00:00
oana
3c8f472bb9 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://yate.null.ro/svn/yate/trunk@5223 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-15 12:44:53 +00:00
oana
e96d200db9 Fixed compiler warnings which appeared on Mac OS X 10.6.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5217 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-07 09:02:28 +00:00
paulc
063adacfce Added support for updating remote dialog and party on reINVITE.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5216 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-03 21:20:10 +00:00
paulc
6a9fcaa824 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://yate.null.ro/svn/yate/trunk@5215 acf43c95-373e-0410-b603-e72c3f656dc1
2012-08-03 15:13:31 +00:00
paulc
dc928d64d9 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://yate.null.ro/svn/yate/trunk@5214 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-30 17:26:42 +00:00
paulc
713b9b4bd9 Clear the "message" member of Channel only when script ended, else just mark it invalid.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5207 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-24 10:31:12 +00:00
paulc
e31786bc20 Use static strings in the SIP CNAM and LNP lookup module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5206 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-20 15:03:55 +00:00
paulc
bd9532be5b Added possibility to set the From "domain" parameter in SIP LNP and CNAM queries.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5205 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-20 14:57:09 +00:00
paulc
7e655f0d61 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://yate.null.ro/svn/yate/trunk@5204 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-17 14:25:38 +00:00
paulc
4f80ad5021 Fixed several signed/unsigned formatting mismatches.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5201 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-16 12:39:57 +00:00
oana
e0b65c6394 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://yate.null.ro/svn/yate/trunk@5191 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-13 12:49:44 +00:00
paulc
bd9ac32a86 Use setMedia(0) instead of clearEndpoint() so chan.rtp with terminate=true is emitted when changing media in SIP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5189 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-09 13:41:14 +00:00
paulc
56b04771d1 Return last "localip" and "localport" in the chan.rtp message on termination.
Also return a "status" parameter.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5188 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-09 13:39:46 +00:00
paulc
db192091ed Fixed timestamps when playing files with rate not 8kHz.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5186 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 12:13:33 +00:00
paulc
fb276938aa Fixed the timestamp adjusting condition.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5185 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 11:53:23 +00:00
paulc
945e1441e3 Fixed iSAC encoding timestamps.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5184 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 11:50:14 +00:00
oana
3ff7ace2f6 Bug fix: moved the verifying of a pointer that was causing the dropping of L_CANCEL component messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5183 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-06 11:42:29 +00:00