Mohammad A. Navid
2008-May-17 11:47 UTC
[asterisk-users] One way sound when Using Dial cmd without "t" option (SOLVED) Need explanation
I'm implementing a simple calling card feature for testing purpose. I have a DID number, when I called my DID number and enter the phone number to call, Asterisk would dial the number for me but the sound was only one way. After hours of struggling with the problem, I found out that I need to add "t" to my dial options, this is the correct way of dialing out: -> Dial(SIP/carrier/3105555555|20|t) Now I need to know what was going on? Why with option "t" both parties can hear each other, but without option "t" in dial cmd only one party could hear? Another interesting issue is, if I use Answer() command at the begining the sound becomes one way even if I use "t" in options. One more interesting thing, my carrier for calling out only accepts G7.29 where as my DID provider passes calls as ulaw. However, when using voipjet.com (as secondary carrier) which carries out the calls as ulaw, having the Dial cmd without "t" option works fine. I'd appreciate if someone explain to me the following questions: 1) Why when there is codec difference, Dial cmd needs the "t" option 2) Why using Answer cmd causes problem in this case (all the cases, when using same codec and also different codecs) 3) Why with same codecs, Dial cmd does not need "t" option? Thanks Moe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080517/01f4594a/attachment.htm
Tony Mountifield
2008-May-18 08:14 UTC
[asterisk-users] One way sound when Using Dial cmd without "t" option (SOLVED) Need explanation
In article <28749f210805170447w7e2da378vb11d12bdf8dd4b81 at mail.gmail.com>, Mohammad A. Navid <manavid at gmail.com> wrote:> > I'm implementing a simple calling card feature for testing purpose. I have a > DID number, when I called my DID number and enter the phone number to call, > Asterisk would dial the number for me but the sound was only one way. > After hours of struggling with the problem, I found out that I need to add > "t" to my dial options, this is the correct way of dialing out: > > -> Dial(SIP/carrier/3105555555|20|t) > > Now I need to know what was going on? Why with option "t" both parties can > hear each other, but without option "t" in dial cmd only one party could > hear? > > Another interesting issue is, if I use Answer() command at the begining the > sound becomes one way even if I use "t" in options.Try adding "reinvite=no" to the sip.conf or users.conf definition for your SIP service provider. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org