Chan.replaced
From Yate Documentation
(Difference between revisions)
(Created page with " '''chan.replaced''' is used to notify other modules when the topology of a chain of circuits has changed. Currently only the callfork module emits this messag...") |
|||
(One intermediate revision by one user not shown) | |||
Line 16: | Line 16: | ||
For efficiency reason more than one channel replacement can be notified in a single message. | For efficiency reason more than one channel replacement can be notified in a single message. | ||
− | Additional indexed parameters id.1, newid.1, peerid.1, id.2, newid.2 and so on can be added. The index must increment by exactly one - there can be no gaps or duplicates. | + | |
+ | Additional indexed parameters '''id.1''', '''newid.1''', '''peerid.1''', '''id.2''', '''newid.2''' and so on can be added. The index must increment by exactly one - there can be no gaps or duplicates. | ||
===Example=== | ===Example=== | ||
Line 33: | Line 34: | ||
param['newid.1'] = 'sip/8' | param['newid.1'] = 'sip/8' | ||
param['peerid.1'] = 'sip/9' | param['peerid.1'] = 'sip/9' | ||
+ | |||
+ | |||
+ | '''See also''' | ||
+ | |||
+ | * [[chan.transfer]] |
Latest revision as of 12:31, 21 January 2013
chan.replaced is used to notify other modules when the topology of a chain of circuits has changed. Currently only the callfork module emits this message.
This message should be sent as broadcast, multiple modules may need to handle it.
[edit] Parameters
- id
- ID of the channel being replaced
- newid
- ID of the new channel being connected
- peerid
- ID of the peer channel to those being changed (optional)
[edit] Additional parameters
For efficiency reason more than one channel replacement can be notified in a single message.
Additional indexed parameters id.1, newid.1, peerid.1, id.2, newid.2 and so on can be added. The index must increment by exactly one - there can be no gaps or duplicates.
[edit] Example
0000538.045312 <callfork:CALL> Call 'sip/8' answered on 'fork/2/2' by 'sip/9' Sniffed 'chan.replaced' time=1300967364.045343 (broadcast) thread=0x1439eb0 'Engine Worker' data=(nil) retval='(null)' param['id'] = 'fork/2' param['newid'] = 'sip/9' param['peerid'] = 'sip/8' param['id.1'] = 'fork/2/2' param['newid.1'] = 'sip/8' param['peerid.1'] = 'sip/9'
See also