vicimikec / ViciPhone

A WebRTC Phone For Vicidial
GNU Affero General Public License v3.0
32 stars 39 forks source link

Automatically Login Agent when web phone is loaded #1

Closed viciexperts closed 1 year ago

viciexperts commented 4 years ago

Hello, Thank you for this great project. If possible can you please these lines to vici_phone.js on the event ua.on('registered', function () {

//added By ViciExperts to automatically login agent as soon as the webphone is loaded. try { var webphone_loaded = parent.document.getElementById('webphone_loaded'); if(webphone_loaded){

                    parent.document.getElementById('webphone_loaded').value = 1;
                    parent.NoneInSessionCalL('LOGIN');

                }                       
        }catch(err){console.log(err);}

See attached file: vici_phone.txt

This will automatically Login Agent when web phone is loaded. Thank you

ccabrerar commented 4 years ago

Seems to me the element parent.document.getElementById('webphone_loaded'); is undefined, so the if clause never gets loaded.

I ended up adding this code

        if ( auto_login ) {
            try {
                parent.NoneInSessionCalL('LOGIN');
            }
            catch(err){console.log(err);}
        }

And it seems to work fine. The auto_login variable is defined so that a user can disable this feature by defining it in viciphone.php (but I enabled it as a default).

You may try these changes inside of my current fork Viciphone v2 in https://github.com/ccabrerar/viciphone

viciexperts commented 4 years ago

I added the webphone loaded element to the vicidial.php.  I'll submit them a change when you implement this one.Thank you very much Best Regards,Omar Rodríguez -------- Mensaje original --------De: Christian Cabrera notifications@github.com Fecha: 14/6/2020 4:39 p. m. (GMT-04:00) A: vicimikec/ViciPhone ViciPhone@noreply.github.com CC: viciexperts git@viciexperts.com, Author author@noreply.github.com Asunto: Re: [vicimikec/ViciPhone] Automatically Login Agent when web phone is loaded (#1) Seems to me the element parent.document.getElementById('webphone_loaded'); is undefined, so the if clause never gets loaded. I ended up adding this code if ( auto_login ) { try { parent.NoneInSessionCalL('LOGIN'); } catch(err){console.log(err);} }

And it seems to work fine. The auto_login variable is defined so that a user can disable this feature by defining it in viciphone.php (but I enabled it as a default). You may try these changes inside of my current fork Viciphone v2 in https://github.com/ccabrerar/viciphone

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/vicimikec/ViciPhone/issues/1#issuecomment-643819163", "url": "https://github.com/vicimikec/ViciPhone/issues/1#issuecomment-643819163", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

andicrb76 commented 3 years ago

there is problem with auto_login, if using auto_dial_out, call connected but no audio. I am using vp_interpreter.php btw.

ccabrerar commented 3 years ago

I cannot verify that without console logs, but I'm almost certain is a local problem, since we have multiple clients using Viciphone on cloud provided servers (fixed public IP) and audio is not an issue.

Be sure to have rtcp_mux=yes configured in SIP.

andicrb76 commented 3 years ago

Dear Sir,

i'm sorry lil bit hectic for a few days , i will send the logs as soon as posible.

Best Regards

Andi

andicrb76 commented 3 years ago

Dear Sir, I send you the log. Specification:

And FYI, i have tested this asterisk using SIPML5 but i can hear audio bothway. I will send SIPML5 log in next post

Best Regards

Andi

[root@freepbx ~]# asterisk -rvvv Asterisk 16.15.1, Copyright (C) 1999 - 2018, Digium, Inc. and others. Created by Mark Spencer markster@digium.com Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details.

