Commit Graph

488 Commits

Author SHA1 Message Date
paulc 51b6cf6bfa Fixed several issues exposed by the Microsoft compiler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6459 acf43c95-373e-0410-b603-e72c3f656dc1
2021-02-09 14:08:19 +00:00
oana d2df1cd2a6 Avoid setting trace_id twice in call.preroute.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6454 acf43c95-373e-0410-b603-e72c3f656dc1
2020-11-13 15:49:43 +00:00
marian 6031f15896 Avoid resetting started RTP when handling re-invite/update containing currently used codec.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6420 acf43c95-373e-0410-b603-e72c3f656dc1
2020-08-21 13:58:46 +00:00
marian 7fd35b99be Fixed bug: print a received answer to a request sent without trace id while tracing is enabled. Fixed bug: set channel's trace id when building a dialog message. Added configuration option to enable sip tracing.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6415 acf43c95-373e-0410-b603-e72c3f656dc1
2020-07-15 13:34:04 +00:00
marian 0b5e30d1e3 Copy sip headers for 200 OK sent or received on re-invite.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6412 acf43c95-373e-0410-b603-e72c3f656dc1
2020-07-01 12:15:26 +00:00
marian e090326356 Added separate (global) mutex used to protect access to Channel::m_status. Removed unsafe public method used to obtain it. Added methods used to safely obtain a copy of it.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6410 acf43c95-373e-0410-b603-e72c3f656dc1
2020-05-29 14:03:35 +00:00
oana 931d583b48 Propagate trace_id to user.auth.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6407 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-23 11:21:35 +00:00
oana 636e41a2cd Add support in SIP, SDP, RTP and CDR build for tracing a call.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6406 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 14:18:49 +00:00
oana e337f4bc3a Add option to stop execution of an outgoing call.
Propagate that parameter in dumb channel, tone generator and wave file.
In SIP, simulate going through the whole SIP stack before stopping execution of the call.



git-svn-id: http://yate.null.ro/svn/yate/trunk@6401 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 10:59:48 +00:00
marian 354b2b278d Added capability to disable SDP forward from routing.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6393 acf43c95-373e-0410-b603-e72c3f656dc1
2020-03-09 07:15:06 +00:00
marian 8fe3d0585c Handle 'silent' error/reason in reject, disconnect, drop. Silence channel's transaction: process it but send nothing to remote party.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6387 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-27 12:11:28 +00:00
paulc dd4a0224de Added an easy way to block a RTP forwarding reINVITE call.update message.
Handle the message (to stop it) but set retValue to "-" or "error".


git-svn-id: http://yate.null.ro/svn/yate/trunk@6386 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-26 15:13:39 +00:00
marian ed89e03628 Added configurable option to put all headers received in initial SIP requests in yate message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6385 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-26 13:08:04 +00:00
marian d56a073f95 Improved alarm message put on reading possible truncated packet for udp listener.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6381 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-17 06:35:48 +00:00
marian 84a5d499d9 Extend socket read buffer by 1 to allow reading configured size (maxpkt). Put an alarm when UDP is reading configured maxpkt number of bytes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6379 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-14 10:44:44 +00:00
marian 4ed607b0c6 Always update dialog uri from Contact header when handling 2xx answer to INVITE. Added option (default: disable) to also change party if autochangeparty is enabled.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6369 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-13 11:18:31 +00:00
marian 2066fb6e37 Update channel uri from received 2xx answer when generating ACK.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6362 acf43c95-373e-0410-b603-e72c3f656dc1
2019-10-30 08:57:57 +00:00
marian 6a07bab093 Allow setting incoming channel params from user.auth.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6351 acf43c95-373e-0410-b603-e72c3f656dc1
2019-06-06 10:05:42 +00:00
marian 72f8657188 Added Channel parameters list to be set in all Channel messages. Update it from routing and chan.control.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6339 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-14 09:54:04 +00:00
paulc 671478a79a Retrieve P-Asserted-Identity parameters even if privacy is disabled.
Added support for extra URI parameters in P-A-I as "asserted_params".


git-svn-id: http://yate.null.ro/svn/yate/trunk@6337 acf43c95-373e-0410-b603-e72c3f656dc1
2018-12-30 12:05:13 +00:00
paulc 3bbef56bcc Populate P-Asserted-Identity when the "privacy" parameter is set explicitly to false.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6335 acf43c95-373e-0410-b603-e72c3f656dc1
2018-12-04 11:30:03 +00:00
marian 8cc62785aa Outgoing call: initialize dialog's sequence generator and set it in first generated request to avoid CSeq mismatch if challenged.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6324 acf43c95-373e-0410-b603-e72c3f656dc1
2018-09-17 15:04:38 +00:00
marian 9413305495 Added SIPS URI support.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6321 acf43c95-373e-0410-b603-e72c3f656dc1
2018-07-06 09:37:17 +00:00
paulc 2130ea0404 Added support for following forked transactions' 1xx provisional messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6318 acf43c95-373e-0410-b603-e72c3f656dc1
2018-07-03 12:19:25 +00:00
marian 26be68ef18 Fixed bug: properly destroy (deref) udp listener when removed from config file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6312 acf43c95-373e-0410-b603-e72c3f656dc1
2018-04-23 09:31:16 +00:00
paulc 1dc8d69a8e Added a helper class SocketRef and use it instead of all ad-hoc similar classes.
Fixed a memory leak in Jabber SSL listeners.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6299 acf43c95-373e-0410-b603-e72c3f656dc1
2018-02-20 11:58:02 +00:00
paulc 74d08d409a Added support for late SDP in ACK for reINVITE transactions.
Allow SDP forwarding when the media address is 0.0.0.0 or :: (muted).


