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