[Asterisk-video] h324m_gw_answer() disconnects me from asterisk cli and call get dropped

Klaus Darilion klaus.mailinglists at pernau.at
Wed Dec 1 12:42:53 CST 2010



Am 01.12.2010 15:57, schrieb Konstantinos Liadakis:
> Hello,
>
> This is my first post to this list.
>
> I have a debian box with 1.4.15 asterisk and all video stuff installed
> using directions from
> http://asterisk-party.org/index.php/Asterisk_Video_3G_FR
>
> I am using zap fro my PRI
>
> I can see all modules in asterisk module directory.
>
> I have *succeded *in making a loopback test 3g phone --> PRI -->
> Asterisk using dialplan below
>
> ;exten => _1XXX,1,Answer
> ;exten => _1XXX,n,h324m_loopback()
> ;exten => _1XXX,n,Hangup
>
> Now, i am trying to play a video using mp4play to a 3g phone calling my
> asterisk.
>
> I record mp4 file using my bria softphone and the following dialplan:
>
> exten => 700,1,Wait,0 ; Wait a second, just for fun
> exten => 700,2,Answer ; Answer the line
> exten => 700,3,mp4play(/usr/src/videomenu/menu.mp4)
>
> file is saved alright, and can be replayed to my bria softphone with
> mp4play with no problem.


As next step, before streaming video, you should make an echo test. 
Similar to the loopback test, but this time the H324m stream is 
encoded/decoded, e.g:

[incoming_calls]
exten => _1XXX,1,h324m_gw(menu at 3gin)

[3gin]

exten => menu,1,h324m_gw_answer()
exten => menu,2,Wait(1)
exten => menu,3,Echo()

> But as soon as call comes in i get disconnected from asterisk cli and
> call is dropped

Dropping from CLI happens when Asterisk crashes - maybe Asterisk 
crashes? Are you automatically starting ASterisk when it crashes? Take a 
look at the uptime after reconnecting.

regards
Klaus


>
> asterisk-video*CLI> -- Accepting call from '6936525113' to '1400' on
> channel 0/1, span 1
> asterisk-video*CLI> -- Executing [1400 at incoming_calls:1]
> h324m_gw("Zap/1-1", "menu at 3gin") in new stack
> asterisk-video*CLI> asterisk-video*CLI>
> asterisk-video*CLI> Disconnected from Asterisk server
> No such command '-- Accepting' (type 'help' for help)
> No such command '-- Executing' (type 'help' for help)
> No such command 'asterisk-video*CLI>' (type 'help' for help)
> No such command 'Disconnected from' (type 'help' for help)
> asterisk-video*CLI>
> asterisk-video*CLI>
> asterisk-video*CLI>
> asterisk-video*CLI> pri debug span 1
> Enabled debugging on span 1
> asterisk-video*CLI> h324m debug level 4
> app_h324m Debugging enabled level: 4
> asterisk-video*CLI>
> < Protocol Discriminator: Q.931 (8) len=42
> < TEI=0 Call Ref: len= 2 (reference 26/0x1A) (Sent from originator)
> < Message Type: SETUP (5)
> < [a1]
> < 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)
> < User information layer 1: H.223/H.245 Multimedia (38)
> < [18 03 a1 83 81]
> < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0
> Preferred Dchan: 0
> < ChanSel: As indicated in following octets
> < Ext: 1 Coding: 0 Number Specified Channel Type: 3
> < Ext: 1 Channel: 1 Type: CPE]
> < [6c 0c 21 83 36 39 33 36 35 32 35 31 31 33]
> < Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI:
> ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> < Presentation: Presentation allowed of network provided number (3)
> '6936525113' ]
> < [70 05 a1 31 34 30 30]
> < Called Number (len= 7) [ Ext: 1 TON: National Number (2) NPI:
> ISDN/Telephony Numbering Plan (E.164/E.163) (1) '1400' ]
> < [7c 03 88 90 a6]
> < IE: Low-layer Compatibility (len = 5)
> -- Making new call for cref 26
> Received message for call 0x9807510 on 0x97c61b0 TEI/SAPI 0/0, call->pri
> is 0x97c61b0 TEI/SAPI 0/0
> -- 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:6966 post_handle_q931_message: Call 26 enters state 6 (Call
> Present). Hold state: Idle
> q931.c:4594 q931_call_proceeding: Call 26 enters state 9 (Incoming Call
> Proceeding). Hold state: Idle
>
>  > DL-DATA request
>  > Protocol Discriminator: Q.931 (8) len=10
>  > TEI=0 Call Ref: len= 2 (reference 26/0x1A) (Sent to originator)
>  > Message Type: CALL PROCEEDING (2)
> TEI=0 Transmitting N(S)=30, window is open V(A)=30 K=7
>
>  > Protocol Discriminator: Q.931 (8) len=10
>  > TEI=0 Call Ref: len= 2 (reference 26/0x1A) (Sent to originator)
>  > Message Type: CALL PROCEEDING (2)
>  > [18 03 a9 83 81]
>  > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0
> Exclusive Dchan: 0
>  > ChanSel: As indicated in following octets
>  > Ext: 1 Coding: 0 Number Specified Channel Type: 3
>  > Ext: 1 Channel: 1 Type: CPE]
> -- Accepting call from 'xxxxxxxxxxx' to '1400' on channel 0/1, span 1
> -- Executing [1400 at incoming_calls:1] h324m_gw("Zap/1-1", "menu at 3gin") in
> new stack
> asterisk-video*CLI>
> Disconnected from Asterisk server
> asterisk-video:~#
>
>
>



More information about the asterisk-video mailing list