-- Executing [01476292507@testdial:1] Dial("PJSIP/squiresvi-000000eb", "PJSIP/custom/sip:901@pbx.example.com,,b(testaddhandler^set_handler^1)") in new stack -- PJSIP/custom-000000ec Internal Gosub(testaddhandler,set_handler,1) start -- Executing [set_handler@testaddhandler:1] NoOp("PJSIP/custom-000000ec", "Setting handler") in new stack -- Executing [set_handler@testaddhandler:2] Set("PJSIP/custom-000000ec", "CHANNEL(hangup_handler_push)=testhandler,outbound_handler,1") in new stack -- Executing [set_handler@testaddhandler:3] Return("PJSIP/custom-000000ec", "") in new stack == Spawn extension (default, 01476292507, 1) exited non-zero on 'PJSIP/custom-000000ec' -- PJSIP/custom-000000ec Internal Gosub(testaddhandler,set_handler,1) complete GOSUB_RETVAL= -- Called PJSIP/custom/sip:901@pbx.example.com -- PJSIP/custom-000000ec is ringing (caller hangs up) -- PJSIP/custom-000000ec Internal Gosub(testhandler,outbound_handler,1) start -- Executing [outbound_handler@testhandler:1] NoOp("PJSIP/custom-000000ec", "## Hangup handler") in new stack -- Executing [outbound_handler@testhandler:2] NoOp("PJSIP/custom-000000ec", "## CHANNEL=PJSIP/custom-000000ec") in new stack -- Executing [outbound_handler@testhandler:3] NoOp("PJSIP/custom-000000ec", "## HANGUPCAUSE_KEYS=PJSIP/custom-000000ec") in new stack -- Executing [outbound_handler@testhandler:4] NoOp("PJSIP/custom-000000ec", "## HANGUPCAUSE=SIP 180 Ringing") in new stack -- Executing [outbound_handler@testhandler:5] Return("PJSIP/custom-000000ec", "") in new stack == Spawn extension (default, 01476292507, 1) exited non-zero on 'PJSIP/custom-000000ec' -- PJSIP/custom-000000ec Internal Gosub(testhandler,outbound_handler,1) complete GOSUB_RETVAL= == Spawn extension (testdial, 01476292507, 1) exited non-zero on 'PJSIP/squiresvi-000000eb' U 10.20.41.27:5060 -> 10.20.40.164:5060 #71 INVITE sip:901@pbx.example.com SIP/2.0. Via: SIP/2.0/UDP 10.20.41.27:5060;rport;branch=z9hG4bKPj34002329-185b-470d-89e4-9a2a715c1344. From: " " ;tag=1dd97590-2f08-45dc-8edd-43fb251636e5. To: . Contact: . Call-ID: cead1ed0-6127-4c4c-8edb-a5e1f1cc6c10. CSeq: 8840 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: Asterisk PBX certified/13.21-cert2. Content-Type: application/sdp. Content-Length: 394. . v=0. o=- 406063569 406063569 IN IP4 10.20.41.27. s=Asterisk. c=IN IP4 10.20.41.27. t=0 0. m=audio 14976 RTP/AVP 8 0 3 9 110 117 119 101. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000. a=rtpmap:3 GSM/8000. a=rtpmap:9 G722/8000. a=rtpmap:110 speex/8000. a=rtpmap:117 speex/16000. a=rtpmap:119 speex/32000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=ptime:20. a=maxptime:60. a=sendrecv. U 10.20.40.164:5060 -> 10.20.41.27:5060 #72 SIP/2.0 100 Trying. Via: SIP/2.0/UDP 10.20.41.27:5060;branch=z9hG4bKPj34002329-185b-470d-89e4-9a2a715c1344;received=10.20.41.27;rport=5060. From: " " ;tag=1dd97590-2f08-45dc-8edd-43fb251636e5. To: . Call-ID: cead1ed0-6127-4c4c-8edb-a5e1f1cc6c10. CSeq: 8840 INVITE. Server: Asterisk PBX 1.6.2.6. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Supported: replaces, timer. Require: timer. Session-Expires: 1800;refresher=uas. Contact: . Content-Length: 0. . U 10.20.40.164:5060 -> 10.20.41.27:5060 #73 SIP/2.0 180 Ringing. Via: SIP/2.0/UDP 10.20.41.27:5060;branch=z9hG4bKPj34002329-185b-470d-89e4-9a2a715c1344;received=10.20.41.27;rport=5060. From: " " ;tag=1dd97590-2f08-45dc-8edd-43fb251636e5. To: ;tag=as69e781fd. Call-ID: cead1ed0-6127-4c4c-8edb-a5e1f1cc6c10. CSeq: 8840 INVITE. Server: Asterisk PBX 1.6.2.6. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Supported: replaces, timer. Require: timer. Session-Expires: 1800;refresher=uas. Contact: . Content-Length: 0. . U 10.20.41.27:5060 -> 10.20.40.164:5060 #82 CANCEL sip:901@pbx.example.com SIP/2.0. Via: SIP/2.0/UDP 10.20.41.27:5060;rport;branch=z9hG4bKPj34002329-185b-470d-89e4-9a2a715c1344. From: " " ;tag=1dd97590-2f08-45dc-8edd-43fb251636e5. To: . Call-ID: cead1ed0-6127-4c4c-8edb-a5e1f1cc6c10. CSeq: 8840 CANCEL. Reason: Q.850;cause=0. Max-Forwards: 70. User-Agent: Asterisk PBX certified/13.21-cert2. Content-Length: 0. . U 10.20.40.164:5060 -> 10.20.41.27:5060 #84 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP 10.20.41.27:5060;branch=z9hG4bKPj34002329-185b-470d-89e4-9a2a715c1344;received=10.20.41.27;rport=5060. From: " " ;tag=1dd97590-2f08-45dc-8edd-43fb251636e5. To: ;tag=as69e781fd. Call-ID: cead1ed0-6127-4c4c-8edb-a5e1f1cc6c10. CSeq: 8840 INVITE. Server: Asterisk PBX 1.6.2.6. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Supported: replaces, timer. Content-Length: 0. . U 10.20.40.164:5060 -> 10.20.41.27:5060 #85 SIP/2.0 200 OK. Via: SIP/2.0/UDP 10.20.41.27:5060;branch=z9hG4bKPj34002329-185b-470d-89e4-9a2a715c1344;received=10.20.41.27;rport=5060. From: " " ;tag=1dd97590-2f08-45dc-8edd-43fb251636e5. To: ;tag=as69e781fd. Call-ID: cead1ed0-6127-4c4c-8edb-a5e1f1cc6c10. CSeq: 8840 CANCEL. Server: Asterisk PBX 1.6.2.6. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Supported: replaces, timer. Content-Length: 0. . U 10.20.41.27:5060 -> 10.20.40.164:5060 #86 ACK sip:901@pbx.example.com SIP/2.0. Via: SIP/2.0/UDP 10.20.41.27:5060;rport;branch=z9hG4bKPj34002329-185b-470d-89e4-9a2a715c1344. From: " " ;tag=1dd97590-2f08-45dc-8edd-43fb251636e5. To: ;tag=as69e781fd. Call-ID: cead1ed0-6127-4c4c-8edb-a5e1f1cc6c10. CSeq: 8840 ACK. Max-Forwards: 70. User-Agent: Asterisk PBX certified/13.21-cert2. Content-Length: 0. .