git-svn-id: http://yate.null.ro/svn/yate/trunk@6287 acf43c95-373e-0410-b603-e72c3f656dc1
2017-12-18 15:48:17 +00:00
paulc 500e2633b5 Add a Retry-After header to the 503 generated in case of Engine congestion.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6286 acf43c95-373e-0410-b603-e72c3f656dc1
2017-12-14 14:02:51 +00:00
paulc f41bc9e38b Honor sdp_forward setting after receiving 18x/2xx with SDP for an INVITE without SDP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6285 acf43c95-373e-0410-b603-e72c3f656dc1
2017-12-14 13:45:10 +00:00
paulc a730efa009 Added support for sending call with SDP in ACK instead of INVITE in proxy and RTP forward modes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6280 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-16 18:11:05 +00:00
paulc fc2ea0387b Added parsing of diversion counter.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6276 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-01 16:38:38 +00:00
marian 8605cffeb6 Fixed bug: update udp party local address when transport binds for valid lines (transport was not valid when line was created).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6272 acf43c95-373e-0410-b603-e72c3f656dc1
2017-10-06 09:11:32 +00:00
paulc d9cf33f16c Added mapping for reason "moved".
git-svn-id: http://yate.null.ro/svn/yate/trunk@6271 acf43c95-373e-0410-b603-e72c3f656dc1
2017-10-05 16:06:28 +00:00
marian 0025edce41 Reset endpoint pointer when terminated to avoid using it.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6251 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-02 07:51:02 +00:00
paulc c4c9e994f0 Renamed DebugGoOn to DebugCrit so it better matches its purpose.
Swapped order of DebugCall and DebugNote so DebugCall is less visible.
Changed default debug level to DebugNote.
Modified a few inadequate uses of DebugCrit.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +00:00
marian 79afeb1178 Automatic remote party change can now be configured per channel from routing. A remote party (transport) can now be configured for an incoming call from pre-routing. Ignore VIA can now be configured per listener.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6230 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-14 09:14:20 +00:00
marian 33921b778b Added capability to set amr 'fmtp' parameters in SDP session: set them in each offer when rtp forward is not enabled.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6223 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-24 14:36:56 +00:00
marian b96fb5f6d8 Simplified help handling.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6206 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-21 09:59:15 +00:00
marian 850915a27a Added sip command used to drop a tcp/tls transport.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6205 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-19 12:48:55 +00:00
marian c7debdb6b0 Check register interval before authentication: avoid useless auth for interval too brief.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6195 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-29 08:18:06 +00:00
paulc a899f5516e Pick default remote host:port from rURI so that connection_id gets applied.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6191 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-27 16:14:26 +00:00
paulc 9fc75b7437 Added support for RFC3325 P-Asserted-Identity and Privacy: id.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6181 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-02 12:51:47 +00:00
marian 353f7e696d Rollback accidentally commited files in previous commit.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6137 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-15 10:45:40 +00:00
marian 4590f53dc7 Documented tcp idle/keeplive intervals.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6136 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-15 10:35:31 +00:00
marian 20f5ca261b Added separate configurable parameter to outgoing tcp keepalive. Added optional first keepalive interval (for faster first keepalive).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6135 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-15 10:14:14 +00:00
marian 6ca595b59f Force line to emit user.notify when tcp transport is used.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6134 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-14 10:03:36 +00:00
marian 02a214b3d0 Match incoming line by transport when tcp is used.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6132 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-14 07:53:34 +00:00
paulc 813bd8fd18 Allow the "earlymedia" parameter to override a missing source and create provisional RTP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6128 acf43c95-373e-0410-b603-e72c3f656dc1
2016-08-12 12:38:07 +00:00
marian 9efa057328 Detect 'ipv6' default value from bind address when updating an udp transport: avoid listener restart.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6121 acf43c95-373e-0410-b603-e72c3f656dc1
2016-05-27 12:35:39 +00:00
marian a16b32b009 Listener: default 'ipv6' parameter to true if bind address contains ':'.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6119 acf43c95-373e-0410-b603-e72c3f656dc1
2016-05-24 14:01:04 +00:00