File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
- //-----------------------------------------------------------------------------
1
+ //-----------------------------------------------------------------------------
2
2
// Filename: SIPUserAgent.cs
3
3
//
4
4
// Description: A "full" SIP user agent that encompasses both client and server
@@ -325,6 +325,15 @@ public SIPURI ContactURI
325
325
/// </remarks>
326
326
public event Func < SIPUserField , string , bool > OnTransferRequested ;
327
327
328
+ /// <summary>
329
+ /// Allows the call descriptor for the new call to be customised before a transfer.
330
+ /// </summary>
331
+ /// <remarks>
332
+ /// SIPCallDescriptor: The call descriptor to be customised
333
+ /// SIPRequest: The refer request that initialised the transfer
334
+ /// </remarks>
335
+ public event Action < SIPCallDescriptor , SIPRequest > OnTransferCallDescriptorCreated ;
336
+
328
337
/// <summary>
329
338
/// Fires when the call placed as a result of a transfer request is successfully answered.
330
339
/// The SIPUserField contains the destination that was called for the transfer.
@@ -1218,6 +1227,8 @@ private void ProcessTransferRequest(SIPRequest referRequest)
1218
1227
null ,
1219
1228
null ) ;
1220
1229
1230
+ OnTransferCallDescriptorCreated ? . Invoke ( callDescriptor , referRequest ) ;
1231
+
1221
1232
var transferResult = await Call ( callDescriptor , MediaSession ) . ConfigureAwait ( false ) ;
1222
1233
1223
1234
logger . LogDebug ( $ "Result of calling transfer destination { transferResult } .") ;
You can’t perform that action at this time.
0 commit comments