in ur sip.conf under the device definition you can set it<br><br>for example device name is asterisk is pap2<br><br>[pap2]<br>username=pap2<br>secret=blabla<br>type=friend<br>disallow=all<br>allow=g729<br><br>Then asterisk will only use g729 for incoming as well as outgoing calls on this device .
<br><br><div><span class="gmail_quote">On 27/07/07, <b class="gmail_sendername">Matt</b> <<a href="mailto:mhoppes@gmail.com">mhoppes@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Right.. what I'm asking is:<br><br>If I set my PAP2T to use G723 or G729.... outgoing calls from that<br>device go in that format.<br>However, incoming calls to the device from asterisk are running at<br>G711u. The PBX will access any format G711u, G723, G729 or GSM.
<br>What do I need to do to make asterisk use the same codec back to the<br>ATA as it is using to the PBX?<br><br>On 7/27/07, dave cantera <<a href="mailto:david.cantera@iacnet.net">david.cantera@iacnet.net</a>> wrote:
<br>><br>> baji, mhoppes,<br>> remember, if you have Only the g729 codec allowed or if this is the only<br>> allow= entry in the sip.conf file, callers requesting any other codec will<br>> be rejected....
<br>> daveC<br>><br>><br>> Baji Panchumarti wrote:<br>> On 7/27/07, Matt <<a href="mailto:mhoppes@gmail.com">mhoppes@gmail.com</a>> wrote:<br>><br>><br>> Can someone comfirm my logic here?
<br>><br>> If I want a phone to use G729.... I can set it to use G729... do I<br>> also need to set it in Asterisk? I'm thinking no... as long as<br>> asterisk WILL do G729... if that's all the device accepts it should go
<br>> to that codec, yes?<br>><br>> (based on my understanding, take it for what it is worth)<br>><br>> if allow=all or allow=g729 is in your<br>> asterisk configuration (sip.conf / iax.conf ) then asterisk will
<br>> stream packets in g729 (assuming you have any licesnses<br>> needed in place).<br>><br>> -baji.<br>><br>> --<br>><br>> _______________________________________________<br>> --Bandwidth and Colocation Provided by
<a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>><br>><br>><br>><br>><br>> --<br>> My wife's sister is in California.<br>> I should buy her a Videophone2008!<br>><br>> Truly, The Next Best Thing to Being There!
<br>> --<br>><br>> WorldWideVideoPhones.com<br>> 856.380.0894<br>><br>><br>><br>><br>> _______________________________________________<br>> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">
http://www.api-digital.com--</a><br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>><br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>