Summary: | ASTERISK-04853: IAX2Provision fails - No PROVISION frame sent | ||
Reporter: | David Svanlund (svanlund) | Labels: | |
Date Opened: | 2005-08-18 05:48:14 | Date Closed: | 2005-08-19 16:07:37 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) iax2provision_workaround.diff | |
Description: | IAX2Provision does not work in CVS-HEAD at the moment. The PROVISION frame is successfully constructed, but when trying to send it Asterisk reports "Socket operation on non-socket" in chan_iax2 method "send_packet". An Ethereal trace shows no PROVISION frame being sent. In the "iax2_provision" method (found in chan_iax2.c) I changed the last argument of "find_callno" from "cai.sockfd" to "defaultsockfd". IAX2Provision then works as expected. ****** ADDITIONAL INFORMATION ****** The attached file "iax2provision_workaround.diff" contains the change made. It should be considered as an ugly workaround, until otherwise proved. I suspect that there is a better way of solving this. This problem also affects the "automatic" provisioning, which occurs when a matching service identifier entry exists in iaxprov.conf. I haven't looked closer at this problem, but it seems to be solved as well using the attatched diff. Disclaimer on file. | ||
Comments: | By: Kevin P. Fleming (kpfleming) 2005-08-19 16:07:18 Mark has fixed this in CVS HEAD independently from your patch. If you still experience problems, please re-open the bug. |