How to extend the INVITE Message Expiry Timer in Asterisk

Can someone help me as to how do I make Asterisk Server to wait for as long as 30 seconds after it sends an INVITE to a SIP GW which is taking a lot of time to negotiate on the other side before it sends a 200 OK back to Asterisk. Typically in this case it is taking about 30 seconds before the SIP GW can send a 200 OK to the Asterisk server.

What are my best options in order for me to avoid a CANCEL from the SIP Asterisk Server? Any ideas and suggestions would be highly appreciated.

Regards,
Srikanth

look in chan_sip.c and change the timer_t1 values… default is something like 500ms. you’ll have to recompile after that of course.