[Asterisk-video] [spam] Outbound Call / Callout Support

Cihan Aksakal cihan.aksakal at viif.de
Tue Nov 13 07:41:15 CST 2007


Hi,

We have made some mistakes patching asterisk. Now I can initiate a
outbound video call.

I tried to use asterisk as a relay making a inbound call and forwarding
it with a outbound call to a other device. But I get a hangup after
accepting the outbound call.

The logs and conf are attached.

Has anybody successfully made a 3G-324M outbound call and connected two
mobile phones with each other? Or has anybody played a video to a device
connected with a outbound call?

Regards,
Cihan

*** extensions.conf:

[from-pri]
exten => ${PRI}500,1,Noop(Answered connection from ${CALLERID(all)} to
context: ${CONTEXT})
exten => ${PRI}500,n,Answer
exten => ${PRI}500,n,NoOp(ul1 is ${CHANNEL(userinformationlayer1)})
exten => ${PRI}500,n,h324m_call(666 at test)

[test]
exten => 666,1,NoOp(ul1 is ${CHANNEL(userinformationlayer1)})
exten => 666,n,Set(CHANNEL(transfercapability)=VIDEO)
exten => 666,n,NoOp(transfer=${CHANNEL(transfercapability)})
exten => 666,n,Set(CHANNEL(userinformationlayer1)=38)
exten => 666,n,NoOp(ul1=${CHANNEL(userinformationlayer1)})
exten => 666,n,Dial,Zap/g1/1727054530


*** Asterisk-LOG:

BlnAst02*CLI>
< Protocol Discriminator: Q.931 (8)  len=49
< Call Ref: len= 2 (reference 884/0x374) (Originator)
< Message type: SETUP (5)
< [a1]02*CLI>
< Sending Complete (len= 1)
< [04 03 88 90 a6]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer
capability: Unrestricted digital information (8)
<                              Ext: 1  Trans mode/rate: 64kbps,
circuit-mode (16)
<                              Ext: 1  User information layer 1: H.223
and H.245 (38)
< [18 03 a9 83 82]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0
Exclusive  Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0  Number Specified  Channel
Type: 3
<                       Ext: 1  Channel: 2 ]
< [6c 0d 21 83 31 37 36 32 31 30 30 37 39 35 39]
< Calling Number (len=15) [ Ext: 0  TON: National Number (2)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation allowed of
network provided number (3)  '17621007959' ]
< [70 0a c1 32 32 31 39 34 33 35 30 30]
< Called Number (len=12) [ Ext: 1  TON: Subscriber Number (4)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '221943500' ]
< [7c 04 88 90 26 90]
< IE: Low-layer Compatibility (len = 6)
-- Making new call for cr 884
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 124 (cs0, Low-layer Compatibility)
q931.c:3297 q931_receive: call 884 on channel 2 enters state 6 (Call
Present)
q931.c:2571 q931_call_proceeding: call 884 on channel 2 enters state 9
(Incoming Call Proceeding)
> Protocol Discriminator: Q.931 (8)  len=10
> Call Ref: len= 2 (reference 884/0x374) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 03 a9 83 82]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0
Exclusive  Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  Coding: 0  Number Specified  Channel
Type: 3
>                       Ext: 1  Channel: 2 ]
    -- Accepting call from '017621007959' to '221943500' on channel 0/2,
span 1
    -- Executing [221943500 at from-pri:1] NoOp("Zap/2-1", "Answered
connection from "" <017621007959> to context: from-pri") in new stack
    -- Executing [221943500 at from-pri:2] Answer("Zap/2-1", "") in new
stack
q931.c:2700 q931_connect: call 884 on channel 2 enters state 8 (Connect
Request)
> Protocol Discriminator: Q.931 (8)  len=10
> Call Ref: len= 2 (reference 884/0x374) (Terminator)
> Message type: CONNECT (7)
> [18 03 a9 83 82]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0
Exclusive  Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  Coding: 0  Number Specified  Channel
Type: 3
>                       Ext: 1  Channel: 2 ]
    -- Executing [221943500 at from-pri:3] NoOp("Zap/2-1", "ul1 is 38") in
new stack
    -- Executing [221943500 at from-pri:4] h324m_call("Zap/2-1",
"666 at test") in new stack
    -- Executing [666 at test:1] NoOp("Local/666 at test-fee3,2", "ul1 is 0")
