[asterisk-users] SIP Codec negotiation

2018-05-10 Thread Steve Edwards
I receive an INVITE/SDP containing: m=audio 11310 RTP/AVP 3 0 101 which I interpret as gsm, ulaw, rfc2833. and I reply with an OK/SDP containing: m=audio 15884 RTP/AVP 0 3 101 which I interpret as ulaw, gsm, rfc2833. How can I tell which codec was actually used for the call?

[asterisk-users] SIP codec negotiation / manipulation

2010-03-17 Thread Kevin Sandy
We're having an odd issue with codec negotiation from one of our SIP providers. Here's the basic situation. We receive an invite from them advertising support for G711, G729, and G723. In our response, we send back that we support G711 and G729. In about half the cases, this results in no probl

Re: [asterisk-users] SIP Codec negotiation

2018-05-10 Thread Daniel Tryba
On Thu, May 10, 2018 at 11:44:14AM -0700, Steve Edwards wrote: > I receive an INVITE/SDP containing: > > m=audio 11310 RTP/AVP 3 0 101 > > which I interpret as gsm, ulaw, rfc2833. > > and I reply with an OK/SDP containing: > > m=audio 15884 RTP/AVP 0 3 101 > > which I interpret as

Re: [asterisk-users] SIP Codec negotiation

2018-05-11 Thread Steve Edwards
On Thu, May 10, 2018 at 11:44:14AM -0700, Steve Edwards wrote: I receive an INVITE/SDP containing: m=audio 11310 RTP/AVP 3 0 101 which I interpret as gsm, ulaw, rfc2833. and I reply with an OK/SDP containing: m=audio 15884 RTP/AVP 0 3 101 which I interpret as ulaw, gsm, rfc

Re: [asterisk-users] SIP Codec negotiation

2018-05-11 Thread Joshua Colp
On Fri, May 11, 2018, at 10:07 AM, Steve Edwards wrote: > > So, without examining the RTP, you cannot tell which codec was actually > used? >From an Asterisk perspective "core show channel" will also show you what is >currently flowing. > In the above example, even though the INVITE/SDP say

Re: [asterisk-users] SIP Codec negotiation

2018-05-11 Thread Steve Edwards
On Fri, 11 May 2018, Joshua Colp wrote: In the above example, even though the INVITE/SDP says they prefer gsm over ulaw and the OK/SDP says I prefer ulaw over gsm, they can choose to use gsm or ulaw? Yes. Can it be asymmetrical? They send gsm and I send ulaw? Technically, yes. In practice

Re: [asterisk-users] SIP Codec negotiation

2018-05-11 Thread Joshua Colp
On Fri, May 11, 2018, at 10:36 AM, Steve Edwards wrote: > On Fri, 11 May 2018, Joshua Colp wrote: > > >> In the above example, even though the INVITE/SDP says they prefer gsm > >> over ulaw and the OK/SDP says I prefer ulaw over gsm, they can choose > >> to use gsm or ulaw? > > > > Yes. > > > >>

Re: [asterisk-users] SIP Codec negotiation

2018-05-11 Thread Sam Basan
The unwritten rule of SDP is that if possible you use the first codec of a type listed, but you don’t have to. If the sender says he can do something, he had better be prepared to handle media of that type no matter in what order it was listed. So when you send OK with ulaw as first priority and

Re: [asterisk-users] SIP Codec negotiation

2018-05-17 Thread Steve Edwards
On Fri, May 11, 2018, at 10:36 AM, Steve Edwards wrote: So, Asterisk will defer it's choice of codec to match the codec it detects in the incoming stream? On Fri, 11 May 2018, Joshua Colp wrote: It depends on the channel driver and configuration. The chan_sip module always matching outgoing

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-17 Thread Vinícius Fontes
- "Kevin Sandy" escreveu: > We're having an odd issue with codec negotiation from one of our SIP > providers. Here's the basic situation. > > We receive an invite from them advertising support for G711, G729, and > G723. In our response, we send back that we support G711 and G729. In > about

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-17 Thread Steve Totaro
2010/3/17 Vinícius Fontes > - "Kevin Sandy" escreveu: > > > We're having an odd issue with codec negotiation from one of our SIP > > providers. Here's the basic situation. > > > > We receive an invite from them advertising support for G711, G729, and > > G723. In our response, we send back t

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-17 Thread Jeff Brower
Steve- > 2010/3/17 Vinícius Fontes > >> - "Kevin Sandy" escreveu: >> >> > We're having an odd issue with codec negotiation from one of our SIP >> > providers. Here's the basic situation. >> > >> > We receive an invite from them advertising support for G711, G729, and >> > G723. In our respon

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-17 Thread Jeff Brower
Steve- > On Wed, Mar 17, 2010 at 6:02 PM, Jeff Brower wrote: > > Steve- > > > 2010/3/17 Vin¨ªcius Fontes > > > >> - "Kevin Sandy" escreveu: > >> > >> > We're having an odd issue with codec negotiation from one of our SIP > > >> > providers. Here's the bas

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-18 Thread Kevin Sandy
On 3/17/2010 6:25 PM, Jeff Brower wrote: > Steve- > > On Wed, Mar 17, 2010 at 6:02 PM, Jeff Brower > mailto:jbro...@signalogic.com>> wrote: > Steve- > >> 2010/3/17 Vinícius Fontes >> mailto:vinic...@canall.com.br>> >> >>> - "Kevin Sandy" mailto:kevin.sa...@snohio.net>> >>> escreveu: >>> >

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-21 Thread Olle E. Johansson
17 mar 2010 kl. 16.37 skrev Kevin Sandy: > We're having an odd issue with codec negotiation from one of our SIP > providers. Here's the basic situation. > > We receive an invite from them advertising support for G711, G729, and G723. > In our response, we send back that we support G711 and G72

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-22 Thread Kevin Sandy
On 3/21/2010 4:05 AM, Olle E. Johansson wrote: > > 17 mar 2010 kl. 16.37 skrev Kevin Sandy: > >> We're having an odd issue with codec negotiation from one of our >> SIP providers. Here's the basic situation. >> >> We receive an invite from them advertising support for G711, G729, >> and G723.

Re: [asterisk-users] SIP codec negotiation / manipulation

2010-03-23 Thread Olle E. Johansson
22 mar 2010 kl. 14.54 skrev Kevin Sandy: > > > On 3/21/2010 4:05 AM, Olle E. Johansson wrote: >> > >> 17 mar 2010 kl. 16.37 skrev Kevin Sandy: >> >>> We're having an odd issue with codec negotiation from one of our >>> SIP providers. Here's the basic situation. >>> >>> We receive an invite