Oguzhan Kayhan
2009-Apr-30 12:44 UTC
[asterisk-users] need help on asterisk call forwarding
Hello, I am trying to enable call forwarding feature on asterisk 1.6.0.9 with asterisk-gui. Sure there is no menu for that on gui but, when i try to write some example scripts to extensions.conf to make it work. I totally failed. I dont wanna install smthing like freepbx etc on the system so, i need help to add unconditional etc call forwarding feature for 1.6 Thanks
Oguzhan Kayhan
2009-Apr-30 14:37 UTC
[asterisk-users] need help on asterisk call forwarding
> Hello, > I am trying to enable call forwarding feature on asterisk 1.6.0.9 with > asterisk-gui. Sure there is no menu for that on gui but, when i try to > write some example scripts to extensions.conf to make it work. I totally > failed. > > I dont wanna install smthing like freepbx etc on the system so, i need > help to add unconditional etc call forwarding feature for 1.6 > > > Thanks > >Ok I found an example script that said to be work.. but i have some errors. Here is the script and then the error msgs. [apps] ; Toggle Call Forward exten => *666*,1,Answer exten => *666*,2,GotoIf($[${DB(CFBOOLEAN/${CALLERID(NUM)})} = 1]?3:102) exten => *666*,3,Set(DB(CFBOOLEAN/${CALLERID(NUM)})=0) ; toggle fwd off exten => *666*,4,Playback(call-forward) exten => *666*,5,Playback(disabled) exten => *666*,6,Hangup ; CFBOOLEAN not exist means need to turn it on. ; first check to see if a FWD number is set exten => *666*,102,GotoIf($[${DB(CFBOOLEAN/${CALLERID(NUM)})}= 1]?103:203) exten => *666*,103,Set(DB(CFBOOLEAN/${CALLERID(NUM)}=1)) ; set FWD toggle on. exten => *666*,104,Playback(call-forward) exten => *666*,105,Playback(enabled) exten => *666*,106,Hangup exten => *666*,203,Playback(invalid) exten => *666*,204,Hangup ; Unconditional Call Forward exten => _*21*X.,1,Set(DB(CFIM/${CALLERID(NUM)})=${EXTEN:4}) exten => _*21*X.,2,Playback(call-forward) exten => _*21*X.,3,Hangup exten => *22*,1,DB_DELETE(CFIM/${CALLERID(NUM)}) exten => *22*,2,Hangup When i dial *666* i got the msg "syntax error: syntax error, unexpected '=', expecting $end; Input: = 1" and when i dial *22* i got the error No application 'DB_DELETE' for extension (DLPN_international, *22*, 1) CAn somebody help me fix the errors and explains what is the error about it?> > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Hi, I am recording 16 bit 48kbps PC audio file in wav format and trying to convert it to g722 using sox to play in asterisk. But, unfortunately sox does not support g722. So, I am first converting it to clockrate 8000 wav file and then use rasterisk to convert to g722. But, I hear disturbance in the file while asterisk is playing. This is what i used sox menu..wav -r 8000 -c 1 menu.wav resample -ql rasterisk -x "file convert menu.wav menu.g722" Please let me know where i am doing wrong or if there is a better way to do this. Thanks, Sai Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090501/27ad1c07/attachment.htm
Hello, Take a look to Switch Converter: http://www.nch.com.au/switch/ Good luck. On Fri, May 1, 2009 at 9:39 AM, Sai P. Varanasi <saiprabhakarv at yahoo.com>wrote:> Hi, > I am recording 16 bit 48kbps PC audio file in wav format and trying to > convert it to g722 using sox to play in asterisk. But, unfortunately sox > does not support g722. So, I am first converting it to clockrate 8000 wav > file and then use rasterisk to convert to g722. But, I hear disturbance in > the file while asterisk is playing. > > This is what i used > > sox menu.wav -r 8000 -c 1 menu.wav resample -ql > > rasterisk -x "file convert menu.wav menu.g722" > > Please let me know where i am doing wrong or if there is a better way to do > this. > > Thanks, > Sai > > > ------------------------------ > Bollywood news, movie reviews, film trailers and more! Click here.<http://in.rd..yahoo.com/tagline_movies_1/*http://in.movies.yahoo.com/?wm=n/> > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090501/e6f1e0d6/attachment.htm