Remember:
When a target is set in regexroute processing stops, route message returns with specified target.
Lines following the one returning a target to call are ignored!
Recording a call is not an easy thing to do.
Try this:
.*49351898818077$={
.*=enqueue chan.masquerade;id=${id};message=chan.record;call=wave/record//var/records/inbound_${called}_${caller}$(timestamp).slin;peer=wave/record//var/records/outbound_${called}_${caller}$(timestamp).slin
.*=sip/sip:+49302555880114778@213.XX.XX.XX:6045
}
Notes:
- you MUST masquerade the chan.record message: the internal channel is required in order to attach its input to record
- media directions are not correlated. Each file stores media when is generated by input
- you may search the code for other modules implementing chan.record (I think dbwave can store recordings in a database)
See also:
http://docs.yate.ro/wiki/Chan.recordhttp://docs.yate.ro/wiki/Chan.masquerade