Billy Huddleston
2004-Jan-26 17:39 UTC
[Asterisk-Users] canreinvite and codec negotations... and NAT
I've gotten canreinvite=yes to work with a sip device behind NAT!! You *MUST* port forward the SIPPort to in your gateway router to your phone. This is a MUST. Okay, now on to my problem.. I have people who will be using ulaw, and I have people who will be using g729.. I want to set it up so that canreinivte will work.. I have a single cisco gateway.. Asterisks isn't handling the negotation between the 2 devices very well.. For example.. [gateway] type=friend host=1.2.3.4 canreinvite=yes qualify=200 dtmfmode=rfc2833 context=default disallow=all allow=ulaw allow=g729 [123] type=friend secret=abc nat=yes host=dynamic canreinvite=yes qualify=200 context=default dtmfmode=rfc2833 mailbox=2199 callerid="Joe Blow" <123-456-7890> disallow=all allow=g729 [321] type=friend secret=abc nat=yes host=dynamic canreinvite=yes qualify=200 context=default dtmfmode=rfc2833 mailbox=321 callerid="Joe Blow" <321-456-7890> disallow=all allow=ulaw Okay, in this configs, gateway would be my cisco 26xx gateway.. ext 123 would be a g729 customer.. and 321 would be a ulaw customer. When someone calls ext 123, the cisco send the call to asterisk, it *WILL* use ulaw... then it will initiate a call to g729, well... Now we have a codec mismatch, and canreinvite won't work... EVEN though gateway can do g729.. ext 321 won't have any problems.. It'll work fine for them.. What can we do to get this to work like it should? Thank, Billy +--------------------------------------------------+ | Billy Huddleston Senior System Administrator | | Net-Express http://www.nxs.net | | 114 Sherway Rd. Voice: 865-691-2011 | | Knoxville, TN 37922 Fax: 865-691-9894 | | billy@nxs.net | +--------------------------------------------------+