Video works when A calls B not when B calls A

Hi there,

If my video intercom (ext 8001) calls my laptop (ext 8005), the call includes video and all works well. But if I do things the other way around (laltop calls video intercom), the call does not include video. I have included the debug info below showing the call without video.

I can see an error in there:

No joint capabilities for ‘video’ media stream between our configuration((h264|h263p|h263|h261)) and incoming SDP((ulaw|ilbc))

BTW, since I am using PJSIP, I needed to manually enable video for each extension by setting each extension’s Allowed Codecs setting to ‘h264&h263p&h263&h261&ulaw&alaw&gsm&g726’. In other words, I needed to explicitly list h264 in there to get any video working at all.

Any ideas?

Thanks,
Pete

<--- Received SIP request (641 bytes) from UDP:192.168.1.1:5060 --->
OPTIONS sip:mydomain.net SIP/2.0
Call-ID: [email protected]:0:0:0:0:0:0:0
CSeq: 1484 OPTIONS
From: "8005" <sip:[email protected]>;tag=7b49e2c5
To: "8005" <sip:[email protected]>
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-353534-3998fdb1f040812d7bd6512ada2eeb4f
Max-Forwards: 70
Contact: "8005" <sip:[email protected]:5060;transport=udp;registering_acc=mydomain_net>
User-Agent: Jitsi2.8.5426Windows 8
Allow: INFO,UPDATE,OPTIONS,MESSAGE,BYE,REFER,SUBSCRIBE,ACK,CANCEL,PUBLISH,NOTIFY,INVITE
Allow-Events: refer,conference,remote-control,presence,presence.winfo,message-summary
Content-Length: 0


<--- Transmitting SIP response (575 bytes) to UDP:192.168.1.1:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.1:5060;rport=5060;received=192.168.1.1;branch=z9hG4bK-353534-3998fdb1f040812d7bd6512ada2eeb4f
Call-ID: [email protected]:0:0:0:0:0:0:0
From: "8005" <sip:[email protected]>;tag=7b49e2c5
To: "8005" <sip:[email protected]>;tag=z9hG4bK-353534-3998fdb1f040812d7bd6512ada2eeb4f
CSeq: 1484 OPTIONS
WWW-Authenticate: Digest  realm="asterisk",nonce="1476602018/a24308ade57c599a10f6ac5fc78c3371",opaque="71df285a0c4bcc2d",algorithm=md5,qop="auth"
Server: FPBX-13.0.188.8(13.11.2)
Content-Length:  0


<--- Received SIP request (1424 bytes) from UDP:192.168.1.1:5060 --->
INVITE sip:[email protected] SIP/2.0
Call-ID: [email protected]:0:0:0:0:0:0:0
CSeq: 1 INVITE
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-353534-553fa82d926557ea2b0c35cba85a5af3
Max-Forwards: 70
Contact: "8005" <sip:[email protected]:5060;transport=udp;registering_acc=mydomain_net>
User-Agent: Jitsi2.8.5426Windows 8
Content-Type: application/sdp
Content-Length: 933

v=0
o=8005-jitsi.org 0 0 IN IP4 192.168.1.1
s=-
c=IN IP4 192.168.1.1
t=0 0
m=audio 5114 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 4 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no;bitrate=6.3
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:2 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5116 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1366],y=[0-768]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1366],y=[0-768]]

<--- Transmitting SIP response (564 bytes) to UDP:192.168.1.1:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.1:5060;rport=5060;received=192.168.1.1;branch=z9hG4bK-353534-553fa82d926557ea2b0c35cba85a5af3
Call-ID: [email protected]:0:0:0:0:0:0:0
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>;tag=z9hG4bK-353534-553fa82d926557ea2b0c35cba85a5af3
CSeq: 1 INVITE
WWW-Authenticate: Digest  realm="asterisk",nonce="1476602019/7aa91e420a34d2adb4b2be27abd9fcb2",opaque="3c3fbc6344a11717",algorithm=md5,qop="auth"
Server: FPBX-13.0.188.8(13.11.2)
Content-Length:  0


<--- Received SIP request (377 bytes) from UDP:192.168.1.1:5060 --->
ACK sip:[email protected] SIP/2.0
Call-ID: [email protected]:0:0:0:0:0:0:0
Max-Forwards: 70
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>;tag=z9hG4bK-353534-553fa82d926557ea2b0c35cba85a5af3
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-353534-553fa82d926557ea2b0c35cba85a5af3
CSeq: 1 ACK
Content-Length: 0


