Bartosz Wegrzyn - asterisk
2006-Jan-02 08:20 UTC
[Asterisk-Users] Translating between different codes
Hi, I would like to know if asterisk is able to translate between two differnet codecs. For example: I have this config in sip.conf file: [phone] disallow=all allow=ulaw dtmfmode=rfc2833 dtmf=rfc2833 username=phone type=friend host=dynamic secret=xxxx mailbox=3001 context = sip callerid="Wireless <3001>" canreinvite=no qualify=yes qualify=3000 nat=yes [laptop] disallow=all allow=g726 dtmfmode=rfc2833 dtmf=rfc2833 username=laptop type=friend host=dynamic secret=xxxx mailbox=3002 context = sip callerid="Laptop" <3002> canreinvite=no qualify=yes qualify=3000 nat=yes Should asterisk translate between two codes. First clent is iaxy, second is sjphone. It is not working for me, and I am getting error on sjphone: "Unabke to agree on media streems". When I change the codec for laptop to ulaw everything worls ok. This would mean that asterisk cannot establish communication if both ends have different codecs supported. Is this right??? Thank You Bartosz Wegrzyn
be sure you allow the g729 codec in [general] context in sip.conf for the sjphone. On 1/2/06, Bartosz Wegrzyn - asterisk <junk@lexoncom.com> wrote:> Hi, > > I would like to know if asterisk is able to translate between two > differnet codecs. For example: > > I have this config in sip.conf file: > > [phone] > disallow=all > allow=ulaw > dtmfmode=rfc2833 > dtmf=rfc2833 > username=phone > type=friend > host=dynamic > secret=xxxx > mailbox=3001 > context = sip > callerid="Wireless <3001>" > canreinvite=no > qualify=yes > qualify=3000 > nat=yes > > [laptop] > disallow=all > allow=g726 > dtmfmode=rfc2833 > dtmf=rfc2833 > username=laptop > type=friend > host=dynamic > secret=xxxx > mailbox=3002 > context = sip > callerid="Laptop" <3002> > canreinvite=no > qualify=yes > qualify=3000 > nat=yes > > Should asterisk translate between two codes. > First clent is iaxy, second is sjphone. > It is not working for me, and I am getting error on sjphone: > "Unabke to agree on media streems". > > When I change the codec for laptop to ulaw everything worls ok. > This would mean that asterisk cannot establish communication if both ends > have different codecs supported. Is this right??? > > Thank You > > Bartosz Wegrzyn > > _______________________________________________ > --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 >-- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
Bartosz Wegrzyn - asterisk
2006-Jan-02 08:28 UTC
[Asterisk-Users] Translating between different codes
Looks like I did not check what codes are supported on SJLABS. It does not support g726.Thats why it is not working. I checked it with gsm and is working. My fault. Sorry> Hi, > > I would like to know if asterisk is able to translate between two > differnet codecs. For example: > > I have this config in sip.conf file: > > [phone] > disallow=all > allow=ulaw > dtmfmode=rfc2833 > dtmf=rfc2833 > username=phone > type=friend > host=dynamic > secret=xxxx > mailbox=3001 > context = sip > callerid="Wireless <3001>" > canreinvite=no > qualify=yes > qualify=3000 > nat=yes > > [laptop] > disallow=all > allow=g726 > dtmfmode=rfc2833 > dtmf=rfc2833 > username=laptop > type=friend > host=dynamic > secret=xxxx > mailbox=3002 > context = sip > callerid="Laptop" <3002> > canreinvite=no > qualify=yes > qualify=3000 > nat=yes > > Should asterisk translate between two codes. > First clent is iaxy, second is sjphone. > It is not working for me, and I am getting error on sjphone: > "Unabke to agree on media streems". > > When I change the codec for laptop to ulaw everything worls ok. > This would mean that asterisk cannot establish communication if both ends > have different codecs supported. Is this right??? > > Thank You > > Bartosz Wegrzyn > > _______________________________________________ > --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 >