# Do I need g729 license if I use SIP gateway?

**URL:** <https://community.asterisk.org/t/do-i-need-g729-license-if-i-use-sip-gateway/49912>\
**Category:** Asterisk Support\
**Created:** [November 10, 2015, 10:52pm UTC](https://community.asterisk.org/t/do-i-need-g729-license-if-i-use-sip-gateway/49912 "2015-11-10T22:52:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnu](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@gnu](https://community.asterisk.org/u/gnu)\
**Post date:** [November 10, 2015, 10:52pm UTC](https://community.asterisk.org/t/do-i-need-g729-license-if-i-use-sip-gateway/49912/1 "2015-11-10T22:52:44Z")

</div>

Hi,

My Asterisk has 2 SIP extensiones using Cisco phones. The phones are configured just to use the codec g729. In set this in the phone web-gui and in the sip.conf

`disallow=all
allow=g729`

The calls works fine from extension-to-extensions.

The Asterisk pbx do not use physicall Asterisk cards, I mean, there is no FXO/FXS,E1,T1 ports, I make calls using a TDM Gateway that has 4 fxo/1 fxs ports.

In this scenario do I need to buy g729 licenses to terminate calls to the SIP TDM Gateway?

---

<div class="post-metadata">

**Author:** ![abw1oim](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@abw1oim](https://community.asterisk.org/u/abw1oim)\
**Post date:** [November 11, 2015, 6:42am UTC](https://community.asterisk.org/t/do-i-need-g729-license-if-i-use-sip-gateway/49912/2 "2015-11-11T06:42:44Z")

</div>

Depends on the TDM gateway. When the gateway supports g729 no license for Asterisk ist needed as passthrough of g729 is included. In the other case, Asterisk has to transcode the RTP media and this is requiring a g729 for each parallel call which may occure.