in new stack
    -- Executing [666 at test:2] Set("Local/666 at test-fee3,2",
"CHANNEL(transfercapability)=VIDEO") in new stack
    -- Executing [666 at test:3] NoOp("Local/666 at test-fee3,2",
"transfer=VIDEO") in new stack
    -- Executing [666 at test:4] Set("Local/666 at test-fee3,2",
"CHANNEL(userinformationlayer1)=38") in new stack
    -- Executing [666 at test:5] NoOp("Local/666 at test-fee3,2", "ul1=38") in
new stack
    -- Executing [666 at test:6] Dial("Local/666 at test-fee3,2",
"Zap/g1/1727054530") in new stack
-- Making new call for cr 32772
    -- digital call, setting user information layer 1 to 38 (0x26)
    -- Requested transfer capability: 0x18 - VIDEO
> Protocol Discriminator: Q.931 (8)  len=44
> Call Ref: len= 2 (reference 4/0x4) (Originator)
> Message type: SETUP (5)
> [04 03 88 90 a6]
> Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer
capability: Unrestricted digital information (8)
>                              Ext: 1  Trans mode/rate: 64kbps,
circuit-mode (16)
>                              Ext: 1  User information layer 1: H.223
and H.245 (38)
> [18 03 a9 83 81]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0
Exclusive  Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  Coding: 0  Number Specified  Channel
Type: 3
>                       Ext: 1  Channel: 1 ]
> [6c 0e 21 80 30 31 37 36 32 31 30 30 37 39 35 39]
> Calling Number (len=16) [ Ext: 0  TON: National Number (2)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>                           Presentation: Presentation permitted, user
number not screened (0)  '017621007959' ]
> [70 0b a1 31 37 32 37 30 35 34 35 33 30]
> Called Number (len=13) [ Ext: 1  TON: National Number (2)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '1727054530' ]
q931.c:2880 q931_setup: call 32772 on channel 1 enters state 1 (Call
Initiated)
    -- Called g1/1727054530
< Protocol Discriminator: Q.931 (8)  len=10
< Call Ref: len= 2 (reference 4/0x4) (Terminator)
< Message type: SETUP ACKNOWLEDGE (13)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0
Exclusive  Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0  Number Specified  Channel
Type: 3
<                       Ext: 1  Channel: 1 ]
-- Processing IE 24 (cs0, Channel Identification)
q931.c:3621 q931_receive: call 32772 on channel 1 enters state 2
(Overlap sending)
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 884/0x374) (Originator)
< Message type: CONNECT ACKNOWLEDGE (15)
q931.c:3455 q931_receive: call 884 on channel 2 enters state 10 (Active)
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 4/0x4) (Terminator)
< Message type: ALERTING (1)
q931.c:3342 q931_receive: call 32772 on channel 1 enters state 4 (Call
Delivered)
    -- Zap/1-1 is ringing
< Protocol Discriminator: Q.931 (8)  len=16
< Call Ref: len= 2 (reference 4/0x4) (Terminator)
< Message type: CONNECT (7)
< [29 05 07 0b 06 10 0b]
< Time Date (len= 7) [ 07-11-06 16:11 ]
< [4c 02 00 a3]
< Connected Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI:
Unknown Number Plan (0)
<                             Ext: 1  Presentation: Presentation
prohibited of network provided number (35)  '' ]
-- Processing IE 41 (cs0, Date/Time)
-- Processing IE 76 (cs0, Connected Number)
q931.c:3372 q931_receive: call 32772 on channel 1 enters state 10
(Active)
> Protocol Discriminator: Q.931 (8)  len=5
> Call Ref: len= 2 (reference 4/0x4) (Originator)
> Message type: CONNECT ACKNOWLEDGE (15)
    -- Zap/1-1 answered Local/666 at test-fee3,2
  == Spawn extension (test, 666, 6) exited non-zero on
