Freepbx 13 with Webrtc ODOO call get drop when answered!

hi

i have freepbx integrated with ODOO over Webrtc

th problem that i face is , once the call is answered , its dropped in asterisk

not sure where the problem is :slight_smile:
here is my sip.conf :slight_smile:

[general]
icesupport = true
;stunaddr = stun.l.google.com:19302
icesupport = true
;stunaddr = stun.l.google.com:19302
realm= xxx ; Replace this with your IP address
udpbindaddr= xxx ; Replace this with your IP address
transport=udp

and here is my ex config :slight_smile:

[1090] ; This will be WebRTC client
type=friend
username=1090 ; The Auth user for SIP.js
host=dynamic ; Allows any host to register
secret=123!@# ; The SIP Password for SIP.js
encryption=yes ; Tell Asterisk to use encryption for this peer
avpf=yes ; Tell Asterisk to use AVPF for this peer
icesupport=yes ; Tell Asterisk to use ICE for this peer
context=from-internal ; Tell Asterisk which context to use when this peer is dialing
directmedia=no ; Asterisk will relay media for this peer
transport=udp,ws ; Asterisk will allow this peer to register on UDP or WebSockets
force_avp=yes ; Force Asterisk to use avp. Introduced in Asterisk 11.11
dtlsenable=yes ; Tell Asterisk to enable DTLS for this peer
dtlsverify=no ; Tell Asterisk to not verify your DTLS certs
dtlscertfile=/etc/asterisk/keys/asterisk.pem ; Tell Asterisk where your DTLS cert file is
dtlsprivatekey=/etc/asterisk/keys/asterisk.pem ; Tell Asterisk where your DTLS private key is
dtlssetup=actpass ; Tell Asterisk to use actpass SDP parameter when setting up DTLS

[root@Server3 ~]#

  -- Executing [18008002775@from-internal:1] Macro("SIP/1090-00000029", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/1090-00000029", "TOUCH_MONITOR=1470829024.41") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/1090-00000029", "AMPUSER=1090") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/1090-00000029", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/1090-00000029", "1?Set(REALCALLERIDNUM=1090)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/1090-00000029", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/1090-00000029", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/1090-00000029", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/1090-00000029", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/1090-00000029", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [s@macro-user-callerid:27] Set("SIP/1090-00000029", "CALLERID(number)=1090") in new stack
-- Executing [s@macro-user-callerid:28] Set("SIP/1090-00000029", "CALLERID(name)=") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/1090-00000029", "CDR(cnum)=1090") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/1090-00000029", "CDR(cnam)=") in new stack

[2016-08-10 13:37:04] WARNING[1133]: func_cdr.c:377 cdr_write_callback: CDR requires a value (CDR(variable)=value)
– Executing [s@macro-user-callerid:31] Set(“SIP/1090-00000029”, “CHANNEL(language)=en”) in new stack
– Executing [18008002775@from-internal:2] Gosub(“SIP/1090-00000029”, “sub-record-check,s,1(out,18008002775,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/1090-00000029”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/1090-00000029”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/1090-00000029”, “NOW=1470829024”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/1090-00000029”, “__DAY=10”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/1090-00000029”, “__MONTH=08”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/1090-00000029”, “__YEAR=2016”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/1090-00000029”, “__TIMESTR=20160810-133704”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/1090-00000029”, “__FROMEXTEN=1090”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/1090-00000029”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/1090-00000029”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/1090-00000029”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/1090-00000029”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/1090-00000029”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/1090-00000029”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/1090-00000029”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/1090-00000029”, “Outbound Recording Check from 1090 to 18008002775”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/1090-00000029”, “RECMODE=”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/1090-00000029”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/1090-00000029”, “recordcheck,1(dontcare,out,18008002775)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/1090-00000029”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/1090-00000029”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/1090-00000029”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/1090-00000029”, “”) in new stack
– Executing [18008002775@from-internal:3] Set(“SIP/1090-00000029”, “MOHCLASS=default”) in new stack
– Executing [18008002775@from-internal:4] Set(“SIP/1090-00000029”, “_NODEST=”) in new stack
– Executing [18008002775@from-internal:5] Macro(“SIP/1090-00000029”, “dialout-trunk,2,+18008002775,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/1090-00000029”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/1090-00000029”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/1090-00000029”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/1090-00000029”, “DIAL_NUMBER=+18008002775”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/1090-00000029”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/1090-00000029”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/1090-00000029”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/1090-00000029”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/1090-00000029”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/1090-00000029”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/1090-00000029”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/1090-00000029”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:3] ExecIf(“SIP/1090-00000029”, “0?Set(REALCALLERIDNUM=1090)”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/1090-00000029”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [s@macro-outbound-callerid:7] Set(“SIP/1090-00000029”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/1090-00000029”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] Set(“SIP/1090-00000029”, “TRUNKOUTCID=13052513848”) in new stack
– Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/1090-00000029”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/1090-00000029”, “1?Set(CALLERID(all)=13052513848)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/1090-00000029”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/1090-00000029”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/1090-00000029”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/1090-00000029”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:20] Set(“SIP/1090-00000029”, “CDR(outbound_cnum)=13052513848”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“SIP/1090-00000029”, “CDR(outbound_cnam)=”) in new stack
[2016-08-10 13:37:04] WARNING[1133]: func_cdr.c:377 cdr_write_callback: CDR requires a value (CDR(variable)=value)
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/1090-00000029”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/1090-00000029”, “OUTNUM=+18008002775”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/1090-00000029”, “custom=SIP/Mainone”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/1090-00000029”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/1090-00000029”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/1090-00000029”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/1090-00000029”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/1090-00000029”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/1090-00000029”, “0?Set(CONNECTEDLINE(num,i)=+18008002775)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/1090-00000029”, “0?Set(CONNECTEDLINE(name,i)=CID:13052513848)”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“SIP/1090-00000029”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)13052513848)”) in new stack
– Executing [s@macro-dialout-trunk:22] GotoIf(“SIP/1090-00000029”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:23] Dial(“SIP/1090-00000029”, “SIP/Mainone/+18008002775,300,T”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/Mainone/+18008002775
– SIP/Mainone-0000002a is making progress passing it to SIP/1090-00000029
> 0x7fe5886f3360 – Probation passed - setting RTP source address to 72.251.228.146:13876
– SIP/Mainone-0000002a answered SIP/1090-00000029
– Channel SIP/Mainone-0000002a joined ‘simple_bridge’ basic-bridge <7e89f11a-7db6-4c9b-b353-2e201e9bbc9a>
– Channel SIP/1090-00000029 joined ‘simple_bridge’ basic-bridge <7e89f11a-7db6-4c9b-b353-2e201e9bbc9a>
> 0x7fe5886f3360 – Probation passed - setting RTP source address to 72.251.228.146:13876
– Channel SIP/1090-00000029 left ‘simple_bridge’ basic-bridge <7e89f11a-7db6-4c9b-b353-2e201e9bbc9a>
== Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on ‘SIP/1090-00000029’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 18008002775, 5) exited non-zero on ‘SIP/1090-00000029’
– Executing [h@from-internal:1] Macro(“SIP/1090-00000029”, “hangupcall”) in new stack
– Channel SIP/Mainone-0000002a left ‘simple_bridge’ basic-bridge <7e89f11a-7db6-4c9b-b353-2e201e9bbc9a>
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/1090-00000029”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/1090-00000029”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/1090-00000029”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/1090-00000029’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1090-00000029’
Server3*CLI>