[Asterisk-Users] Zap - 256 format frames

Matthew Boehm mboehm at cytelcom.com
Mon Nov 22 12:17:08 MST 2004


Well, it seems that Zap cannot do 729 at all:

channels/chan_zap.c (line 4156):

if ((frame->subclass != AST_FORMAT_SLINEAR) &&
            (frame->subclass != AST_FORMAT_ULAW) &&
            (frame->subclass != AST_FORMAT_ALAW)) {
    ast_log(LOG_WARNING, "Cannot handle frames in %d format\n",
frame->subclass);
    return -1;
}

Seems that Zap can only do slinear, ulaw and alaw. So, how do I force my zap
card to only to alaw?

If I have an incomming Sip 729 call, shouldn't asterisk convert it to 711 to
go out the zap card? I have 10 g729 licenses.

-Matthew

----- Original Message ----- 
From: "Matthew Boehm" <mboehm at cytelcom.com>
To: <asterisk-users at lists.digium.com>
Sent: Monday, November 22, 2004 11:24 AM
Subject: [Asterisk-Users] Zap - 256 format frames


> Any ideas on this warning? If I call this number, sometimes I get this
error
> and sometimes the call goes thru fine. Why would it work sometimes?
>
>     -- Executing Goto("SIP/3044-8d49", "cytel-outgoing|915124512424|1") in
> new stack
>     -- Goto (cytel-outgoing,915124512424,1)
>     -- Executing SetCIDNum("SIP/3044-8d49", "2814494000") in new stack
>     -- Executing Dial("SIP/3044-8d49", "ZAP/g1/15124512424|60|t") in new
> stack
>     -- Called g1/15124512424
>     -- Zap/1-1 answered SIP/3044-8d49
>     -- Executing Dial("Zap/2-1", "SIP/15124512424 at RNK|60") in new stack
>     -- Called 15124512424 at RNK
>     -- Accepting call from '2814494000' to '5124512424' on channel 0/2,
> span1
>     -- Got SIP response 302 "Moved Temporarily" back from XXX.XXX.XXX.70
>     -- Now forwarding Zap/2-1 to
> 'SIP/15124512424 at XXX.XXX.XXX.52:5060'(thanks to SIP/RNK-1050)
>     -- SIP/XXX.XXX.XXX.52:5060-d8b1 is making progress passing it to
Zap/2-1
> Nov 22 10:59:32 WARNING[1126867776]: chan_zap.c:4159 zt_write: Cannot
handle
> frames in 256 format
> Nov 22 10:59:32 WARNING[1126867776]: app_dial.c:358 wait_for_answer:
Unable
> to forward frame
>   == Spawn extension (all-incomming, 5124512424, 1) exited non-zero on
> 'Zap/2-1'
>     -- Hungup 'Zap/2-1'
>
> sip.conf
> -----------
> [RNK]
> <snip>
> disallow=all
> allow=g729
>
> extensions.conf
> ----------------
> exten => 5124512424,1,Dial(SIP/15124612424 at RNK,60)
>
> Thanks,
> Matthew
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list