Philipp von Klitzing
2003-Oct-30 04:33 UTC
[Asterisk-Users] SIP error: Asked to transmit frame type 64
Hi there, I'll need some help with this: Trying to establish an IAX2 link between two servers works in one direction (SIP client with ulaw), but not in the other (SIP client with GSM). The client used for this is X-Lite behind NAT while both servers have a public IP (I playback an anouncement before trying to connect to the second *). Error on the originating * server: WARNING[27670]: File chan_sip.c, Line 1148 (sip_write): Asked to transmit frame type 64, while native formats is 2 (read/write = 2/2) I really _really_ have no clue why codec "16 bit Signed Linear PCM" is n the game here, to my knowledge that is not supported by X-Lite, and it is certainly not enabled anyware in the conf files either. Should I file a bug report, or is this a setup problem on my side? Philipp In both sip.conf and iax.conf on both servers I have (with slight variations): disallow=all allow=gsm allow=ilbc allow=ulaw We dial "98616" here: exten => _9XXXX,1,Playback(transfer) exten => _9XXXX,2,Ringing exten => _9XXXX,3,Wait(1) exten => _9XXXX,4,Dial(IAX2/myserv:mypw@remote-regist-server/${EXTEN:1}) exten => _9XXXX,5,Congestion exten => _9XXXX,105,Playback(tt-monkeysintro) exten => _9XXXX,106,Hangup my chan_sip.c: static int sip_write(struct ast_channel *ast, struct ast_frame *frame) { struct sip_pvt *p = ast->pvt->pvt; int res = 0; if (frame->frametype == AST_FRAME_VOICE) { if (!(frame->subclass & ast->nativeformats)) { --> --> ast_log(LOG_WARNING, "Asked to transmit frame type %d, while native formats is %d (read/write = %d/%d)\n", frame->subclass, ast->nativeformats, ast->readformat, ast->writeformat);return -1; } Related error reports I found: http://www.mail-archive.com/asterisk-users@lists.digium.com/msg12648.html http://www.mail-archive.com/asterisk-users@lists.digium.com/msg05602.html http://www.mail-archive.com/asterisk-users@lists.digium.com/msg03242.html http://www.mail-archive.com/asterisk-users@lists.digium.com/msg01139.html
Apparently Analagous Threads
- help with annoying warning message: Asked to transmit frame type ulaw, while native formats is 0x2 (gsm) read/write = 0x2 (gsm)/0x2 (gsm)
- Asked to transmit frame type 256, while native formats is 0x4
- Codecs? - Asked to transmit frame type 256, while native formats is 8 (read/write = 8/8)
- Bugfix for CVS-HEAD-06/26/04-21:56:45
- Oneway Audio