Nasir Iqbal
2007-Jun-20 17:52 UTC
[asterisk-users] different codec for different extensions
Hi All, I am wondering that how I can setup different codec for different extensions in my dial plan. scanario will when user X (Sip) call 111 extension in default context. The Asterisk response should be in GSM codec When user X (Sip) call 222 extension in default context. the Asterisk response should be in G711 Codec Actually I want to setup an extension for FAX receiving (rx_fax) and other for IVR. when your call FAX extension the codec will be G711 and when user call IVR the codec must be GSM Please help me Thanks Nasir Iqbal
Mojo with Horan & Company, LLC
2007-Jun-21 22:18 UTC
[asterisk-users] different codec for different extensions
Configure the channels with the proper disallow= and allow= lines, and Asterisk should figure the rest out. I could be making drastic assumptions about your situation, but it seems like this: -----sip.conf [userX] ... context=internal disallow=all allow=gsm allow=ulaw ... [fax] ... disallow=all allow=ulaw ... Then any IVRs that userX accesses should be in gsm because it's the preferred codec? Assuming that the gsm sound files ARE installed? You might experiment with this. But when userX is bridged to the fax channel, ulaw is the only one the fax channel allows, so it's chosen on both ends. Shouldn't this work? Mojo Nasir Iqbal wrote:> Hi All, > > I am wondering that how I can setup different codec for different > extensions in my dial plan. > > scanario will > > when user X (Sip) call 111 extension in default context. The Asterisk > response should be in GSM codec > > When user X (Sip) call 222 extension in default context. the Asterisk > response should be in G711 Codec > > Actually I want to setup an extension for FAX receiving (rx_fax) and > other for IVR. when your call FAX extension the codec will be G711 and > when user call IVR the codec must be GSM > > > Please help me > > > Thanks > > Nasir Iqbal > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users