<--- Received SIP request (1681 bytes) from UDP:192.168.1.1:5060 --->
INVITE sip:[email protected] SIP/2.0
Call-ID: [email protected]:0:0:0:0:0:0:0
CSeq: 2 INVITE
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>
Max-Forwards: 70
Contact: "8005" <sip:[email protected]:5060;transport=udp;registering_acc=mydomain_net>
User-Agent: Jitsi2.8.5426Windows 8
Content-Type: application/sdp
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-353534-155af64740ec711b81d78256433f2fb8
Authorization: Digest username="8005",realm="asterisk",nonce="1476602019/7aa91e420a34d2adb4b2be27abd9fcb2",uri="sip:[email protected]",response="dea5ae3b76aac4c45ab32655b1f63531",algorithm=md5,opaque="3c3fbc6344a11717",qop=auth,cnonce="xyz",nc=00000001
Content-Length: 933

v=0
o=8005-jitsi.org 0 0 IN IP4 192.168.1.1
s=-
c=IN IP4 192.168.1.1
t=0 0
m=audio 5114 RTP/AVP 96 97 98 9 100 102 0 8 103 3 104 4 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 usedtx=1
a=rtpmap:97 SILK/24000
a=rtpmap:98 SILK/16000
a=rtpmap:9 G722/8000
a=rtpmap:100 speex/32000
a=rtpmap:102 speex/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:103 iLBC/8000
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no;bitrate=6.3
a=rtpmap:101 telephone-event/8000
a=extmap:1 urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:2 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=rtcp-xr:voip-metrics
m=video 5116 RTP/AVP 105 99
a=recvonly
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01f;packetization-mode=1
a=imageattr:105 send * recv [x=[0-1366],y=[0-768]]
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01f
a=imageattr:99 send * recv [x=[0-1366],y=[0-768]]