'Local/666 at test-fee3,2'
< Protocol Discriminator: Q.931 (8)  len=29
< Call Ref: len= 2 (reference 4/0x4) (Terminator)
< Message type: FACILITY (98)
< [1c 16 91 a1 13 02 02 42 89 02 01 22 30 0a a1 05 30 03 02 01 01 82 01
00]
< Facility (len=24, codeset=0) [ 0x91, 0xA1, 0x13, 0x02, 0x02, 'B',
0x89, 0x02, 0x01, '"0', 0x0A, 0xA1, 0x05, '0', 0x03, 0x02, 0x01, 0x01,
0x82, 0x01, 0x00 ]
PROTOCOL 11
A1 0013 (CONTEXT SPECIFIC [1])
  02 0002 42 89 (INTEGER: 17033)
  02 0001 22 (INTEGER: 34)
  30 000A (SEQUENCE)
    A1 0005 (CONTEXT SPECIFIC [1])
      30 0003 (SEQUENCE)
        02 0001 01 (INTEGER: 1)
    82 0001 00 (CONTEXT SPECIFIC [2])
-- Processing IE 28 (cs0, Facility)
Handle Q.932 ROSE Invoke component
  [ Handling operation 34 ]
ROSE 34: AOC-D Charging Unit - not handled! [ 30 0A A1 05 30 03 02 01 01
82 01 00 ] - [0...0.......]
< Protocol Discriminator: Q.931 (8)  len=18
< Call Ref: len= 2 (reference 4/0x4) (Terminator)
< Message type: INFORMATION (123)
< [28 0b 31 20 45 69 6e 68 65 69 74 65 6e]
< Display (len=11) [ 1 Einheiten ]
-- Processing IE 40 (cs0, Display)
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 884/0x374) (Originator)
< Message type: DISCONNECT (69)
< [08 02 80 90]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0
Location: User (0)
<                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
-- Processing IE 8 (cs0, Cause)
q931.c:3562 q931_receive: call 884 on channel 2 enters state 12
(Disconnect Indication)
    -- Channel 0/2, span 1 got hangup request, cause 16
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate
Connect Request
q931.c:2764 q931_disconnect: call 32772 on channel 1 enters state 11
(Disconnect Request)
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 4/0x4) (Originator)
> Message type: DISCONNECT (69)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
    -- Hungup 'Zap/1-1'
  == Spawn extension (from-pri, 221943500, 4) exited non-zero on
'Zap/2-1'
    -- Executing [h at from-pri:1] NoOp("Zap/2-1", "Channel got hung up")
in new stack
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication,
peerstate Disconnect Request
q931.c:2716 q931_release: call 884 on channel 2 enters state 19 (Release
Request)
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 884/0x374) (Terminator)
> Message type: RELEASE (77)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
    -- Hungup 'Zap/2-1'
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 884/0x374) (Originator)
< Message type: RELEASE COMPLETE (90)
q931.c:3502 q931_receive: call 884 on channel 2 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
< Protocol Discriminator: Q.931 (8)  len=41
< Call Ref: len= 2 (reference 4/0x4) (Terminator)
< Message type: RELEASE (77)
< [1c 15 91 a1 12 02 02 42 8a 02 01 24 30 09 30 07 a1 05 30 03 02 01 02]
< Facility (len=23, codeset=0) [ 0x91, 0xA1, 0x12, 0x02, 0x02, 'B',
0x8A, 0x02, 0x01, '$0', 0x09, '0', 0x07, 0xA1, 0x05, '0', 0x03, 0x02,
0x01, 0x02 ]
PROTOCOL 11I>
A1 0012 (CONTEXT SPECIFIC [1])
  02 0002 42 8A (INTEGER: 17034)
  02 0001 24 (INTEGER: 36)
  30 0009 (SEQUENCE)
    30 0007 (SEQUENCE)
      A1 0005 (CONTEXT SPECIFIC [1])
        30 0003 (SEQUENCE)
          02 0001 02 (INTEGER: 2)
< [28 0b 32 20 45 69 6e 68 65 69 74 65 6e]
< Display (len=11) [ 2 Einheiten ]
-- Processing IE 28 (cs0, Facility)
Handle Q.932 ROSE Invoke component
  [ Handling operation 36 ]
-- Processing IE 40 (cs0, Display)
q931.c:3537 q931_receive: call 32772 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release
Request
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 4/0x4) (Originator)
> Message type: RELEASE COMPLETE (90)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
    -- Channel 0/1, span 1 received AOC-E charging 2 units
BlnAst02*CLI>



More information about the asterisk-video mailing list