Re: [asterisk-users] can PJSIP_MEDIA_OFFER work like SIP_CODEC?

2014-09-30 Thread Matthew Jordan
On Sat, Sep 27, 2014 at 10:28 AM, d tbsky tbs...@gmail.com wrote: hi: when using chan_sip, I can use set SIP_CODEC in dialplan to change the codec of endpoint. this method didn't work with pjsip in asterisk 12/13. I found asterisk 12/13 has a new function PJSIP_MEDIA_OFFER. according

Re: [asterisk-users] can PJSIP_MEDIA_OFFER work like SIP_CODEC?

2014-09-30 Thread d tbsky
2014-09-30 23:52 GMT+08:00 Matthew Jordan mjor...@digium.com: On Sat, Sep 27, 2014 at 10:28 AM, d tbsky tbs...@gmail.com wrote: I found asterisk 12/13 has a new function PJSIP_MEDIA_OFFER. according to the description, it seems can set codec, but the document didn't offer any example. i try

Re: [asterisk-users] can PJSIP_MEDIA_OFFER work like SIP_CODEC?

2014-09-28 Thread Markus
Am 27.09.2014 17:28, schrieb d tbsky: can someone give an example for the function? thanks for the help. Not a programmer here, just grep -r'ed through the code, but maybe try one of these: G711A G711_ALAW -- _ --

Re: [asterisk-users] can PJSIP_MEDIA_OFFER work like SIP_CODEC?

2014-09-28 Thread d tbsky
2014-09-28 14:01 GMT+08:00 Markus unive...@truemetal.org: Am 27.09.2014 17:28, schrieb d tbsky: can someone give an example for the function? thanks for the help. Not a programmer here, just grep -r'ed through the code, but maybe try one of these: G711A G711_ALAW thanks a lot for

[asterisk-users] can PJSIP_MEDIA_OFFER work like SIP_CODEC?

2014-09-27 Thread d tbsky
hi: when using chan_sip, I can use set SIP_CODEC in dialplan to change the codec of endpoint. this method didn't work with pjsip in asterisk 12/13. I found asterisk 12/13 has a new function PJSIP_MEDIA_OFFER. according to the description, it seems can set codec, but the document didn't