<--- Transmitting SIP response (359 bytes) to UDP:192.168.1.1:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.1:5060;rport=5060;received=192.168.1.1;branch=z9hG4bK-353534-155af64740ec711b81d78256433f2fb8
Call-ID: [email protected]:0:0:0:0:0:0:0
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>
CSeq: 2 INVITE
Server: FPBX-13.0.188.8(13.11.2)
Content-Length:  0


    -- Executing [[email protected]:1] GotoIf("PJSIP/8005-00000004", "1?ext-local,8001,1:followme-check,8001,1") in new stack
    -- Goto (ext-local,8001,1)
    -- Executing [[email protected]:1] Set("PJSIP/8005-00000004", "__RINGTIMER=15") in new stack
    -- Executing [[email protected]:2] Macro("PJSIP/8005-00000004", "exten-vm,novm,8001,0,0,0") in new stack
    -- Executing [[email protected]:1] Macro("PJSIP/8005-00000004", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/8005-00000004", "TOUCH_MONITOR=1476602019.4") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8005-00000004", "AMPUSER=8005") in new stack
    -- Executing [[email protected]:3] GotoIf("PJSIP/8005-00000004", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/8005-00000004", "1?Set(REALCALLERIDNUM=8005)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/8005-00000004", "AMPUSER=8005") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/8005-00000004", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/8005-00000004", "AMPUSERCIDNAME=Laptop") in new stack
    -- Executing [[email protected]:8] GotoIf("PJSIP/8005-00000004", "0?report") in new stack
    -- Executing [[email protected]:9] Set("PJSIP/8005-00000004", "AMPUSERCID=8005") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/8005-00000004", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:11] Set("PJSIP/8005-00000004", "CALLERID(all)="Laptop" <8005>") in new stack
    -- Executing [[email protected]:12] GotoIf("PJSIP/8005-00000004", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/8005-00000004", "0?Set(GROUP(concurrency_limit)=8005)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/8005-00000004", "0?continue") in new stack
    -- Executing [[email protected]:15] Set("PJSIP/8005-00000004", "__TTL=64") in new stack
    -- Executing [[email protected]:16] GotoIf("PJSIP/8005-00000004", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,27)
    -- Executing [[email protected]:27] Set("PJSIP/8005-00000004", "CALLERID(number)=8005") in new stack
    -- Executing [[email protected]:28] Set("PJSIP/8005-00000004", "CALLERID(name)=Laptop") in new stack
    -- Executing [[email protected]:29] GotoIf("PJSIP/8005-00000004", "0?cnum") in new stack
    -- Executing [[email protected]:30] Set("PJSIP/8005-00000004", "CDR(cnam)=Laptop") in new stack
    -- Executing [[email protected]:31] Set("PJSIP/8005-00000004", "CDR(cnum)=8005") in new stack
    -- Executing [[email protected]:32] Set("PJSIP/8005-00000004", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8005-00000004", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/8005-00000004", "__EXTTOCALL=8001") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/8005-00000004", "__PICKUPMARK=8001") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/8005-00000004", "RT=") in new stack
    -- Executing [[email protected]:6] Gosub("PJSIP/8005-00000004", "sub-record-check,s,1(exten,8001,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/8005-00000004", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8005-00000004", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/8005-00000004", "NOW=1476602019") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/8005-00000004", "__DAY=16") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/8005-00000004", "__MONTH=10") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/8005-00000004", "__YEAR=2016") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/8005-00000004", "__TIMESTR=20161016-181339") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/8005-00000004", "__FROMEXTEN=8005") in new stack
    -- Executing [[email protected]:9] Set("PJSIP/8005-00000004", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("PJSIP/8005-00000004", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/8005-00000004", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/8005-00000004", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/8005-00000004", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/8005-00000004", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("PJSIP/8005-00000004", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("PJSIP/8005-00000004", "Exten Recording Check between 8005 and 8001") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8005-00000004", "CALLTYPE=internal") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/8005-00000004", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/8005-00000004", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("PJSIP/8005-00000004", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/8005-00000004", "0?callee") in new stack
    -- Executing [[email protected]:7] GotoIf("PJSIP/8005-00000004", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [[email protected]:13] Set("PJSIP/8005-00000004", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:14] ExecIf("PJSIP/8005-00000004", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:15] ExecIf("PJSIP/8005-00000004", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:16] Gosub("PJSIP/8005-00000004", "recordcheck,1(dontcare,internal,8001)") in new stack
    -- Executing [[email protected]:1] NoOp("PJSIP/8005-00000004", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("PJSIP/8005-00000004", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("PJSIP/8005-00000004", "") in new stack
    -- Executing [[email protected]:17] Return("PJSIP/8005-00000004", "") in new stack
    -- Executing [[email protected]:7] GotoIf("PJSIP/8005-00000004", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,13)
    -- Executing [[email protected]:13] GosubIf("PJSIP/8005-00000004", "0?clrheader,1()") in new stack
    -- Executing [[email protected]:14] Macro("PJSIP/8005-00000004", "dial-one,,Ttr,8001") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/8005-00000004", "DEXTEN=8001") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8005-00000004", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:3] GosubIf("PJSIP/8005-00000004", "0?screen,1()") in new stack
    -- Executing [[email protected]:4] GosubIf("PJSIP/8005-00000004", "0?cf,1()") in new stack
    -- Executing [[email protected]:5] GotoIf("PJSIP/8005-00000004", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,8)
    -- Executing [[email protected]:8] GotoIf("PJSIP/8005-00000004", "0?nodial") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/8005-00000004", "0?continue") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/8005-00000004", "EXTHASCW=ENABLED") in new stack
    -- Executing [[email protected]:11] GotoIf("PJSIP/8005-00000004", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,23)
    -- Executing [[email protected]:23] GotoIf("PJSIP/8005-00000004", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [[email protected]:25] GotoIf("PJSIP/8005-00000004", "0?nodial") in new stack
    -- Executing [[email protected]:26] GosubIf("PJSIP/8005-00000004", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/8005-00000004", "DSTRING=") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8005-00000004", "DEVICES=8001") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/8005-00000004", "0?Return()") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/8005-00000004", "0?Set(DEVICES=001)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/8005-00000004", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/8005-00000004", "ITER=1") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/8005-00000004", "THISDIAL=PJSIP/8001") in new stack
    -- Executing [[email protected]:8] GosubIf("PJSIP/8005-00000004", "1?zap2dahdi,1()") in new stack
    -- Executing [[email protected]:1] ExecIf("PJSIP/8005-00000004", "0?Return()") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8005-00000004", "NEWDIAL=") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/8005-00000004", "LOOPCNT2=1") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/8005-00000004", "ITER2=1") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/8005-00000004", "THISPART2=PJSIP/8001") in new stack
    -- Executing [[email protected]:6] ExecIf("PJSIP/8005-00000004", "0?Set(THISPART2=DAHDIIP/8001)") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/8005-00000004", "NEWDIAL=PJSIP/8001&") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/8005-00000004", "ITER2=2") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/8005-00000004", "0?begin2") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/8005-00000004", "THISDIAL=PJSIP/8001") in new stack
    -- Executing [[email protected]:11] Return("PJSIP/8005-00000004", "") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/8005-00000004", "0?docheck") in new stack
    -- Executing [[email protected]:10] NoOp("PJSIP/8005-00000004", "Debug: Found PJSIP Destination PJSIP/8001, updating with PJSIP_DIAL_CONTACTS") in new stack
    -- Executing [[email protected]:11] Set("PJSIP/8005-00000004", "THISDIAL=PJSIP/8001/sip:[email protected]:5060") in new stack
    -- Executing [[email protected]:12] GotoIf("PJSIP/8005-00000004", "0?skipset") in new stack
    -- Executing [[email protected]:13] Set("PJSIP/8005-00000004", "DSTRING=PJSIP/8001/sip:[email protected]:5060&") in new stack
    -- Executing [[email protected]:14] Set("PJSIP/8005-00000004", "ITER=2") in new stack
    -- Executing [[email protected]:15] GotoIf("PJSIP/8005-00000004", "0?begin") in new stack
    -- Executing [[email protected]:16] ExecIf("PJSIP/8005-00000004", "0?Return()") in new stack
    -- Executing [[email protected]:17] Set("PJSIP/8005-00000004", "DSTRING=PJSIP/8001/sip:[email protected]:5060") in new stack
    -- Executing [[email protected]:18] Return("PJSIP/8005-00000004", "") in new stack
    -- Executing [[email protected]:27] GotoIf("PJSIP/8005-00000004", "0?nodial") in new stack
    -- Executing [[email protected]:28] GotoIf("PJSIP/8005-00000004", "0?skiptrace") in new stack
    -- Executing [[email protected]:29] GosubIf("PJSIP/8005-00000004", "1?ctset,1():ctclear,1()") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/8005-00000004", "DB(CALLTRACE/8001)=8005") in new stack
    -- Executing [[email protected]:2] Return("PJSIP/8005-00000004", "") in new stack
    -- Executing [[email protected]:30] Set("PJSIP/8005-00000004", "D_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:31] NoOp("PJSIP/8005-00000004", "Blind Transfer: , Attended Transfer: , User: 8005, Alert Info: ") in new stack
    -- Executing [[email protected]:32] ExecIf("PJSIP/8005-00000004", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:33] ExecIf("PJSIP/8005-00000004", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:34] ExecIf("PJSIP/8005-00000004", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:35] GosubIf("PJSIP/8005-00000004", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [[email protected]:36] ExecIf("PJSIP/8005-00000004", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]:37] GosubIf("PJSIP/8005-00000004", "0?qwait,1()") in new stack
    -- Executing [[email protected]:38] Set("PJSIP/8005-00000004", "__CWIGNORE=") in new stack
    -- Executing [[email protected]:39] Set("PJSIP/8005-00000004", "__KEEPCID=TRUE") in new stack
    -- Executing [[email protected]:40] GotoIf("PJSIP/8005-00000004", "0?usegoto,1") in new stack
    -- Executing [[email protected]:41] GotoIf("PJSIP/8005-00000004", "0?godial") in new stack
    -- Executing [[email protected]:42] Gosub("PJSIP/8005-00000004", "sub-presencestate-display,s,1(8001)") in new stack
    -- Executing [[email protected]:1] Goto("PJSIP/8005-00000004", "state-not_set,1") in new stack
    -- Goto (sub-presencestate-display,state-not_set,1)
    -- Executing [[email protected]:1] Set("PJSIP/8005-00000004", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [[email protected]:2] Return("PJSIP/8005-00000004", "") in new stack
    -- Executing [[email protected]:43] Set("PJSIP/8005-00000004", "CONNECTEDLINE(name,i)=Doorbell") in new stack
    -- Executing [[email protected]:44] Set("PJSIP/8005-00000004", "CONNECTEDLINE(num)=8001") in new stack
    -- Executing [[email protected]:45] Set("PJSIP/8005-00000004", "D_OPTIONS=TtrI") in new stack
    -- Executing [[email protected]:46] Macro("PJSIP/8005-00000004", "dialout-one-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("PJSIP/8005-00000004", "") in new stack
    -- Executing [[email protected]:47] ExecIf("PJSIP/8005-00000004", "0?Set(D_OPTIONS=trII)") in new stack
    -- Executing [[email protected]:48] Dial("PJSIP/8005-00000004", "PJSIP/8001/sip:[email protected]:5060,,TtrIb(func-apply-sipheaders^s^1)") in new stack
    -- PJSIP/8001-00000005 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] NoOp("PJSIP/8001-00000005", "Applying SIP Headers to channel") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/8001-00000005", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:3] While("PJSIP/8001-00000005", "0") in new stack
    -- Jumping to priority 6
    -- Executing [[email protected]:7] Return("PJSIP/8001-00000005", "") in new stack
  == Spawn extension (from-internal, 8001, 1) exited non-zero on 'PJSIP/8001-00000005'
    -- PJSIP/8001-00000005 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called PJSIP/8001/sip:[email protected]:5060
<--- Transmitting SIP response (547 bytes) to UDP:192.168.1.1:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.1:5060;rport=5060;received=192.168.1.1;branch=z9hG4bK-353534-155af64740ec711b81d78256433f2fb8
Call-ID: [email protected]:0:0:0:0:0:0:0
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>;tag=8253e5a2-79ff-4e8c-828e-e0f57b174e8e
CSeq: 2 INVITE
Server: FPBX-13.0.188.8(13.11.2)
Contact: <sip:192.168.1.220:5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Content-Length:  0


    -- Connected line update to PJSIP/8005-00000004 prevented.
<--- Transmitting SIP request (1175 bytes) to UDP:192.168.1.110:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:5060;rport;branch=z9hG4bKPj6293df21-6ba4-4c01-ac26-889157260ca0
From: "Laptop" <sip:[email protected]>;tag=2c9bbe4c-a2e4-4c7e-89b8-82c34e927e45
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: e2b71c3a-c2b7-45c1-9061-0139ddb94e6e
CSeq: 31258 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: FPBX-13.0.188.8(13.11.2)
Content-Type: application/sdp
Content-Length:   500

v=0
o=- 2130796319 2130796319 IN IP4 192.168.1.220
s=Asterisk
c=IN IP4 192.168.1.220
t=0 0
m=audio 18162 RTP/AVP 0 8 3 111 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
m=video 12826 RTP/AVP 99 98 34 31
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=4DE01F
a=rtpmap:98 h263-1998/90000
a=rtpmap:34 H263/90000
a=rtpmap:31 H261/90000
a=sendrecv

<--- Received SIP response (377 bytes) from UDP:192.168.1.110:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.220:5060;rport=5060;branch=z9hG4bKPj6293df21-6ba4-4c01-ac26-889157260ca0
From: "Laptop" <sip:[email protected]>;tag=2c9bbe4c-a2e4-4c7e-89b8-82c34e927e45
To: <sip:[email protected]>
Call-ID: e2b71c3a-c2b7-45c1-9061-0139ddb94e6e
CSeq: 31258 INVITE
User-Agent: Dahua UAC/3.0 VTO2000A V1.200.1000.0
Content-Length: 0


<--- Received SIP response (500 bytes) from UDP:192.168.1.110:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.220:5060;rport=5060;branch=z9hG4bKPj6293df21-6ba4-4c01-ac26-889157260ca0
From: "Laptop" <sip:[email protected]>;tag=2c9bbe4c-a2e4-4c7e-89b8-82c34e927e45
To: <sip:[email protected]>;tag=156114505
Call-ID: e2b71c3a-c2b7-45c1-9061-0139ddb94e6e
CSeq: 31258 INVITE
Contact: <sip:[email protected]:5060>
User-Agent: Dahua UAC/3.0 VTO2000A V1.200.1000.0
MaxRingingTime: 30
MaxConnectingTime: 120
DependentInfo: 0.0.0.0
Content-Length: 0


    -- PJSIP/8001-00000005 is ringing
<--- Transmitting SIP response (547 bytes) to UDP:192.168.1.1:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.1:5060;rport=5060;received=192.168.1.1;branch=z9hG4bK-353534-155af64740ec711b81d78256433f2fb8
Call-ID: [email protected]:0:0:0:0:0:0:0
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>;tag=8253e5a2-79ff-4e8c-828e-e0f57b174e8e
CSeq: 2 INVITE
Server: FPBX-13.0.188.8(13.11.2)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Contact: <sip:192.168.1.220:5060>
Content-Length:  0


<--- Received SIP response (714 bytes) from UDP:192.168.1.110:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.220:5060;rport=5060;branch=z9hG4bKPj6293df21-6ba4-4c01-ac26-889157260ca0
From: "Laptop" <sip:[email protected]>;tag=2c9bbe4c-a2e4-4c7e-89b8-82c34e927e45
To: <sip:[email protected]>;tag=156114505
Call-ID: e2b71c3a-c2b7-45c1-9061-0139ddb94e6e
CSeq: 31258 INVITE
Contact: <sip:[email protected]:5060>
User-Agent: Dahua UAC/3.0 VTO2000A V1.200.1000.0
Content-Type: application/sdp
Content-Length:   252

v=0
o=0 0 0 IN IP4 192.168.1.110
s=Dahua VT 1.5
c=IN IP4 192.168.1.110
t=0 0
m=video 20001 RTP/AVP 96
a=framerate:25.000000
a=rtpmap:96 H264/90000
a=sendrecv
m=audio 20000 RTP/AVP 97 0
a=rtpmap:97 PCM/16000
a=rtpmap:0 PCMU/8000
a=sendrecv

[2016-10-16 18:13:39] NOTICE[10668]: res_pjsip_sdp_rtp.c:335 set_caps: No joint capabilities for 'video' media stream between our configuration((h264|h263p|h263|h261)) and incoming SDP((ulaw|ilbc))
<--- Transmitting SIP request (411 bytes) to UDP:192.168.1.110:5060 --->
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.220:5060;rport;branch=z9hG4bKPj48694f45-0615-4ee5-987d-26f538003651
From: "Laptop" <sip:[email protected]>;tag=2c9bbe4c-a2e4-4c7e-89b8-82c34e927e45
To: <sip:[email protected]>;tag=156114505
Call-ID: e2b71c3a-c2b7-45c1-9061-0139ddb94e6e
CSeq: 31258 ACK
Max-Forwards: 70
User-Agent: FPBX-13.0.188.8(13.11.2)
Content-Length:  0


    -- PJSIP/8001-00000005 answered PJSIP/8005-00000004
<--- Transmitting SIP response (992 bytes) to UDP:192.168.1.1:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.1:5060;rport=5060;received=192.168.1.1;branch=z9hG4bK-353534-155af64740ec711b81d78256433f2fb8
Call-ID: [email protected]:0:0:0:0:0:0:0
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>;tag=8253e5a2-79ff-4e8c-828e-e0f57b174e8e
CSeq: 2 INVITE
Server: FPBX-13.0.188.8(13.11.2)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Contact: <sip:192.168.1.220:5060>
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length:   368

v=0
o=- 0 2 IN IP4 192.168.1.220
s=Asterisk
c=IN IP4 192.168.1.220
t=0 0
m=audio 16374 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
m=video 10656 RTP/AVP 105
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=4DE01F
a=sendonly

    -- Channel PJSIP/8001-00000005 joined 'simple_bridge' basic-bridge <675ee3cf-59d8-4bb1-a8ae-2fd2c383bcd8>
    -- Channel PJSIP/8005-00000004 joined 'simple_bridge' basic-bridge <675ee3cf-59d8-4bb1-a8ae-2fd2c383bcd8>
<--- Received SIP request (748 bytes) from UDP:192.168.1.1:5060 --->
ACK sip:192.168.1.220:5060 SIP/2.0
Call-ID: [email protected]:0:0:0:0:0:0:0
CSeq: 2 ACK
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-353534-9402b889ac05ec17fcd0f77bb28a447a
From: "8005" <sip:[email protected]>;tag=632a848f
To: <sip:[email protected]>;tag=8253e5a2-79ff-4e8c-828e-e0f57b174e8e
Max-Forwards: 70
Authorization: Digest username="8005",realm="asterisk",nonce="1476602019/7aa91e420a34d2adb4b2be27abd9fcb2",uri="sip:[email protected]",response="dea5ae3b76aac4c45ab32655b1f63531",algorithm=md5,opaque="3c3fbc6344a11717",qop=auth,cnonce="xyz",nc=00000001
Contact: "8005" <sip:[email protected]:5060;transport=udp;registering_acc=mydomain_net>
User-Agent: Jitsi2.8.5426Windows 8
Content-Length: 0