Connected to Asterisk 16.15.1 currently running on freepbx (pid = 1914) == DTLS ECDH initialized (automatic), faster PFS enabled == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [08187654321@from-internal:1] Macro("SIP/1000-0000000a", "user-callerid,LIMIT,EXTERNAL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/1000-0000000a", "TOUCH_MONITOR=1617342504.10") in new stack -- Executing [s@macro-user-callerid:2] Set("SIP/1000-0000000a", "AMPUSER=1000") in new stack -- Executing [s@macro-user-callerid:3] Set("SIP/1000-0000000a", "HOTDESCKCHAN=1000-0000000a") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/1000-0000000a", "HOTDESKEXTEN=1000") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/1000-0000000a", "HOTDESKCALL=0") in new stack -- Executing [s@macro-user-callerid:6] ExecIf("SIP/1000-0000000a", "0?Set(HOTDESKCALL=1)") in new stack -- Executing [s@macro-user-callerid:7] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(name)=)") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("SIP/1000-0000000a", "0?report") in new stack -- Executing [s@macro-user-callerid:9] ExecIf("SIP/1000-0000000a", "1?Set(REALCALLERIDNUM=1000)") in new stack -- Executing [s@macro-user-callerid:10] Set("SIP/1000-0000000a", "AMPUSER=1000") in new stack -- Executing [s@macro-user-callerid:11] GotoIf("SIP/1000-0000000a", "0?limit") in new stack -- Executing [s@macro-user-callerid:12] Set("SIP/1000-0000000a", "AMPUSERCIDNAME=1000") in new stack -- Executing [s@macro-user-callerid:13] ExecIf("SIP/1000-0000000a", "0?Set(CIDMASQUERADING=TRUE)") in new stack -- Executing [s@macro-user-callerid:14] GotoIf("SIP/1000-0000000a", "0?report") in new stack -- Executing [s@macro-user-callerid:15] Set("SIP/1000-0000000a", "AMPUSERCID=1000") in new stack -- Executing [s@macro-user-callerid:16] Set("SIP/1000-0000000a", "DIAL_OPTIONS=HhTtr") in new stack -- Executing [s@macro-user-callerid:17] Set("SIP/1000-0000000a", "CALLERID(all)="1000" <1000>") in new stack -- Executing [s@macro-user-callerid:18] Set("SIP/1000-0000000a", "HOTDESCKCHAN=1000-0000000a") in new stack -- Executing [s@macro-user-callerid:19] Set("SIP/1000-0000000a", "HOTDESKEXTEN=1000") in new stack -- Executing [s@macro-user-callerid:20] Set("SIP/1000-0000000a", "HOTDESKCALL=0") in new stack -- Executing [s@macro-user-callerid:21] ExecIf("SIP/1000-0000000a", "0?Set(HOTDESKCALL=1)") in new stack -- Executing [s@macro-user-callerid:22] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(name)=)") in new stack -- Executing [s@macro-user-callerid:23] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(all)="" < >)") in new stack -- Executing [s@macro-user-callerid:24] ExecIf("SIP/1000-0000000a", "0?Set(CUSDIAL=)") in new stack -- Executing [s@macro-user-callerid:25] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(all)="1000" <1000>)") in new stack -- Executing [s@macro-user-callerid:26] GotoIf("SIP/1000-0000000a", "0?limit") in new stack -- Executing [s@macro-user-callerid:27] ExecIf("SIP/1000-0000000a", "1?Set(GROUP(concurrency_limit)=1000)") in new stack -- Executing [s@macro-user-callerid:28] ExecIf("SIP/1000-0000000a", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:29] NoOp("SIP/1000-0000000a", "Macro Depth is 1") in new stack -- Executing [s@macro-user-callerid:30] GotoIf("SIP/1000-0000000a", "1?report2:macroerror") in new stack -- Goto (macro-user-callerid,s,31) -- Executing [s@macro-user-callerid:31] GotoIf("SIP/1000-0000000a", "1?continue") in new stack -- Goto (macro-user-callerid,s,50) -- Executing [s@macro-user-callerid:50] Set("SIP/1000-0000000a", "CALLERID(number)=1000") in new stack -- Executing [s@macro-user-callerid:51] Set("SIP/1000-0000000a", "CALLERID(name)=1000") in new stack -- Executing [s@macro-user-callerid:52] GotoIf("SIP/1000-0000000a", "0?cnum") in new stack -- Executing [s@macro-user-callerid:53] Set("SIP/1000-0000000a", "CDR(cnam)=1000") in new stack -- Executing [s@macro-user-callerid:54] Set("SIP/1000-0000000a", "CDR(cnum)=1000") in new stack -- Executing [s@macro-user-callerid:55] Set("SIP/1000-0000000a", "CHANNEL(language)=en") in new stack -- Executing [08187654321@from-internal:2] Gosub("SIP/1000-0000000a", "sub-record-check,s,1(out,08187654321,dontcare)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/1000-0000000a", "0?initialized") in new stack -- Executing [s@sub-record-check:2] Set("SIP/1000-0000000a", "REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:3] Set("SIP/1000-0000000a", "NOW=1617342504") in new stack -- Executing [s@sub-record-check:4] Set("SIP/1000-0000000a", "DAY=02") in new stack -- Executing [s@sub-record-check:5] Set("SIP/1000-0000000a", "MONTH=04") in new stack -- Executing [s@sub-record-check:6] Set("SIP/1000-0000000a", "YEAR=2021") in new stack -- Executing [s@sub-record-check:7] Set("SIP/1000-0000000a", "TIMESTR=20210402-124824") in new stack -- Executing [s@sub-record-check:8] Set("SIP/1000-0000000a", "FROMEXTEN=1000") in new stack -- Executing [s@sub-record-check:9] Set("SIP/1000-0000000a", "MON_FMT=wav") in new stack -- Executing [s@sub-record-check:10] NoOp("SIP/1000-0000000a", "Recordings initialized") in new stack -- Executing [s@sub-record-check:11] ExecIf("SIP/1000-0000000a", "0?Set(ARG3=dontcare)") in new stack -- Executing [s@sub-record-check:12] Set("SIP/1000-0000000a", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/1000-0000000a", "0?Set(REC_STATUS=NO)") in new stack -- Executing [s@sub-record-check:14] GotoIf("SIP/1000-0000000a", "3?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [s@sub-record-check:17] GotoIf("SIP/1000-0000000a", "1?sub-record-check,out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out@sub-record-check:1] NoOp("SIP/1000-0000000a", "Outbound Recording Check from 1000 to 08187654321") in new stack -- Executing [out@sub-record-check:2] Set("SIP/1000-0000000a", "RECMODE=yes") in new stack -- Executing [out@sub-record-check:3] ExecIf("SIP/1000-0000000a", "0?Goto(routewins)") in new stack -- Executing [out@sub-record-check:4] ExecIf("SIP/1000-0000000a", "0?Goto(routewins)") in new stack -- Executing [out@sub-record-check:5] Gosub("SIP/1000-0000000a", "recordcheck,1(yes,out,08187654321)") in new stack -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/1000-0000000a", "Starting recording check against yes") in new stack -- Executing [recordcheck@sub-record-check:2] Goto("SIP/1000-0000000a", "yes") in new stack -- Goto (sub-record-check,recordcheck,9) -- Executing [recordcheck@sub-record-check:9] ExecIf("SIP/1000-0000000a", "0?Return()") in new stack -- Executing [recordcheck@sub-record-check:10] Set("SIP/1000-0000000a", "REC_POLICY_MODE=YES") in new stack -- Executing [recordcheck@sub-record-check:11] Goto("SIP/1000-0000000a", "startrec") in new stack -- Goto (sub-record-check,recordcheck,16) -- Executing [recordcheck@sub-record-check:16] NoOp("SIP/1000-0000000a", "Starting recording: out, 08187654321") in new stack -- Executing [recordcheck@sub-record-check:17] Set("SIP/1000-0000000a", "CALLFILENAME=out-08187654321-1000-20210402-124824-1617342504.10") in new stack -- Executing [recordcheck@sub-record-check:18] MixMonitor("SIP/1000-0000000a", "2021/04/02/out-08187654321-1000-20210402-124824-1617342504.10.wav,abi(LOCAL_MIXMON_ID),") in new stack -- Executing [recordcheck@sub-record-check:19] Set("SIP/1000-0000000a", "MIXMON_ID=0x7f69a405bcd0") in new stack -- Executing [recordcheck@sub-record-check:20] Set("SIP/1000-0000000a", "RECORD_ID=SIP/1000-0000000a") in new stack -- Executing [recordcheck@sub-record-check:21] Set("SIP/1000-0000000a", "__REC_STATUS=RECORDING") in new stack -- Executing [recordcheck@sub-record-check:22] Set("SIP/1000-0000000a", "CDR(recordingfile)=out-08187654321-1000-20210402-124824-1617342504.10.wav") in new stack -- Executing [recordcheck@sub-record-check:23] Return("SIP/1000-0000000a", "") in new stack -- Executing [out@sub-record-check:6] Return("SIP/1000-0000000a", "") in new stack -- Executing [08187654321@from-internal:3] ExecIf("SIP/1000-0000000a", "0 ?Set(CDR(accountcode)=)") in new stack -- Executing [08187654321@from-internal:4] Set("SIP/1000-0000000a", "_ROUTEID=2") in new stack -- Executing [08187654321@from-internal:5] Set("SIP/1000-0000000a", "_ROUTENAME=CARRIER") in new stack -- Executing [08187654321@from-internal:6] Set("SIP/1000-0000000a", "MOHCLASS=default") in new stack -- Executing [08187654321@from-internal:7] Set("SIP/1000-0000000a", "_CALLERIDNAMEINTERNAL=1000") in new stack -- Executing [08187654321@from-internal:8] Set("SIP/1000-0000000a", "_CALLERIDNUMINTERNAL=1000") in new stack -- Executing [08187654321@from-internal:9] Set("SIP/1000-0000000a", "_EMAILNOTIFICATION=FALSE") in new stack -- Executing [08187654321@from-internal:10] Set("SIP/1000-0000000a", "_NODEST=") in new stack -- Executing [08187654321@from-internal:11] Macro("SIP/1000-0000000a", "dialout-trunk,1,08187654321,,on") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/1000-0000000a", "DIAL_TRUNK=1") in new stack -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/1000-0000000a", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack -- Executing [s@macro-dialout-trunk:3] GosubIf("SIP/1000-0000000a", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:4] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(num)=1000)") in new stack -- Executing [s@macro-dialout-trunk:5] GotoIf("SIP/1000-0000000a", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/1000-0000000a", "DIAL_NUMBER=08187654321") in new stack -- Executing [s@macro-dialout-trunk:7] Set("SIP/1000-0000000a", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack -- Executing [s@macro-dialout-trunk:8] Set("SIP/1000-0000000a", "OUTBOUND_GROUP=OUT_1") in new stack -- Executing [s@macro-dialout-trunk:9] Set("SIP/1000-0000000a", "DIAL_TRUNK_OPTIONS=T") in new stack -- Executing [s@macro-dialout-trunk:10] GotoIf("SIP/1000-0000000a", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,12) -- Executing [s@macro-dialout-trunk:12] GotoIf("SIP/1000-0000000a", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:13] Macro("SIP/1000-0000000a", "outbound-callerid,1") in new stack -- Executing [s@macro-outbound-callerid:1] NoOp("SIP/1000-0000000a", "1000") in new stack -- Executing [s@macro-outbound-callerid:2] NoOp("SIP/1000-0000000a", "") in new stack -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/1000-0000000a", "off") in new stack -- Executing [s@macro-outbound-callerid:4] ExecIf("SIP/1000-0000000a", "0?Set(CALLERPRES(name-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:5] ExecIf("SIP/1000-0000000a", "0?Set(CALLERPRES(num-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:6] Set("SIP/1000-0000000a", "HOTDESCKCHAN=1000-0000000a") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/1000-0000000a", "HOTDESKEXTEN=1000") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/1000-0000000a", "HOTDESKCALL=0") in new stack -- Executing [s@macro-outbound-callerid:9] ExecIf("SIP/1000-0000000a", "0?Set(HOTDESKCALL=1)") in new stack -- Executing [s@macro-outbound-callerid:10] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(name)=)") in new stack -- Executing [s@macro-outbound-callerid:11] Set("SIP/1000-0000000a", "ALLOWTHISROUTE=NO") in new stack -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1000-0000000a", "0?Set(ALLOWTHISROUTE=YES)") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1000-0000000a", "0?Hangup()") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1000-0000000a", "0?Set(REALCALLERIDNUM=1000)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1000-0000000a", "0?Set(AMPUSER=1000)") in new stack -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/1000-0000000a", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,20) -- Executing [s@macro-outbound-callerid:20] Set("SIP/1000-0000000a", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:21] Set("SIP/1000-0000000a", "EMERGENCYCID=") in new stack == Begin MixMonitor Recording SIP/1000-0000000a -- Executing [s@macro-outbound-callerid:22] ExecIf("SIP/1000-0000000a", "0?Set(EMERGENCYCID=)") in new stack -- Executing [s@macro-outbound-callerid:23] Set("SIP/1000-0000000a", "TRUNKOUTCID=") in new stack -- Executing [s@macro-outbound-callerid:24] GotoIf("SIP/1000-0000000a", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,30) -- Executing [s@macro-outbound-callerid:30] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:31] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:32] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:33] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(all)=1000)") in new stack -- Executing [s@macro-outbound-callerid:34] ExecIf("SIP/1000-0000000a", "0?Set(CALLERID(all)=1000)") in new stack -- Executing [s@macro-outbound-callerid:35] Set("SIP/1000-0000000a", "TIOHIDE=no") in new stack -- Executing [s@macro-outbound-callerid:36] ExecIf("SIP/1000-0000000a", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:37] ExecIf("SIP/1000-0000000a", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:38] ExecIf("SIP/1000-0000000a", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:39] ExecIf("SIP/1000-0000000a", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:40] Set("SIP/1000-0000000a", "CDR(outbound_cnum)=1000") in new stack -- Executing [s@macro-outbound-callerid:41] Set("SIP/1000-0000000a", "CDR(outbound_cnam)=1000") in new stack -- Executing [s@macro-dialout-trunk:14] GosubIf("SIP/1000-0000000a", "1?sub-flp-1,s,1()") in new stack -- Executing [s@sub-flp-1:1] ExecIf("SIP/1000-0000000a", "1?Set(TARGET_FLP_1=628187654321)") in new stack -- Executing [s@sub-flp-1:2] GotoIf("SIP/1000-0000000a", "1?match") in new stack -- Goto (sub-flp-1,s,8) -- Executing [s@sub-flp-1:8] Set("SIP/1000-0000000a", "DIAL_NUMBER=628187654321") in new stack -- Executing [s@sub-flp-1:9] Return("SIP/1000-0000000a", "") in new stack -- Executing [s@macro-dialout-trunk:15] Set("SIP/1000-0000000a", "OUTNUM=17048628187654321") in new stack -- Executing [s@macro-dialout-trunk:16] Set("SIP/1000-0000000a", "custom=SIP/SSW71") in new stack -- Executing [s@macro-dialout-trunk:17] ExecIf("SIP/1000-0000000a", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack -- Executing [s@macro-dialout-trunk:18] ExecIf("SIP/1000-0000000a", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack -- Executing [s@macro-dialout-trunk:19] Macro("SIP/1000-0000000a", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1000-0000000a", "") in new stack -- Executing [s@macro-dialout-trunk:20] GotoIf("SIP/1000-0000000a", "0?skipcrm") in new stack -- Executing [s@macro-dialout-trunk:21] Set("SIP/1000-0000000a", "CRM_DIRECTION=OUTBOUND") in new stack -- Executing [s@macro-dialout-trunk:22] Set("SIP/1000-0000000a", "CRM_DESTINATION=17048628187654321") in new stack -- Executing [s@macro-dialout-trunk:23] Set("SIP/1000-0000000a", "__CRM_SOURCE=1000") in new stack -- Executing [s@macro-dialout-trunk:24] AGI("SIP/1000-0000000a", "sangomacrm.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi -- <SIP/1000-0000000a>AGI Script sangomacrm.agi completed, returning 0 -- Executing [s@macro-dialout-trunk:25] Set("SIP/1000-0000000a", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack -- Executing [s@macro-dialout-trunk:26] NoOp("SIP/1000-0000000a", "CRM Finished") in new stack -- Executing [s@macro-dialout-trunk:27] GotoIf("SIP/1000-0000000a", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/1000-0000000a", "1?Set(CONNECTEDLINE(num,i)=628187654321)") in new stack -- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/1000-0000000a", "1?Set(CONNECTEDLINE(name,i)=CID:1000)") in new stack -- Executing [s@macro-dialout-trunk:30] ExecIf("SIP/1000-0000000a", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)1000)") in new stack -- Executing [s@macro-dialout-trunk:31] GotoIf("SIP/1000-0000000a", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:32] ExecIf("SIP/1000-0000000a", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack -- Executing [s@macro-dialout-trunk:33] Set("SIP/1000-0000000a", "HASH(SIPHEADERS,Alert-Info)=unset") in new stack -- Executing [s@macro-dialout-trunk:34] Dial("SIP/1000-0000000a", "SIP/SSW71/17048628187654321,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^628187654321^08187654321^1^1617342504^1000^1000)") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- SIP/SSW71-0000000b Internal Gosub(func-apply-sipheaders,s,1(1)) start -- Executing [s@func-apply-sipheaders:1] ExecIf("SIP/SSW71-0000000b", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack -- Executing [s@func-apply-sipheaders:2] NoOp("SIP/SSW71-0000000b", "Applying SIP Headers to channel SIP/SSW71-0000000b") in new stack -- Executing [s@func-apply-sipheaders:3] Set("SIP/SSW71-0000000b", "TECH=SIP") in new stack -- Executing [s@func-apply-sipheaders:4] Set("SIP/SSW71-0000000b", "SIPHEADERKEYS=Alert-Info") in new stack -- Executing [s@func-apply-sipheaders:5] While("SIP/SSW71-0000000b", "1") in new stack -- Executing [s@func-apply-sipheaders:6] Set("SIP/SSW71-0000000b", "sipheader=unset") in new stack -- Executing [s@func-apply-sipheaders:7] ExecIf("SIP/SSW71-0000000b", "1?SIPRemoveHeader(Alert-Info:)") in new stack -- Executing [s@func-apply-sipheaders:8] ExecIf("SIP/SSW71-0000000b", "0?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack -- Executing [s@func-apply-sipheaders:9] ExecIf("SIP/SSW71-0000000b", "0?Set(sipheader=http://127.0.0.1;info=unset)") in new stack -- Executing [s@func-apply-sipheaders:10] ExecIf("SIP/SSW71-0000000b", "0?Set(sipheader=http://127.0.0.1unset)") in new stack -- Executing [s@func-apply-sipheaders:11] ExecIf("SIP/SSW71-0000000b", "0?SIPAddHeader(Alert-Info:unset)") in new stack -- Executing [s@func-apply-sipheaders:12] ExecIf("SIP/SSW71-0000000b", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack -- Executing [s@func-apply-sipheaders:13] EndWhile("SIP/SSW71-0000000b", "") in new stack -- Executing [s@func-apply-sipheaders:5] While("SIP/SSW71-0000000b", "0") in new stack -- Executing [s@func-apply-sipheaders:14] Return("SIP/SSW71-0000000b", "") in new stack == Spawn extension (from-trunk, 08187654321, 1) exited non-zero on 'SIP/SSW71-0000000b' -- SIP/SSW71-0000000b Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL= -- Called SIP/SSW71/17048628187654321 -- SIP/SSW71-0000000b answered SIP/1000-0000000a -- SIP/SSW71-0000000b Internal Gosub(sub-send-obroute-email,s,1(628187654321,08187654321,1,1617342504,1000,1000)) start -- Executing [s@sub-send-obroute-email:1] GotoIf("SIP/SSW71-0000000b", "0?sendEmail") in new stack -- Executing [s@sub-send-obroute-email:2] NoOp("SIP/SSW71-0000000b", "email notifications disabled..exiting.") in new stack -- Executing [s@sub-send-obroute-email:3] Return("SIP/SSW71-0000000b", "") in new stack == Spawn extension (from-trunk, , 1) exited non-zero on 'SIP/SSW71-0000000b' -- SIP/SSW71-0000000b Internal Gosub(sub-send-obroute-email,s,1(628187654321,08187654321,1,1617342504,1000,1000)) complete GOSUB_RETVAL= -- Channel SIP/SSW71-0000000b joined 'simple_bridge' basic-bridge <7e673833-5922-40cb-b35b-510b5ad5198d> -- Channel SIP/1000-0000000a joined 'simple_bridge' basic-bridge <7e673833-5922-40cb-b35b-510b5ad5198d> -- Channel SIP/1000-0000000a left 'simple_bridge' basic-bridge <7e673833-5922-40cb-b35b-510b5ad5198d> == Spawn extension (macro-dialout-trunk, s, 34) exited non-zero on 'SIP/1000-0000000a' in macro 'dialout-trunk' == Spawn extension (from-internal, 08187654321, 11) exited non-zero on 'SIP/1000-0000000a' -- Executing [h@from-internal:1] Macro("SIP/1000-0000000a", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1000-0000000a", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Channel SIP/SSW71-0000000b left 'simple_bridge' basic-bridge <7e673833-5922-40cb-b35b-510b5ad5198d> -- Executing [s@macro-hangupcall:3] ExecIf("SIP/1000-0000000a", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [s@macro-hangupcall:4] NoOp("SIP/1000-0000000a", "SIP/SSW71-0000000b montior file= /var/spool/asterisk/monitor/2021/04/02/out-08187654321-1000-20210402-124824-1617342504.10.wav") in new stack -- Executing [s@macro-hangupcall:5] GotoIf("SIP/1000-0000000a", "0?skipagi") in new stack -- Executing [s@macro-hangupcall:6] AGI("SIP/1000-0000000a", "attendedtransfer-rec-restart.php,SIP/SSW71-0000000b,/var/spool/asterisk/monitor/2021/04/02/out-08187654321-1000-20210402-124824-1617342504.10.wav") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php -- <SIP/1000-0000000a>AGI Script attendedtransfer-rec-restart.php completed, returning 0 -- Executing [s@macro-hangupcall:7] Hangup("SIP/1000-0000000a", "") in new stack == Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/1000-0000000a' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1000-0000000a' -- SIP/1000-0000000a Internal Gosub(crm-hangup,s,1) start -- Executing [s@crm-hangup:1] NoOp("SIP/1000-0000000a", "Sending Hangup to CRM") in new stack -- Executing [s@crm-hangup:2] NoOp("SIP/1000-0000000a", "HANGUP CAUSE: 16") in new stack -- Executing [s@crm-hangup:3] ExecIf("SIP/1000-0000000a", "0?Set(__CRM_VOICEMAIL=)") in new stack -- Executing [s@crm-hangup:4] NoOp("SIP/1000-0000000a", "MASTER CHANNEL: 1617342504.10 = 1617342504.10") in new stack -- Executing [s@crm-hangup:5] GotoIf("SIP/1000-0000000a", "0?return") in new stack -- Executing [s@crm-hangup:6] Set("SIP/1000-0000000a", "__CRM_HANGUP=1") in new stack -- Executing [s@crm-hangup:7] AGI("SIP/1000-0000000a", "sangomacrm.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi -- <SIP/1000-0000000a>AGI Script sangomacrm.agi completed, returning 0 -- Executing [s@crm-hangup:8] Return("SIP/1000-0000000a", "") in new stack == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1000-0000000a' -- SIP/1000-0000000a Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL= == MixMonitor close filestream (mixed) == End MixMonitor Recording SIP/1000-0000000a

andicrb76 commented 3 years ago

For additional i send SIPML5 log

== WebSocket connection from '123.4.5.67:12678' for protocol 'sip' accepted using version '13' -- Registered SIP '1000' at 123.4.5.67:12678 == DTLS ECDH initialized (automatic), faster PFS enabled == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [08187654321@from-internal:1] Macro("SIP/1000-0000000c", "user-callerid,LIMIT,EXTERNAL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/1000-0000000c", "TOUCH_MONITOR=1617343897.12") in new stack -- Executing [s@macro-user-callerid:2] Set("SIP/1000-0000000c", "AMPUSER=1000") in new stack -- Executing [s@macro-user-callerid:3] Set("SIP/1000-0000000c", "HOTDESCKCHAN=1000-0000000c") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/1000-0000000c", "HOTDESKEXTEN=1000") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/1000-0000000c", "HOTDESKCALL=0") in new stack -- Executing [s@macro-user-callerid:6] ExecIf("SIP/1000-0000000c", "0?Set(HOTDESKCALL=1)") in new stack -- Executing [s@macro-user-callerid:7] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(name)=)") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("SIP/1000-0000000c", "0?report") in new stack -- Executing [s@macro-user-callerid:9] ExecIf("SIP/1000-0000000c", "1?Set(REALCALLERIDNUM=1000)") in new stack -- Executing [s@macro-user-callerid:10] Set("SIP/1000-0000000c", "AMPUSER=1000") in new stack -- Executing [s@macro-user-callerid:11] GotoIf("SIP/1000-0000000c", "0?limit") in new stack -- Executing [s@macro-user-callerid:12] Set("SIP/1000-0000000c", "AMPUSERCIDNAME=1000") in new stack -- Executing [s@macro-user-callerid:13] ExecIf("SIP/1000-0000000c", "0?Set(CIDMASQUERADING=TRUE)") in new stack -- Executing [s@macro-user-callerid:14] GotoIf("SIP/1000-0000000c", "0?report") in new stack -- Executing [s@macro-user-callerid:15] Set("SIP/1000-0000000c", "AMPUSERCID=1000") in new stack -- Executing [s@macro-user-callerid:16] Set("SIP/1000-0000000c", "DIAL_OPTIONS=HhTtr") in new stack -- Executing [s@macro-user-callerid:17] Set("SIP/1000-0000000c", "CALLERID(all)="1000" <1000>") in new stack -- Executing [s@macro-user-callerid:18] Set("SIP/1000-0000000c", "HOTDESCKCHAN=1000-0000000c") in new stack -- Executing [s@macro-user-callerid:19] Set("SIP/1000-0000000c", "HOTDESKEXTEN=1000") in new stack -- Executing [s@macro-user-callerid:20] Set("SIP/1000-0000000c", "HOTDESKCALL=0") in new stack -- Executing [s@macro-user-callerid:21] ExecIf("SIP/1000-0000000c", "0?Set(HOTDESKCALL=1)") in new stack -- Executing [s@macro-user-callerid:22] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(name)=)") in new stack -- Executing [s@macro-user-callerid:23] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(all)="" < >)") in new stack -- Executing [s@macro-user-callerid:24] ExecIf("SIP/1000-0000000c", "0?Set(CUSDIAL=)") in new stack -- Executing [s@macro-user-callerid:25] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(all)="1000" <1000>)") in new stack -- Executing [s@macro-user-callerid:26] GotoIf("SIP/1000-0000000c", "0?limit") in new stack -- Executing [s@macro-user-callerid:27] ExecIf("SIP/1000-0000000c", "1?Set(GROUP(concurrency_limit)=1000)") in new stack -- Executing [s@macro-user-callerid:28] ExecIf("SIP/1000-0000000c", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:29] NoOp("SIP/1000-0000000c", "Macro Depth is 1") in new stack -- Executing [s@macro-user-callerid:30] GotoIf("SIP/1000-0000000c", "1?report2:macroerror") in new stack -- Goto (macro-user-callerid,s,31) -- Executing [s@macro-user-callerid:31] GotoIf("SIP/1000-0000000c", "1?continue") in new stack -- Goto (macro-user-callerid,s,50) -- Executing [s@macro-user-callerid:50] Set("SIP/1000-0000000c", "CALLERID(number)=1000") in new stack -- Executing [s@macro-user-callerid:51] Set("SIP/1000-0000000c", "CALLERID(name)=1000") in new stack -- Executing [s@macro-user-callerid:52] GotoIf("SIP/1000-0000000c", "0?cnum") in new stack -- Executing [s@macro-user-callerid:53] Set("SIP/1000-0000000c", "CDR(cnam)=1000") in new stack -- Executing [s@macro-user-callerid:54] Set("SIP/1000-0000000c", "CDR(cnum)=1000") in new stack -- Executing [s@macro-user-callerid:55] Set("SIP/1000-0000000c", "CHANNEL(language)=en") in new stack -- Executing [08187654321@from-internal:2] Gosub("SIP/1000-0000000c", "sub-record-check,s,1(out,08187654321,dontcare)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/1000-0000000c", "0?initialized") in new stack -- Executing [s@sub-record-check:2] Set("SIP/1000-0000000c", "REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:3] Set("SIP/1000-0000000c", "NOW=1617343897") in new stack -- Executing [s@sub-record-check:4] Set("SIP/1000-0000000c", "DAY=02") in new stack -- Executing [s@sub-record-check:5] Set("SIP/1000-0000000c", "MONTH=04") in new stack -- Executing [s@sub-record-check:6] Set("SIP/1000-0000000c", "YEAR=2021") in new stack -- Executing [s@sub-record-check:7] Set("SIP/1000-0000000c", "TIMESTR=20210402-131137") in new stack -- Executing [s@sub-record-check:8] Set("SIP/1000-0000000c", "FROMEXTEN=1000") in new stack -- Executing [s@sub-record-check:9] Set("SIP/1000-0000000c", "MON_FMT=wav") in new stack -- Executing [s@sub-record-check:10] NoOp("SIP/1000-0000000c", "Recordings initialized") in new stack -- Executing [s@sub-record-check:11] ExecIf("SIP/1000-0000000c", "0?Set(ARG3=dontcare)") in new stack -- Executing [s@sub-record-check:12] Set("SIP/1000-0000000c", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/1000-0000000c", "0?Set(REC_STATUS=NO)") in new stack -- Executing [s@sub-record-check:14] GotoIf("SIP/1000-0000000c", "3?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [s@sub-record-check:17] GotoIf("SIP/1000-0000000c", "1?sub-record-check,out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out@sub-record-check:1] NoOp("SIP/1000-0000000c", "Outbound Recording Check from 1000 to 08187654321") in new stack -- Executing [out@sub-record-check:2] Set("SIP/1000-0000000c", "RECMODE=yes") in new stack -- Executing [out@sub-record-check:3] ExecIf("SIP/1000-0000000c", "0?Goto(routewins)") in new stack -- Executing [out@sub-record-check:4] ExecIf("SIP/1000-0000000c", "0?Goto(routewins)") in new stack -- Executing [out@sub-record-check:5] Gosub("SIP/1000-0000000c", "recordcheck,1(yes,out,08187654321)") in new stack -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/1000-0000000c", "Starting recording check against yes") in new stack -- Executing [recordcheck@sub-record-check:2] Goto("SIP/1000-0000000c", "yes") in new stack -- Goto (sub-record-check,recordcheck,9) -- Executing [recordcheck@sub-record-check:9] ExecIf("SIP/1000-0000000c", "0?Return()") in new stack -- Executing [recordcheck@sub-record-check:10] Set("SIP/1000-0000000c", "REC_POLICY_MODE=YES") in new stack -- Executing [recordcheck@sub-record-check:11] Goto("SIP/1000-0000000c", "startrec") in new stack -- Goto (sub-record-check,recordcheck,16) -- Executing [recordcheck@sub-record-check:16] NoOp("SIP/1000-0000000c", "Starting recording: out, 08187654321") in new stack -- Executing [recordcheck@sub-record-check:17] Set("SIP/1000-0000000c", "CALLFILENAME=out-08187654321-1000-20210402-131137-1617343897.12") in new stack -- Executing [recordcheck@sub-record-check:18] MixMonitor("SIP/1000-0000000c", "2021/04/02/out-08187654321-1000-20210402-131137-1617343897.12.wav,abi(LOCAL_MIXMON_ID),") in new stack -- Executing [recordcheck@sub-record-check:19] Set("SIP/1000-0000000c", "MIXMON_ID=0x7f699000a440") in new stack -- Executing [recordcheck@sub-record-check:20] Set("SIP/1000-0000000c", "RECORD_ID=SIP/1000-0000000c") in new stack -- Executing [recordcheck@sub-record-check:21] Set("SIP/1000-0000000c", "__REC_STATUS=RECORDING") in new stack -- Executing [recordcheck@sub-record-check:22] Set("SIP/1000-0000000c", "CDR(recordingfile)=out-08187654321-1000-20210402-131137-1617343897.12.wav") in new stack -- Executing [recordcheck@sub-record-check:23] Return("SIP/1000-0000000c", "") in new stack -- Executing [out@sub-record-check:6] Return("SIP/1000-0000000c", "") in new stack -- Executing [08187654321@from-internal:3] ExecIf("SIP/1000-0000000c", "0 ?Set(CDR(accountcode)=)") in new stack -- Executing [08187654321@from-internal:4] Set("SIP/1000-0000000c", "_ROUTEID=2") in new stack -- Executing [08187654321@from-internal:5] Set("SIP/1000-0000000c", "_ROUTENAME=CARRIER") in new stack -- Executing [08187654321@from-internal:6] Set("SIP/1000-0000000c", "MOHCLASS=default") in new stack -- Executing [08187654321@from-internal:7] Set("SIP/1000-0000000c", "_CALLERIDNAMEINTERNAL=1000") in new stack -- Executing [08187654321@from-internal:8] Set("SIP/1000-0000000c", "_CALLERIDNUMINTERNAL=1000") in new stack -- Executing [08187654321@from-internal:9] Set("SIP/1000-0000000c", "_EMAILNOTIFICATION=FALSE") in new stack -- Executing [08187654321@from-internal:10] Set("SIP/1000-0000000c", "_NODEST=") in new stack -- Executing [08187654321@from-internal:11] Macro("SIP/1000-0000000c", "dialout-trunk,1,08187654321,,on") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/1000-0000000c", "DIAL_TRUNK=1") in new stack -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/1000-0000000c", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack -- Executing [s@macro-dialout-trunk:3] GosubIf("SIP/1000-0000000c", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:4] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(num)=1000)") in new stack -- Executing [s@macro-dialout-trunk:5] GotoIf("SIP/1000-0000000c", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/1000-0000000c", "DIAL_NUMBER=08187654321") in new stack -- Executing [s@macro-dialout-trunk:7] Set("SIP/1000-0000000c", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack -- Executing [s@macro-dialout-trunk:8] Set("SIP/1000-0000000c", "OUTBOUND_GROUP=OUT_1") in new stack -- Executing [s@macro-dialout-trunk:9] Set("SIP/1000-0000000c", "DIAL_TRUNK_OPTIONS=T") in new stack -- Executing [s@macro-dialout-trunk:10] GotoIf("SIP/1000-0000000c", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,12) -- Executing [s@macro-dialout-trunk:12] GotoIf("SIP/1000-0000000c", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:13] Macro("SIP/1000-0000000c", "outbound-callerid,1") in new stack -- Executing [s@macro-outbound-callerid:1] NoOp("SIP/1000-0000000c", "1000") in new stack -- Executing [s@macro-outbound-callerid:2] NoOp("SIP/1000-0000000c", "") in new stack -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/1000-0000000c", "off") in new stack -- Executing [s@macro-outbound-callerid:4] ExecIf("SIP/1000-0000000c", "0?Set(CALLERPRES(name-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:5] ExecIf("SIP/1000-0000000c", "0?Set(CALLERPRES(num-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:6] Set("SIP/1000-0000000c", "HOTDESCKCHAN=1000-0000000c") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/1000-0000000c", "HOTDESKEXTEN=1000") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/1000-0000000c", "HOTDESKCALL=0") in new stack -- Executing [s@macro-outbound-callerid:9] ExecIf("SIP/1000-0000000c", "0?Set(HOTDESKCALL=1)") in new stack -- Executing [s@macro-outbound-callerid:10] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(name)=)") in new stack -- Executing [s@macro-outbound-callerid:11] Set("SIP/1000-0000000c", "ALLOWTHISROUTE=NO") in new stack -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1000-0000000c", "0?Set(ALLOWTHISROUTE=YES)") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1000-0000000c", "0?Hangup()") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1000-0000000c", "0?Set(REALCALLERIDNUM=1000)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1000-0000000c", "0?Set(AMPUSER=1000)") in new stack -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/1000-0000000c", "1?normcid") in new stack == Begin MixMonitor Recording SIP/1000-0000000c -- Goto (macro-outbound-callerid,s,20) -- Executing [s@macro-outbound-callerid:20] Set("SIP/1000-0000000c", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:21] Set("SIP/1000-0000000c", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:22] ExecIf("SIP/1000-0000000c", "0?Set(EMERGENCYCID=)") in new stack -- Executing [s@macro-outbound-callerid:23] Set("SIP/1000-0000000c", "TRUNKOUTCID=") in new stack -- Executing [s@macro-outbound-callerid:24] GotoIf("SIP/1000-0000000c", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,30) -- Executing [s@macro-outbound-callerid:30] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:31] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:32] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:33] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(all)=1000)") in new stack -- Executing [s@macro-outbound-callerid:34] ExecIf("SIP/1000-0000000c", "0?Set(CALLERID(all)=1000)") in new stack -- Executing [s@macro-outbound-callerid:35] Set("SIP/1000-0000000c", "TIOHIDE=no") in new stack -- Executing [s@macro-outbound-callerid:36] ExecIf("SIP/1000-0000000c", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:37] ExecIf("SIP/1000-0000000c", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:38] ExecIf("SIP/1000-0000000c", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:39] ExecIf("SIP/1000-0000000c", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:40] Set("SIP/1000-0000000c", "CDR(outbound_cnum)=1000") in new stack -- Executing [s@macro-outbound-callerid:41] Set("SIP/1000-0000000c", "CDR(outbound_cnam)=1000") in new stack -- Executing [s@macro-dialout-trunk:14] GosubIf("SIP/1000-0000000c", "1?sub-flp-1,s,1()") in new stack -- Executing [s@sub-flp-1:1] ExecIf("SIP/1000-0000000c", "1?Set(TARGET_FLP_1=628187654321)") in new stack -- Executing [s@sub-flp-1:2] GotoIf("SIP/1000-0000000c", "1?match") in new stack -- Goto (sub-flp-1,s,8) -- Executing [s@sub-flp-1:8] Set("SIP/1000-0000000c", "DIAL_NUMBER=628187654321") in new stack -- Executing [s@sub-flp-1:9] Return("SIP/1000-0000000c", "") in new stack -- Executing [s@macro-dialout-trunk:15] Set("SIP/1000-0000000c", "OUTNUM=17048628187654321") in new stack -- Executing [s@macro-dialout-trunk:16] Set("SIP/1000-0000000c", "custom=SIP/SSW71") in new stack -- Executing [s@macro-dialout-trunk:17] ExecIf("SIP/1000-0000000c", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack -- Executing [s@macro-dialout-trunk:18] ExecIf("SIP/1000-0000000c", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack -- Executing [s@macro-dialout-trunk:19] Macro("SIP/1000-0000000c", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1000-0000000c", "") in new stack -- Executing [s@macro-dialout-trunk:20] GotoIf("SIP/1000-0000000c", "0?skipcrm") in new stack -- Executing [s@macro-dialout-trunk:21] Set("SIP/1000-0000000c", "CRM_DIRECTION=OUTBOUND") in new stack -- Executing [s@macro-dialout-trunk:22] Set("SIP/1000-0000000c", "CRM_DESTINATION=17048628187654321") in new stack -- Executing [s@macro-dialout-trunk:23] Set("SIP/1000-0000000c", "__CRM_SOURCE=1000") in new stack -- Executing [s@macro-dialout-trunk:24] AGI("SIP/1000-0000000c", "sangomacrm.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi -- <SIP/1000-0000000c>AGI Script sangomacrm.agi completed, returning 0 -- Executing [s@macro-dialout-trunk:25] Set("SIP/1000-0000000c", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack -- Executing [s@macro-dialout-trunk:26] NoOp("SIP/1000-0000000c", "CRM Finished") in new stack -- Executing [s@macro-dialout-trunk:27] GotoIf("SIP/1000-0000000c", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/1000-0000000c", "1?Set(CONNECTEDLINE(num,i)=628187654321)") in new stack -- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/1000-0000000c", "1?Set(CONNECTEDLINE(name,i)=CID:1000)") in new stack -- Executing [s@macro-dialout-trunk:30] ExecIf("SIP/1000-0000000c", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)1000)") in new stack -- Executing [s@macro-dialout-trunk:31] GotoIf("SIP/1000-0000000c", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:32] ExecIf("SIP/1000-0000000c", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack -- Executing [s@macro-dialout-trunk:33] Set("SIP/1000-0000000c", "HASH(SIPHEADERS,Alert-Info)=unset") in new stack -- Executing [s@macro-dialout-trunk:34] Dial("SIP/1000-0000000c", "SIP/SSW71/17048628187654321,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^628187654321^08187654321^1^1617343897^1000^1000)") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- SIP/SSW71-0000000d Internal Gosub(func-apply-sipheaders,s,1(1)) start -- Executing [s@func-apply-sipheaders:1] ExecIf("SIP/SSW71-0000000d", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack -- Executing [s@func-apply-sipheaders:2] NoOp("SIP/SSW71-0000000d", "Applying SIP Headers to channel SIP/SSW71-0000000d") in new stack -- Executing [s@func-apply-sipheaders:3] Set("SIP/SSW71-0000000d", "TECH=SIP") in new stack -- Executing [s@func-apply-sipheaders:4] Set("SIP/SSW71-0000000d", "SIPHEADERKEYS=Alert-Info") in new stack -- Executing [s@func-apply-sipheaders:5] While("SIP/SSW71-0000000d", "1") in new stack -- Executing [s@func-apply-sipheaders:6] Set("SIP/SSW71-0000000d", "sipheader=unset") in new stack -- Executing [s@func-apply-sipheaders:7] ExecIf("SIP/SSW71-0000000d", "1?SIPRemoveHeader(Alert-Info:)") in new stack -- Executing [s@func-apply-sipheaders:8] ExecIf("SIP/SSW71-0000000d", "0?Set(sipheader=http://127.0.0.1;info=unset)") in new stack -- Executing [s@func-apply-sipheaders:9] ExecIf("SIP/SSW71-0000000d", "0?Set(sipheader=http://127.0.0.1unset)") in new stack -- Executing [s@func-apply-sipheaders:10] ExecIf("SIP/SSW71-0000000d", "0?SIPAddHeader(Alert-Info:unset)") in new stack -- Executing [s@func-apply-sipheaders:11] EndWhile("SIP/SSW71-0000000d", "") in new stack -- Executing [s@func-apply-sipheaders:5] While("SIP/SSW71-0000000d", "0") in new stack -- Executing [s@func-apply-sipheaders:12] Return("SIP/SSW71-0000000d", "") in new stack == Spawn extension (from-trunk, 08187654321, 1) exited non-zero on 'SIP/SSW71-0000000d' -- SIP/SSW71-0000000d Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL= -- Called SIP/SSW71/17048628187654321 -- SIP/SSW71-0000000d answered SIP/1000-0000000c -- SIP/SSW71-0000000d Internal Gosub(sub-send-obroute-email,s,1(628187654321,08187654321,1,1617343897,1000,1000)) start -- Executing [s@sub-send-obroute-email:1] GotoIf("SIP/SSW71-0000000d", "0?sendEmail") in new stack -- Executing [s@sub-send-obroute-email:2] NoOp("SIP/SSW71-0000000d", "email notifications disabled..exiting.") in new stack -- Executing [s@sub-send-obroute-email:3] Return("SIP/SSW71-0000000d", "") in new stack == Spawn extension (from-trunk, , 1) exited non-zero on 'SIP/SSW71-0000000d' -- SIP/SSW71-0000000d Internal Gosub(sub-send-obroute-email,s,1(628187654321,08187654321,1,1617343897,1000,1000)) complete GOSUB_RETVAL= -- Channel SIP/SSW71-0000000d joined 'simple_bridge' basic-bridge -- Channel SIP/1000-0000000c joined 'simple_bridge' basic-bridge -- Channel SIP/1000-0000000c left 'simple_bridge' basic-bridge == Spawn extension (macro-dialout-trunk, s, 34) exited non-zero on 'SIP/1000-0000000c' in macro 'dialout-trunk' == Spawn extension (from-internal, 08187654321, 11) exited non-zero on 'SIP/1000-0000000c' -- Executing [h@from-internal:1] Macro("SIP/1000-0000000c", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1000-0000000c", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Channel SIP/SSW71-0000000d left 'simple_bridge' basic-bridge -- Executing [s@macro-hangupcall:3] ExecIf("SIP/1000-0000000c", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [s@macro-hangupcall:4] NoOp("SIP/1000-0000000c", "SIP/SSW71-0000000d montior file= /var/spool/asterisk/monitor/2021/04/02/out-08187654321-1000-20210402-131137-1617343897.12.wav") in new stack -- Executing [s@macro-hangupcall:5] GotoIf("SIP/1000-0000000c", "0?skipagi") in new stack -- Executing [s@macro-hangupcall:6] AGI("SIP/1000-0000000c", "attendedtransfer-rec-restart.php,SIP/SSW71-0000000d,/var/spool/asterisk/monitor/2021/04/02/out-08187654321-1000-20210402-131137-1617343897.12.wav") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php -- Unregistered SIP '1000' -- <SIP/1000-0000000c>AGI Script attendedtransfer-rec-restart.php completed, returning 0 -- Executing [s@macro-hangupcall:7] Hangup("SIP/1000-0000000c", "") in new stack == Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/1000-0000000c' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1000-0000000c' -- SIP/1000-0000000c Internal Gosub(crm-hangup,s,1) start -- Executing [s@crm-hangup:1] NoOp("SIP/1000-0000000c", "Sending Hangup to CRM") in new stack -- Executing [s@crm-hangup:2] NoOp("SIP/1000-0000000c", "HANGUP CAUSE: 16") in new stack -- Executing [s@crm-hangup:3] ExecIf("SIP/1000-0000000c", "0?Set(__CRM_VOICEMAIL=)") in new stack -- Executing [s@crm-hangup:4] NoOp("SIP/1000-0000000c", "MASTER CHANNEL: 1617343897.12 = 1617343897.12") in new stack -- Executing [s@crm-hangup:5] GotoIf("SIP/1000-0000000c", "0?return") in new stack -- Executing [s@crm-hangup:6] Set("SIP/1000-0000000c", "__CRM_HANGUP=1") in new stack -- Executing [s@crm-hangup:7] AGI("SIP/1000-0000000c", "sangomacrm.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi -- <SIP/1000-0000000c>AGI Script sangomacrm.agi completed, returning 0 -- Executing [s@crm-hangup:8] Return("SIP/1000-0000000c", "") in new stack == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1000-0000000c' -- SIP/1000-0000000c Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL= == MixMonitor close filestream (mixed) == End MixMonitor Recording SIP/1000-0000000c

vicimikec commented 1 year ago

This is now a feature in Viciphone Version 3