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

Konstantinos Liadakis kliadakis at yuboto.com
Thu Dec 2 03:29:45 CST 2010


On 1/12/2010 8:42 μμ, Klaus Darilion wrote:
>
>
> 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:~#
>>
>>
>>
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1170 / Virus Database: 426/3291 - Release Date: 12/01/10
>
>
Ok, some more questions....

I am using asterisk 1.4.15 with 1.4.11.4 libpri and 1.4.12.1 zaptel

Do you think i should change to a more recent asterisk and libpri and 
dahdi instead of zaptel? I suspect that zaptel might be causing the 
problem, as i am having trouble to start it again after an asterisk 
disconnect

asterisk-video*CLI> module load chan_zaptel.so
[2010-12-02 11:25:27] WARNING[9033]: loader.c:362 load_dynamic_module: 
Error loading module 'chan_zaptel.so': 
/usr/lib/asterisk/modules/chan_zaptel.so: cannot open shared object 
file: No such file or directory
[2010-12-02 11:25:27] WARNING[9033]: loader.c:646 load_resource: Module 
'chan_zaptel.so' could not be loaded.

If i reboot then everything will be fine and i will be able to make 
normal calls

Also i read about a patch in libpri in order to make outbound 3g calls, 
which in fact is what i want to do. I havent applied any patch to 
libpri. Should i and if yes where do i get it

Finally it is a pitty that there is no little wiki about this wonderfull 
project, i am having difficulty to find dialplans to test, like how to 
use app_transcode and how to set up test environment e.g. how to make 
sip to 3g and vice versa

Thank you in advance

Regards

Dinos



More information about the asterisk-video mailing list