Make paging call to one to one call using ami

hi, everyone.
My system uses asterisk-ami library to access asterisk. Now I need to use AGI+AMI to implement a function: 2222, through paging call a group call number 72222 (including 2223, 1010, 1011) and other extension numbers. After the call is established, I hope that when a certain extension, such as 2223, sends a DTMF signal, 2222 and 2223 can form a one-to-one call. Of course, the original paging will be released. I use Redirect in AMI to transfer the call. This is my code:

    public void redirectCall(String callerNumber, String targetChannel) throws IOException, AuthenticationFailedException, TimeoutException {
        RedirectAction redirectAction = new RedirectAction();
        redirectAction.setChannel("SIP/2222-0000007c");
        redirectAction.setExten("2223");
//        redirectAction.setExtraChannel("SIP/2222");
        redirectAction.setPriority(1);
        redirectAction.setContext("bpbx");
//
        ManagerResponse response = managerConnection.sendAction(redirectAction);
        System.out.println("Redirect response: " + response.getMessage());

Then the actual situation is that when the redirect is executed, 2222 will hang up the channel, but the one-to-one call between 2222-2223 is not opened. What is the specific problem?

You need to specify the second channel, as well, and ensure that the dialplan handles the asymmetry. You would need to use Bridge to complete the connection, not Dial, and it will need the full channel name, not just the dial string.

thanks for your replay, so what’s the second channel, can you give some demo code for tips?

bpbx*CLI> core show channels 
Channel              Location             State   Application(Data)             
SIP/2223-000000e5    (None)               Up      ConfBridge(1428558477)        
SIP/2222-000000e4    72222@bpbx:2         Up      ConfBridge(1428558477)        
CBAnn/1428558477-000 s@default:1          Up      (None)                        
CBAnn/1428558477-000 s@default:1          Up      (None)                        
4 active channels
1 of 20 max active call 
bpbx*CLI> channel redirect SIP/2222-000000e4 2223
Channel 'SIP/2222-000000e4' successfully redirected to 2223
    -- Channel SIP/2222-000000e4 left 'softmix' base-bridge <b9ad3f1f-ae4f-47b4-9e27-87572915e95f>
    -- Channel SIP/2223-000000e5 left 'softmix' base-bridge <b9ad3f1f-ae4f-47b4-9e27-87572915e95f>
    -- Channel CBAnn/1428558477-00000028;2 left 'softmix' base-bridge <b9ad3f1f-ae4f-47b4-9e27-87572915e95f>
    -- AGI Script Executing Application: (Noop) Options: (Page call from 72222)
    -- AGI Script Executing Application: (Hangup) Options: ()
    -- <SIP/2222-000000e4>AGI Script agi://127.0.0.1/route?targ=&frcCtx=Pre-inbound completed, returning 4
  == Spawn extension (bpbx, 72222, 2223) exited non-zero on 'SIP/2222-000000e4'
    -- Auto fallthrough, channel 'SIP/2222-000000e4' status is 'UNKNOWN'

this is my diaplan

[bpbx]
exten => _X.,1,Verbose(1,${CONTEXT}: Routing "${DID}" to route context Pre-inbound)
exten => _X.,n,AGI(agi://127.0.0.1/route?targ=${DID}&frcCtx=Pre-inbound)
exten => _X.,n,Verbose(1,${CONTEXT}: Returned from agi)
exten => _X.,n,Hangup

You can probably only do this with AMI.

It’s ExtraChannel, and you need to use the other Extra options.

https://docs.asterisk.org/Latest_API/API_Documentation/AMI_Actions/Redirect/

I can’t give examples.


        RedirectAction redirectAction = new RedirectAction();
        redirectAction.setChannel("SIP/2223-000000f1");
        redirectAction.setExtraChannel("SIP/2222-000000f0");
        redirectAction.setExten("s");
        redirectAction.setPriority(1);
        redirectAction.setContext("call-conference");
        ManagerResponse response = managerConnection.sendAction(redirectAction);
[call-conference]
exten => s,1,ConfBridge(6777,default_bridge,default_user)

this is my code and log, but it still not work!

[Jun 12 14:32:35] DEBUG[1699581] manager.c: Running action 'Redirect'
[Jun 12 14:32:35] DEBUG[1699581] channel.c: Soft-Hanging (0x02) up channel 'SIP/2223-000000f1'
[Jun 12 14:32:35] DEBUG[1699581] channel.c: Soft-Hanging (0x02) up channel 'SIP/2222-000000f0'
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] bridge_channel.c: Setting 0x7fec2c00cb90(SIP/2223-000000f1) state from:0 to:1
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge_channel.c: Setting 0x7fec30005700(SIP/2222-000000f0) state from:0 to:1
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] res_rtp_asterisk.c: (0x7fec30197ae0) RTP setting the marker bit due to a source update
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] res_rtp_asterisk.c: (0x7fec30197ae0) RTP setting the marker bit due to a source update
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] bridge_channel.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: pulling 0x7fec2c00cb90(SIP/2223-000000f1)
[Jun 12 14:32:35] VERBOSE[1698662][C-000008b8] bridge_channel.c: Channel SIP/2223-000000f1 left 'softmix' base-bridge <2ec68d87-486c-471d-970d-9def5663f5b1>
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] bridge_channel.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: 0x7fec2c00cb90(SIP/2223-000000f1) is leaving softmix technology
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] bridge_channel.c: Channel SIP/2223-000000f1 will survive this bridge; clearing outgoing (dialed) flag
[Jun 12 14:32:35] DEBUG[292788] cdr.c: Finalized CDR for SIP/2222-000000f0 - start 1718202646.542975 answer 1718202646.992986 end 1718202755.778608 dur 109.235 bill 108.785 dispo ANSWERED
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: channel:1718202755.1870, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1870': 0x7fec4001e2e0 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: cache:2059/channel:1718202755.1870, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2059/channel:1718202755.1870': 0x7fec4000d140 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: cache:2059/channel:1718202755.1870, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2059/channel:1718202755.1870': 0x7fec4000d140 destroyed
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: channel:1718202755.1870, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1870': 0x7fec4001e2e0 destroyed
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Reusing ODBC handle 0x7fec540e1900 from class 'asterisk'
[Jun 12 14:32:35] DEBUG[292789] cel_odbc.c: Executing SQL statement: [INSERT INTO cel (eventtype, eventtime, cid_name, cid_num, cid_ani, cid_rdnis, cid_dnid, exten, context, channame, appname, appdata, amaflags, accountcode, uniqueid, linkedid, peer, userdeftype, userfield) VALUES ('BRIDGE_EXIT', {ts '2024-06-12 14:32:35.778608'}, '', '2223', '2223', '', '', 's', 'call-conference', 'SIP/2223-000000f1', 'ConfBridge', '1104736874', 3, '', '1718202646.1862', '1718202646.1860', 'SIP/2222-000000f0,CBAnn/1104736874-0000002f;2', '', '')]
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] res_rtp_asterisk.c: (0x7fec30197ae0) RTP changing ssrc from 155718369 to 784632881 due to a source change
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] bridge_channel.c: Bridge is returning 0x7fec2c00cb90(SIP/2223-000000f1) to read format ulaw
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] channel.c: Channel SIP/2223-000000f1 setting read format path: ulaw -> ulaw
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] bridge_channel.c: Bridge is returning 0x7fec2c00cb90(SIP/2223-000000f1) to write format ulaw
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] channel.c: Channel SIP/2223-000000f1 setting write format path: ulaw -> ulaw
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] res_rtp_asterisk.c: (0x7fec28070890) RTP setting the marker bit due to a source update
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] confbridge/conf_state.c: Changing conference '1104736874' state from MULTI_MARKED to SINGLE_MARKED
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] app_confbridge.c: User SIP/2222-000000f0 is unmuted: user:0 system:0.
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] channel.c: Channel 0x7fec30014be0 'SIP/2223-000000f1' hanging up.  Refs: 2
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] chan_sip.c: Hangup call SIP/2223-000000f1, SIP callid 2ed25f133e301e7b2f77984f2418bcba@120.26.225.188:15060
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] res_rtp_asterisk.c: (0x7fec30197ae0) DTLS srtp - stopped timeout timer'
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] res_rtp_asterisk.c: (0x7fec30197ae0) DTLS srtp - stopped timeout timer'
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] res_rtp_asterisk.c: (0x7fec28070890) RTP setting the marker bit due to a source update
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge_channel.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: pulling 0x7fec30005700(SIP/2222-000000f0)
[Jun 12 14:32:35] VERBOSE[1698661][C-000008b8] bridge_channel.c: Channel SIP/2222-000000f0 left 'softmix' base-bridge <2ec68d87-486c-471d-970d-9def5663f5b1>
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge_channel.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: 0x7fec30005700(SIP/2222-000000f0) is leaving softmix technology
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] res_rtp_asterisk.c: (0x7fec28070890) RTP changing ssrc from 703823549 to 585679740 due to a source change
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] chan_sip.c: Trying to put 'BYE sip:118' onto UDP socket destined for 118.112.171.152:12113
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] channel.c: Channel 0x7fec30014be0 'SIP/2223-000000f1' destroying
[Jun 12 14:32:35] DEBUG[292746] threadpool.c: Increasing threadpool stasis/pool's size by 1
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] stasis.c: Destroying topic. name: cache:2048/channel:1718202646.1862, detail: 
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] stasis.c: Topic 'cache:2048/channel:1718202646.1862': 0x7fec30193ba0 destroyed
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] stasis.c: Destroying topic. name: channel:1718202646.1862, detail: 
[Jun 12 14:32:35] DEBUG[1698662][C-000008b8] stasis.c: Topic 'channel:1718202646.1862': 0x7fec300165f0 destroyed
[Jun 12 14:32:35] DEBUG[292759] chan_sip.c: Checking device state for peer 2223
[Jun 12 14:32:35] DEBUG[292759] devicestate.c: Changing state for SIP/2223 - state 1 (Not in use)
[Jun 12 14:32:35] DEBUG[292788] cdr.c: CDR for SIP/2223-000000f1 is dialed and has no Party B; discarding
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge_channel.c: Bridge is returning 0x7fec30005700(SIP/2222-000000f0) to read format ulaw
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Channel SIP/2222-000000f0 setting read format path: ulaw -> ulaw
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge_channel.c: Bridge is returning 0x7fec30005700(SIP/2222-000000f0) to write format ulaw
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Channel SIP/2222-000000f0 setting write format path: ulaw -> ulaw
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] confbridge/conf_state.c: Changing conference '1104736874' state from SINGLE_MARKED to EMPTY
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] app_confbridge.c: Destroying conference bridge '1104736874'
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Releasing ODBC handle 0x7fec540e1900 into pool
[Jun 12 14:32:35] DEBUG[1698686] channel.c: Channel 0x7fec2c020db0 'CBAnn/1104736874-0000002f;1' hanging up.  Refs: 2
[Jun 12 14:32:35] DEBUG[1698686] channel.c: Channel 0x7fec2c020db0 'CBAnn/1104736874-0000002f;1' destroying
[Jun 12 14:32:35] DEBUG[1698686] stasis.c: Destroying topic. name: cache:2052/channel:1718202646.1865, detail: 
[Jun 12 14:32:35] DEBUG[1698686] stasis.c: Topic 'cache:2052/channel:1718202646.1865': 0x7fec2c01e9b0 destroyed
[Jun 12 14:32:35] DEBUG[1698686] stasis.c: Destroying topic. name: channel:1718202646.1865, detail: 
[Jun 12 14:32:35] DEBUG[1698686] stasis.c: Topic 'channel:1718202646.1865': 0x7fec2c021ad0 destroyed
[Jun 12 14:32:35] DEBUG[292759] devicestate.c: Changing state for CBAnn/1104736874 - state 2 (In use)
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] bridge_channel.c: Setting 0x7fec2c1a9960(CBAnn/1104736874-0000002f;2) state from:0 to:1
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] bridge_channel.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: pulling 0x7fec2c1a9960(CBAnn/1104736874-0000002f;2)
[Jun 12 14:32:35] VERBOSE[1698687][C-000008b8] bridge_channel.c: Channel CBAnn/1104736874-0000002f;2 left 'softmix' base-bridge <2ec68d87-486c-471d-970d-9def5663f5b1>
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] bridge_channel.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: 0x7fec2c1a9960(CBAnn/1104736874-0000002f;2) is leaving softmix technology
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] channel.c: Channel 0x7fec2c01d580 'CBAnn/1104736874-0000002f;2' hanging up.  Refs: 2
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] channel.c: Channel 0x7fec2c01d580 'CBAnn/1104736874-0000002f;2' destroying
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] stasis.c: Destroying topic. name: cache:2053/channel:1718202646.1866, detail: 
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] stasis.c: Topic 'cache:2053/channel:1718202646.1866': 0x7fec2c1aa1e0 destroyed
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] stasis.c: Destroying topic. name: channel:1718202646.1866, detail: 
[Jun 12 14:32:35] DEBUG[1698687][C-000008b8] stasis.c: Topic 'channel:1718202646.1866': 0x7fec2c00d120 destroyed
[Jun 12 14:32:35] DEBUG[292759] devicestate.c: Changing state for CBAnn/1104736874 - state 0 (Unknown)
[Jun 12 14:32:35] DEBUG[292789] cel_radius.c: Unable to create RADIUS record. CEL not recorded!
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: channel:1718202755.1871, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1871': 0x7fec40016340 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: cache:2060/channel:1718202755.1871, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2060/channel:1718202755.1871': 0x7fec4000d140 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: cache:2060/channel:1718202755.1871, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2060/channel:1718202755.1871': 0x7fec4000d140 destroyed
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: channel:1718202755.1871, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1871': 0x7fec40016340 destroyed
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Reusing ODBC handle 0x7fec540e1900 from class 'asterisk'
[Jun 12 14:32:35] DEBUG[292789] cel_odbc.c: Executing SQL statement: [INSERT INTO cel (eventtype, eventtime, cid_name, cid_num, cid_ani, cid_rdnis, cid_dnid, exten, context, channame, appname, appdata, amaflags, accountcode, uniqueid, linkedid, peer, userdeftype, userfield) VALUES ('BRIDGE_EXIT', {ts '2024-06-12 14:32:35.780049'}, '', '72222', '2222', '', '72222', 's', 'call-conference', 'SIP/2222-000000f0', 'ConfBridge', '1104736874', 3, '', '1718202646.1860', '1718202646.1860', '', '', '')]
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: telling all channels to leave the party
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: dissolving bridge with cause 16(Normal Clearing)
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: queueing action type:13 sub:1001
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: actually destroying base bridge, nobody wants it anymore
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: calling base bridge destructor
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: calling softmix technology stop
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: calling softmix technology destructor
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge_softmix.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: Waiting for mixing thread to die.
[Jun 12 14:32:35] DEBUG[1698685] bridge_softmix.c: Bridge 2ec68d87-486c-471d-970d-9def5663f5b1: stopping mixing thread
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Destroying topic. name: cache:2051/bridge:2ec68d87-486c-471d-970d-9def5663f5b1, detail: 
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Topic 'cache:2051/bridge:2ec68d87-486c-471d-970d-9def5663f5b1': 0x7fec2c003950 destroyed
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Destroying topic. name: bridge:2ec68d87-486c-471d-970d-9def5663f5b1, detail: 
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Topic 'bridge:2ec68d87-486c-471d-970d-9def5663f5b1': 0x7fec2c019560 destroyed
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] res_agi.c: SIP/2222-000000f0 hungup
[Jun 12 14:32:35] VERBOSE[1698661][C-000008b8] res_agi.c: AGI Script Executing Application: (Noop) Options: (Page call from 72222)
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Releasing ODBC handle 0x7fec540e1900 into pool
[Jun 12 14:32:35] DEBUG[292789] cel_radius.c: Unable to create RADIUS record. CEL not recorded!
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: channel:1718202755.1872, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1872': 0x7fec40016d30 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: cache:2061/channel:1718202755.1872, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2061/channel:1718202755.1872': 0x7fec40037060 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: cache:2061/channel:1718202755.1872, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2061/channel:1718202755.1872': 0x7fec40037060 destroyed
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: channel:1718202755.1872, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1872': 0x7fec40016d30 destroyed
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Reusing ODBC handle 0x7fec540e1900 from class 'asterisk'
[Jun 12 14:32:35] DEBUG[292789] cel_odbc.c: Executing SQL statement: [INSERT INTO cel (eventtype, eventtime, cid_name, cid_num, cid_ani, cid_rdnis, cid_dnid, exten, context, channame, appname, appdata, amaflags, accountcode, uniqueid, linkedid, peer, userdeftype, userfield) VALUES ('HANGUP', {ts '2024-06-12 14:32:35.780212'}, '', '2223', '2223', '', '', 's', 'call-conference', 'SIP/2223-000000f1', 'AppDial2', '(Outgoing Line)', 3, '', '1718202646.1862', '1718202646.1860', '', '', '')]
[Jun 12 14:32:35] VERBOSE[1698661][C-000008b8] res_agi.c: AGI Script Executing Application: (Hangup) Options: ()
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Soft-Hanging (0x20) up channel 'SIP/2222-000000f0'
[Jun 12 14:32:35] VERBOSE[1698661][C-000008b8] res_agi.c: <SIP/2222-000000f0>AGI Script agi://127.0.0.1/route?targ=&frcCtx=Pre-inbound completed, returning 4
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] pbx.c: Spawn extension (call-conference,s,1) exited non-zero on 'SIP/2222-000000f0'
[Jun 12 14:32:35] VERBOSE[1698661][C-000008b8] pbx.c: Spawn extension (call-conference, s, 1) exited non-zero on 'SIP/2222-000000f0'
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] pbx.c: Launching 'ConfBridge'
[Jun 12 14:32:35] VERBOSE[1698661][C-000008b8] pbx.c: Executing [s@call-conference:1] ConfBridge("SIP/2222-000000f0", "6777,default_bridge,default_user") in new stack
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] app_confbridge.c: Trying to find conference bridge '6777'
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Creating topic. name: bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Topic 'bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1': 0x7fec3000e650 created
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Releasing ODBC handle 0x7fec540e1900 into pool
[Jun 12 14:32:35] DEBUG[292789] cel_radius.c: Unable to create RADIUS record. CEL not recorded!
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: channel:1718202755.1873, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1873': 0x7fec4001e2e0 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: cache:2062/channel:1718202755.1873, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2062/channel:1718202755.1873': 0x7fec40016340 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: cache:2062/channel:1718202755.1873, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2062/channel:1718202755.1873': 0x7fec40016340 destroyed
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: channel:1718202755.1873, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1873': 0x7fec4001e2e0 destroyed
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Reusing ODBC handle 0x7fec540e1900 from class 'asterisk'
[Jun 12 14:32:35] DEBUG[292789] cel_odbc.c: Executing SQL statement: [INSERT INTO cel (eventtype, eventtime, cid_name, cid_num, cid_ani, cid_rdnis, cid_dnid, exten, context, channame, appname, appdata, amaflags, accountcode, uniqueid, linkedid, peer, userdeftype, userfield) VALUES ('CHAN_END', {ts '2024-06-12 14:32:35.780223'}, '', '2223', '2223', '', '', 's', 'call-conference', 'SIP/2223-000000f1', 'AppDial2', '(Outgoing Line)', 3, '', '1718202646.1862', '1718202646.1860', '', '', '')]
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Creating topic. name: cache:2063/bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Topic 'cache:2063/bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1': 0x7fec301970b0 created
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge technology native_rtp does not have any capabilities we want.
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge technology holding_bridge does not have any capabilities we want.
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge technology simple_bridge does not have any capabilities we want.
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Chose bridge technology softmix
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: calling softmix technology constructor
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: calling softmix technology start
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Creating topic. name: channel:1718202755.1874, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Topic 'channel:1718202755.1874': 0x7fec3000ac60 created
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Creating topic. name: cache:2064/channel:1718202755.1874, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Topic 'cache:2064/channel:1718202755.1874': 0x7fec30195c60 created
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Channel 0x7fec3019e6c0 'CBAnn/6777-00000030;1' allocated
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Creating topic. name: channel:1718202755.1875, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Topic 'channel:1718202755.1875': 0x7fec3024a590 created
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Creating topic. name: cache:2065/channel:1718202755.1875, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] stasis.c: Topic 'cache:2065/channel:1718202755.1875': 0x7fec3024a760 created
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Channel 0x7fec30248f90 'CBAnn/6777-00000030;2' allocated
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge_roles.c: Set role 'announcer'
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] app_confbridge.c: Created announcer channel 'CBAnn/6777-00000030;1' to conference bridge '6777'
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_channel.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: 0x7fec3019ce80(CBAnn/6777-00000030;2) is joining
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_channel.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: pushing 0x7fec3019ce80(CBAnn/6777-00000030;2)
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_roles.c: Set role 'announcer'
[Jun 12 14:32:35] VERBOSE[1700113][C-000008b8] bridge_channel.c: Channel CBAnn/6777-00000030;2 joined 'softmix' base-bridge <a1fbbda1-7cb1-4ae2-9175-3db008ca85d1>
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: 0x7fec3019ce80(CBAnn/6777-00000030;2) is joining softmix technology
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_softmix.c:  CBAnn/6777-00000030;2:
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] channel.c: Channel CBAnn/6777-00000030;2 setting write format path: slin -> slin
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] dsp.c: Setup tone 1100 Hz, 500 ms, block_size=160, hits_required=21
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] dsp.c: Setup tone 2100 Hz, 2600 ms, block_size=160, hits_required=116
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_softmix.c:  
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_softmix.c:  CBAnn/6777-00000030;2: 
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_softmix.c:  CBAnn/6777-00000030;2: Not in SFU mode
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] app_confbridge.c: Created conference '6777' and linked to container.
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] confbridge/conf_state.c: Changing conference '6777' state from EMPTY to SINGLE
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] app_confbridge.c: User SIP/2222-000000f0 is unmuted: user:0 system:0.
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] confbridge/conf_state.c: Changing conference '6777' state from SINGLE to EMPTY
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] app_confbridge.c: Destroying conference bridge '6777'
[Jun 12 14:32:35] DEBUG[1700112] channel.c: Channel 0x7fec3019e6c0 'CBAnn/6777-00000030;1' hanging up.  Refs: 2
[Jun 12 14:32:35] DEBUG[1700112] channel.c: Channel 0x7fec3019e6c0 'CBAnn/6777-00000030;1' destroying
[Jun 12 14:32:35] DEBUG[1700112] stasis.c: Destroying topic. name: cache:2064/channel:1718202755.1874, detail: 
[Jun 12 14:32:35] DEBUG[1700112] stasis.c: Topic 'cache:2064/channel:1718202755.1874': 0x7fec30195c60 destroyed
[Jun 12 14:32:35] DEBUG[1700112] stasis.c: Destroying topic. name: channel:1718202755.1874, detail: 
[Jun 12 14:32:35] DEBUG[1700112] stasis.c: Topic 'channel:1718202755.1874': 0x7fec3000ac60 destroyed
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_channel.c: Setting 0x7fec3019ce80(CBAnn/6777-00000030;2) state from:0 to:1
[Jun 12 14:32:35] DEBUG[292759] devicestate.c: Changing state for CBAnn/6777 - state 2 (In use)
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_channel.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: pulling 0x7fec3019ce80(CBAnn/6777-00000030;2)
[Jun 12 14:32:35] VERBOSE[1700113][C-000008b8] bridge_channel.c: Channel CBAnn/6777-00000030;2 left 'softmix' base-bridge <a1fbbda1-7cb1-4ae2-9175-3db008ca85d1>
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] bridge_channel.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: 0x7fec3019ce80(CBAnn/6777-00000030;2) is leaving softmix technology
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] channel.c: Channel 0x7fec30248f90 'CBAnn/6777-00000030;2' hanging up.  Refs: 2
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] channel.c: Channel 0x7fec30248f90 'CBAnn/6777-00000030;2' destroying
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: telling all channels to leave the party
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: dissolving bridge with cause 16(Normal Clearing)
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: queueing action type:13 sub:1001
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: actually destroying base bridge, nobody wants it anymore
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: calling base bridge destructor
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: calling softmix technology stop
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: calling softmix technology destructor
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] bridge_softmix.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: Waiting for mixing thread to die.
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] stasis.c: Destroying topic. name: cache:2065/channel:1718202755.1875, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] pbx.c: Spawn extension (call-conference,s,1) exited non-zero on 'SIP/2222-000000f0'
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] stasis.c: Topic 'cache:2065/channel:1718202755.1875': 0x7fec3024a760 destroyed
[Jun 12 14:32:35] VERBOSE[1698661][C-000008b8] pbx.c: Spawn extension (call-conference, s, 1) exited non-zero on 'SIP/2222-000000f0'
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] stasis.c: Destroying topic. name: channel:1718202755.1875, detail: 
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Soft-Hanging (0x10) up channel 'SIP/2222-000000f0'
[Jun 12 14:32:35] DEBUG[292789] res_odbc.c: Releasing ODBC handle 0x7fec540e1900 into pool
[Jun 12 14:32:35] DEBUG[292789] cel_radius.c: Unable to create RADIUS record. CEL not recorded!
[Jun 12 14:32:35] DEBUG[1700113][C-000008b8] stasis.c: Topic 'channel:1718202755.1875': 0x7fec3024a590 destroyed
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Channel 0x7fec282cd010 'SIP/2222-000000f0' hanging up.  Refs: 2
[Jun 12 14:32:35] DEBUG[1700111][C-000008b8] bridge_softmix.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: starting mixing thread
[Jun 12 14:32:35] DEBUG[1700111][C-000008b8] bridge_softmix.c: Bridge a1fbbda1-7cb1-4ae2-9175-3db008ca85d1: stopping mixing thread
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Destroying topic. name: cache:2063/bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1, detail: 
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Topic 'cache:2063/bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1': 0x7fec301970b0 destroyed
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Destroying topic. name: bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1, detail: 
[Jun 12 14:32:35] DEBUG[292757][C-000008b8] stasis.c: Topic 'bridge:a1fbbda1-7cb1-4ae2-9175-3db008ca85d1': 0x7fec3000e650 destroyed
[Jun 12 14:32:35] DEBUG[292759] devicestate.c: Changing state for CBAnn/6777 - state 0 (Unknown)
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] chan_sip.c: Hangup call SIP/2222-000000f0, SIP callid sN5pKcUtcu0hh4HpzhUIZA..
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] res_rtp_asterisk.c: (0x7fec28070890) DTLS srtp - stopped timeout timer'
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] res_rtp_asterisk.c: (0x7fec28070890) DTLS srtp - stopped timeout timer'
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] chan_sip.c: Trying to put 'BYE sip:222' onto UDP socket destined for 118.112.171.152:12257
[Jun 12 14:32:35] DEBUG[1698661][C-000008b8] channel.c: Channel 0x7fec282cd010 'SIP/2222-000000f0' destroying
[Jun 12 14:32:35] DEBUG[292822] chan_sip.c: Session timer stopped: 105 - sN5pKcUtcu0hh4HpzhUIZA..
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: channel:1718202755.1876, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'channel:1718202755.1876': 0x7fec4000d140 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Creating topic. name: cache:2066/channel:1718202755.1876, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2066/channel:1718202755.1876': 0x7fec40016340 created
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Destroying topic. name: cache:2066/channel:1718202755.1876, detail: 
[Jun 12 14:32:35] DEBUG[292789] stasis.c: Topic 'cache:2066/channel:1718202755.1876': 0x7fec40016340 destroyed

There have been a lot of changes since I did anything like this, also I used Bridge. asymmetrically, and there was no AGI involvement. I think that it would take me too much time to, work out what is going wrong now.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.