[Sems] using pre-encoded g729 stream with announce

Andrew Radke andrew.radke at yuruga.com.au
Mon Sep 22 05:58:45 CEST 2008


Hi Stefan,

I just can't seem to get precoded_announce to work with G729 (G711u  
works perfectly). I always get the following:
===============================================
$ /opt/sems/sbin/sems -E -D 2 -f /opt/sems/etc/sems/sems.conf
Sip Express Media Server (1.0.0-rc1 (i386/linux))


Configuration:
        configuration file:  /opt/sems/etc/sems/sems.conf
        plug-in path:        /opt/sems/lib/sems/plug-in/
        daemon mode:         0
        local SIP IP:        192.168.52.10
        public media IP:
        local SIP port:      5080
        local media IP:      192.168.52.10
        application:         $(mapping)

(19347) INFO: onLoad (SipCtrlInterface.cpp:57): SIP bind_addr:  
`192.168.52.10'.
(19347) INFO: onLoad (SipCtrlInterface.cpp:58): SIP bind_port: `5080'.
(19347) INFO: run (SipCtrlInterface.cpp:305): Starting SIP control  
interface
(19347) ERROR: setCurrentPayload (AmAudio.cpp:81): Could not find  
payload <18>
(19347) ERROR: run (AmSession.cpp:423):  
PrecodedDialog::onSessionStart: Cannot open file

(19347) ERROR: run (AmSession.cpp:431): 500 unexpected exception.
===============================================

Our  config looks like this (/opt/sems/lib/sems/audio/ 
precoded_announce/test.predef):
===============================================
### LinkSys calls it G729a, everything else is G729
18;G729;8000;1;<none>;20;20;/opt/sems/lib/sems/audio/precoded_announce/ 
yuruga.g729;
18;G729a;8000;1;<none>;20;80;/opt/sems/lib/sems/audio/ 
precoded_announce/yuruga.g729;

0;PCMU;8000;1;<none>;20;160;/opt/sems/lib/sems/audio/precoded_announce/ 
yuruga.ul;
8;PCMA;8000;1;<none>;20;160;/opt/sems/lib/sems/audio/precoded_announce/ 
yuruga.al;
===============================================

Is there something else that I need to configure to tell it to allow  
G729 even though it doesn't understand it.

I also notice that every 10 seconds in the G711u stream I get a some  
beeps though I haven't investigated this. It did just occur to me that  
maybe precoded_announce might be adding them in and that is why it  
needs to understand the stream?

Thanks,
Andrew Radke
Yuruga Nursery Pty Ltd
Clonal Solutions Australia Pty Ltd
PO Box 220
Walkamin Qld 4872
Phone: (07) 4093 3826
Fax: (07) 4093 3869
Email: andrew.radke at yuruga.com.au
Web: www.yuruga.com.au

On 16/09/2008, at 7:20 PM, Stefan Sayer wrote:

> Hello,
>
> o Andrew Radke [09/16/08 03:27]:
>> Hi all,
>> I'd like to use announce as a music on hold service with a pre- 
>> encoded g729 stream. I have it working perfectly with a wav file  
>> and g711u but this is too high bandwidth for MOH with Internet  
>> routed calls.
>> Could announce or SEMS in general be setup to stream pre-encoded  
>> streams in different codecs in the same way it does with wav files  
>> and g711u/a?
> try precoded_announce application, its config file, e.g.
> http://svn.berlios.de/wsvn/sems/branches/1.0.0/apps/precoded_announce/etc/precoded_announce.conf
> point to a .predef file (example here:
> http://svn.berlios.de/wsvn/sems/branches/1.0.0/apps/precoded_announce/wav/test.predef 
>  ) which defines the different available codecs and points to their  
> raw files; for g729 the following line should work
> # format:
> # codec id;payload name;samplerate;channels;format parameters;frame
> # milliseconds;frame bytes;filename (full path)
> 18;g729;8000;1;<none>;20;20;myprecodedg729file.raw;
>
> or, if you want to send 10 ms packets (probably not, if you want to  
> save bandwidth):
> 18;g729;8000;1;<none>;10;10;myprecodedg729file.raw;
>
> Alternatively, if you can, use codecs like speex, or iLBC.
>
> Stefan
>
>> Regards,
>> Andrew Radke
>> Yuruga Nursery Pty Ltd
>> Clonal Solutions Australia Pty Ltd
>> PO Box 220
>> Walkamin Qld 4872
>> Phone: (07) 4093 3826
>> Fax: (07) 4093 3869
>> Email: andrew.radke at yuruga.com.au <file:///Network/Servers/mac-server.internal.yuruga.com.au/Users/andrew.radke/Application%20Data/Microsoft/Signatures/andrew.radke@yuruga.com.au 
>> >
>> Web: www.yuruga.com.au <http://www.yuruga.com.au/>
>> ------------------------------------------------------------------------
>> _______________________________________________
>> Sems mailing list
>> Sems at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/sems
>
> -- 
> Stefan Sayer
> VoIP Services
>
> stefan.sayer at iptego.com
> www.iptego.com
>
> IPTEGO GmbH
> Am Borsigturm 40
> 13507 Berlin
> Germany
>
> Amtsgericht Charlottenburg, HRB 101010
> Geschaeftsfuehrer: Alexander Hoffmann
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.iptel.org/pipermail/sems/attachments/20080922/05dd80aa/attachment.htm 


More information about the Sems mailing list