FreePBX WebRTC

Hello All
i am facing issues when trying to make a call from WebRTC app (Odoo) 1062 to a softphone (Zoiper/X-Lite) 1061 although it works fine between 2 Softphones.

**Scenario 1: From WebRTC to Softphone **
1062 -------> 1061
The Softphone rings but when i pick up the phone the call ends; here are the logs

  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [1061@from-internal:1] GotoIf("SIP/1062-0000001a", "1?ext-local,1061,1:followme-check,1061,1") in new stack
    -- Goto (ext-local,1061,1)
    -- Executing [1061@ext-local:1] Set("SIP/1062-0000001a", "__RINGTIMER=15") in new stack
    -- Executing [1061@ext-local:2] Macro("SIP/1062-0000001a", "exten-vm,novm,1061,0,0,0") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/1062-0000001a", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/1062-0000001a", "TOUCH_MONITOR=1496839322.26") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/1062-0000001a", "AMPUSER=1062") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/1062-0000001a", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/1062-0000001a", "1?Set(REALCALLERIDNUM=1062)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/1062-0000001a", "AMPUSER=1062") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1062-0000001a", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/1062-0000001a", "AMPUSERCIDNAME=WebRTC Admin") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/1062-0000001a", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/1062-0000001a", "AMPUSERCID=1062") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/1062-0000001a", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/1062-0000001a", "CALLERID(all)="WebRTC Admin" <1062>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/1062-0000001a", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/1062-0000001a", "0?Set(GROUP(concurrency_limit)=1062)") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("SIP/1062-0000001a", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:15] Set("SIP/1062-0000001a", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("SIP/1062-0000001a", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,27)
    -- Executing [s@macro-user-callerid:27] Set("SIP/1062-0000001a", "CALLERID(number)=1062") in new stack
    -- Executing [s@macro-user-callerid:28] Set("SIP/1062-0000001a", "CALLERID(name)=WebRTC Admin") in new stack
    -- Executing [s@macro-user-callerid:29] GotoIf("SIP/1062-0000001a", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/1062-0000001a", "CDR(cnam)=WebRTC Admin") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/1062-0000001a", "CDR(cnum)=1062") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/1062-0000001a", "CHANNEL(language)=en") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/1062-0000001a", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/1062-0000001a", "__EXTTOCALL=1061") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/1062-0000001a", "__PICKUPMARK=1061") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/1062-0000001a", "RT=") in new stack
    -- Executing [s@macro-exten-vm:6] ExecIf("SIP/1062-0000001a", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
    -- Executing [s@macro-exten-vm:7] ExecIf("SIP/1062-0000001a", "0?MacroExit()") in new stack
    -- Executing [s@macro-exten-vm:8] Gosub("SIP/1062-0000001a", "sub-record-check,s,1(exten,1061,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/1062-0000001a", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/1062-0000001a", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/1062-0000001a", "NOW=1496839322") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/1062-0000001a", "__DAY=07") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/1062-0000001a", "__MONTH=06") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/1062-0000001a", "__YEAR=2017") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/1062-0000001a", "__TIMESTR=20170607-124202") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/1062-0000001a", "__FROMEXTEN=1062") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/1062-0000001a", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/1062-0000001a", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/1062-0000001a", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/1062-0000001a", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/1062-0000001a", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/1062-0000001a", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/1062-0000001a", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] NoOp("SIP/1062-0000001a", "Exten Recording Check between 1062 and 1061") in new stack
    -- Executing [exten@sub-record-check:2] Set("SIP/1062-0000001a", "CALLTYPE=internal") in new stack
    -- Executing [exten@sub-record-check:3] ExecIf("SIP/1062-0000001a", "0?Set(CALLTYPE=)") in new stack
    -- Executing [exten@sub-record-check:4] Set("SIP/1062-0000001a", "CALLEE=dontcare") in new stack
    -- Executing [exten@sub-record-check:5] ExecIf("SIP/1062-0000001a", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:6] GotoIf("SIP/1062-0000001a", "0?callee") in new stack
    -- Executing [exten@sub-record-check:7] GotoIf("SIP/1062-0000001a", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [exten@sub-record-check:13] Set("SIP/1062-0000001a", "RECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:14] ExecIf("SIP/1062-0000001a", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:15] ExecIf("SIP/1062-0000001a", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:16] Gosub("SIP/1062-0000001a", "recordcheck,1(dontcare,internal,1061)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/1062-0000001a", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/1062-0000001a", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/1062-0000001a", "") in new stack
    -- Executing [exten@sub-record-check:17] Return("SIP/1062-0000001a", "") in new stack
    -- Executing [s@macro-exten-vm:9] GotoIf("SIP/1062-0000001a", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,15)
    -- Executing [s@macro-exten-vm:15] GosubIf("SIP/1062-0000001a", "0?clrheader,1()") in new stack
    -- Executing [s@macro-exten-vm:16] Macro("SIP/1062-0000001a", "dial-one,,Ttr,1061") in new stack
    -- Executing [s@macro-dial-one:1] Set("SIP/1062-0000001a", "DEXTEN=1061") in new stack
    -- Executing [s@macro-dial-one:2] ExecIf("SIP/1062-0000001a", "0?Set(EXTTOCALL=1061)") in new stack
    -- Executing [s@macro-dial-one:3] Set("SIP/1062-0000001a", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:4] GosubIf("SIP/1062-0000001a", "0?screen,1()") in new stack
    -- Executing [s@macro-dial-one:5] GosubIf("SIP/1062-0000001a", "0?cf,1()") in new stack
    -- Executing [s@macro-dial-one:6] GotoIf("SIP/1062-0000001a", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,9)
    -- Executing [s@macro-dial-one:9] GotoIf("SIP/1062-0000001a", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:10] GotoIf("SIP/1062-0000001a", "0?continue") in new stack
    -- Executing [s@macro-dial-one:11] Set("SIP/1062-0000001a", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:12] GotoIf("SIP/1062-0000001a", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,24)
    -- Executing [s@macro-dial-one:24] GotoIf("SIP/1062-0000001a", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,26)
    -- Executing [s@macro-dial-one:26] GotoIf("SIP/1062-0000001a", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:27] GosubIf("SIP/1062-0000001a", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("SIP/1062-0000001a", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("SIP/1062-0000001a", "DEVICES=1061") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/1062-0000001a", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/1062-0000001a", "0?Set(DEVICES=061)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("SIP/1062-0000001a", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("SIP/1062-0000001a", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("SIP/1062-0000001a", "THISDIAL=SIP/1061") in new stack
    -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/1062-0000001a", "1?zap2dahdi,1()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/1062-0000001a", "0?Return()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/1062-0000001a", "NEWDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/1062-0000001a", "LOOPCNT2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/1062-0000001a", "ITER2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/1062-0000001a", "THISPART2=SIP/1061") in new stack
    -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/1062-0000001a", "0?Set(THISPART2=DAHDI/1061)") in new stack
    -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/1062-0000001a", "NEWDIAL=SIP/1061&") in new stack
    -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/1062-0000001a", "ITER2=2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/1062-0000001a", "0?begin2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/1062-0000001a", "THISDIAL=SIP/1061") in new stack
    -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/1062-0000001a", "") in new stack
    -- Executing [dstring@macro-dial-one:9] GotoIf("SIP/1062-0000001a", "1?docheck") in new stack
    -- Goto (macro-dial-one,dstring,14)
    -- Executing [dstring@macro-dial-one:14] GotoIf("SIP/1062-0000001a", "0?skipset") in new stack
    -- Executing [dstring@macro-dial-one:15] Set("SIP/1062-0000001a", "DSTRING=SIP/1061&") in new stack
    -- Executing [dstring@macro-dial-one:16] Set("SIP/1062-0000001a", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:17] GotoIf("SIP/1062-0000001a", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:18] ExecIf("SIP/1062-0000001a", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:19] Set("SIP/1062-0000001a", "DSTRING=SIP/1061") in new stack
    -- Executing [dstring@macro-dial-one:20] Return("SIP/1062-0000001a", "") in new stack
    -- Executing [s@macro-dial-one:28] GotoIf("SIP/1062-0000001a", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:29] GotoIf("SIP/1062-0000001a", "0?skiptrace") in new stack
    -- Executing [s@macro-dial-one:30] GosubIf("SIP/1062-0000001a", "1?ctset,1():ctclear,1()") in new stack
    -- Executing [ctset@macro-dial-one:1] Set("SIP/1062-0000001a", "DB(CALLTRACE/1061)=1062") in new stack
    -- Executing [ctset@macro-dial-one:2] Return("SIP/1062-0000001a", "") in new stack
    -- Executing [s@macro-dial-one:31] Set("SIP/1062-0000001a", "D_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dial-one:32] NoOp("SIP/1062-0000001a", "Blind Transfer: , Attended Transfer: , User: 1062, Alert Info: ") in new stack
    -- Executing [s@macro-dial-one:33] ExecIf("SIP/1062-0000001a", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:34] ExecIf("SIP/1062-0000001a", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:35] ExecIf("SIP/1062-0000001a", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:36] ExecIf("SIP/1062-0000001a", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [s@macro-dial-one:37] ExecIf("SIP/1062-0000001a", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [s@macro-dial-one:38] GosubIf("SIP/1062-0000001a", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [s@macro-dial-one:39] ExecIf("SIP/1062-0000001a", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial-one:40] GosubIf("SIP/1062-0000001a", "0?qwait,1()") in new stack
    -- Executing [s@macro-dial-one:41] Set("SIP/1062-0000001a", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:42] Set("SIP/1062-0000001a", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:43] GotoIf("SIP/1062-0000001a", "0?usegoto,1") in new stack
    -- Executing [s@macro-dial-one:44] GotoIf("SIP/1062-0000001a", "0?godial") in new stack
    -- Executing [s@macro-dial-one:45] Gosub("SIP/1062-0000001a", "sub-presencestate-display,s,1(1061)") in new stack
    -- Executing [s@sub-presencestate-display:1] Goto("SIP/1062-0000001a", "state-not_set,1") in new stack
    -- Goto (sub-presencestate-display,state-not_set,1)
    -- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/1062-0000001a", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/1062-0000001a", "") in new stack
    -- Executing [s@macro-dial-one:46] Set("SIP/1062-0000001a", "CONNECTEDLINE(name,i)=user1") in new stack
    -- Executing [s@macro-dial-one:47] Set("SIP/1062-0000001a", "CONNECTEDLINE(num)=1061") in new stack
    -- Executing [s@macro-dial-one:48] Set("SIP/1062-0000001a", "D_OPTIONS=TtrI") in new stack
    -- Executing [s@macro-dial-one:49] Macro("SIP/1062-0000001a", "dialout-one-predial-hook,") in new stack
    -- Executing [s@macro-dialout-one-predial-hook:1] MacroExit("SIP/1062-0000001a", "") in new stack
    -- Executing [s@macro-dial-one:50] ExecIf("SIP/1062-0000001a", "0?Set(D_OPTIONS=trII)") in new stack
    -- Executing [s@macro-dial-one:51] Dial("SIP/1062-0000001a", "SIP/1061,,TtrIb(func-apply-sipheaders^s^1)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- SIP/1061-0000001b Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("SIP/1061-0000001b", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("SIP/1061-0000001b", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:3] While("SIP/1061-0000001b", "0") in new stack
    -- Jumping to priority 6
    -- Executing [s@func-apply-sipheaders:7] Return("SIP/1061-0000001b", "") in new stack
  == Spawn extension (from-internal, 1061, 1) exited non-zero on 'SIP/1061-0000001b'
    -- SIP/1061-0000001b Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called SIP/1061
    -- Connected line update to SIP/1062-0000001a prevented.
    -- SIP/1061-0000001b is ringing
    -- Connected line update to SIP/1062-0000001a prevented.
    -- SIP/1061-0000001b answered SIP/1062-0000001a
    -- Channel SIP/1061-0000001b joined 'simple_bridge' basic-bridge <805da559-6470-4283-a706-d6543a7506c7>
    -- Channel SIP/1062-0000001a joined 'simple_bridge' basic-bridge <805da559-6470-4283-a706-d6543a7506c7>
       > 0x7f9d84029130 -- Probation passed - setting RTP source address to 192.168.1.132:57904
    -- Channel SIP/1062-0000001a left 'simple_bridge' basic-bridge <805da559-6470-4283-a706-d6543a7506c7>
  == Spawn extension (macro-dial-one, s, 51) exited non-zero on 'SIP/1062-0000001a' in macro 'dial-one'
  == Spawn extension (macro-exten-vm, s, 16) exited non-zero on 'SIP/1062-0000001a' in macro 'exten-vm'
  == Spawn extension (ext-local, 1061, 2) exited non-zero on 'SIP/1062-0000001a'
    -- Executing [h@ext-local:1] Macro("SIP/1062-0000001a", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1062-0000001a", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("SIP/1062-0000001a", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("SIP/1062-0000001a", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/1062-0000001a' in macro 'hangupcall'
  == Spawn extension (ext-local, h, 1) exited non-zero on 'SIP/1062-0000001a'
    -- Channel SIP/1061-0000001b left 'simple_bridge' basic-bridge <805da559-6470-4283-a706-d6543a7506c7>