Record a voice from trunk

  1. 10 years ago

    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.

  2. admin

    28 Nov 2013 Administrator

    It is not possible, fop2 monitors channels, not a logical set over one. SIP/trunk will monitor ANY call named SIP/trunk-xxxx, no matter if they dialed 1234, if it was an inbound call to 4567. For fop2 is just SIP/trunk.

  3. There is nothing impossible in this world ! :)
    I did it with some asterisk routing manipulating.
    If we can't filter traffic we must create trunk only for proper user.
    So i created SIP/trunk_user1 duplicated SIP/trunk_1, created user1 context in asterisk with outgoing rule routing to this
    new trunk_user1. After we have to add channel=SIP/trunk_user1 in extension button and... we can monitor and record remote users on the other PBX ! :P

    P.S. I still think it's possible to filter trunk channels by called numbers. We have field 'extension' in AMI channel definition, so
    we can announce this variable and have something like Channel=SIP/trunkxxx&exten=xxx or Channel=SIP/trunkxxx||yyy where yyy dialed extension.

    P.P.S. I noticed that only one extension in all buttons can display channel=SIP/trunk_1 information. i want to say If we add record channel=SIP/trunk_1 to SIP/user1 and to SIP/user2 extensions in button.cfg file than only one extension will show status of trunk_1. Is there a possibility to see status on both extensions ?

    Best regards,
    Sergio.

or Sign Up to reply!