I have to PBXs connected via SIP trunks to asterisk. And the users of these PBXs have the ability to call each other through asterisk by fop. When the user1 of PBX-1 makes a call to user2 0f PBX-2, asterisk makes two legs over SIP/trunk1 and SIP/trunk2. And after user's answer bridged them. I can see these channels in fop2 trunk button with called extension note like:
SIP/trunk1 1xxxx ( call to user1 ) and
SIP/trunk2 2xxx. ( call to user2)
Is there some variants to record voice from these trunks ( these remote users ) ?
I tried to add channel=SIP/trunk1 to user1 extension button, but in this case it indicates all calls through SIP/trunk1 not only for 1xxx number. How to filter outgoing trunks by dialed extensions ?
I tried to use Local channels, but for some reason i cant bridge two local channels and record them...
Any advise ?
Best regards,
Sergio.