Hi All, I've been using a SIP Proxy with Asterisk (1.2.10 and realtime) for a while and it's possible I've missed a setting somewhere but I have not been able to determine how it's possible to get the outboundproxy settings to work with Dial(SIP/[EMAIL PROTECTED]) commands.
The problem is when you use Dial comands in the form Dial(SIP/[EMAIL PROTECTED]) there does not seem to be a way to get the request to go through a proxy with the correct URI. As an example if an Asterisk SIP account exists with settings of: Host = 192.168.10.1 Port = 5061 OutboundProxy = 192.168.11.1 OutboundProxyPort = 5060 FullContact = sip:[EMAIL PROTECTED]:5061 The SIP channel code seems to parse out the OutboundProxyPort but then never uses it which I think is the core of the problem (again I could have missed something) Dial(SIP/user) would generate INVITE sip:[EMAIL PROTECTED]:5061 and send it to 192.168.11.1:5061 (<outboundproxy>:<port>) Dial(SIP/[EMAIL PROTECTED]) would generate INVITE sip:[EMAIL PROTECTED] and send it to 192.168.11.1:5061 (<outboundproxy>:<port>) If Asterisk used the outboundproxyport then that would fix this particular problem. Another potential issue is the fact that the SIP URI's are generated in different ways. For example if the FullContact field had a parameter or was a hostname then the Dial(SIP/[EMAIL PROTECTED]) would generate an incorrect URI. Would it be better to just replace the user portion of the FullContact field when Dial(SIP/[EMAIL PROTECTED]) is used rather then generate the SIP URI from the Host field? An example: Host = 192.168.10.1 FullContact = sip:[EMAIL PROTECTED];sendme=quick Dial(SIP/user) would generate INVITE sip:[EMAIL PROTECTED];sendme=quick Dial(SIP/[EMAIL PROTECTED]) would generate INVITE sip:[EMAIL PROTECTED] Possibly it would be better if: Dial(SIP/[EMAIL PROTECTED]) would generate INVITE sip:[EMAIL PROTECTED];sendme=quick Regards, Aaron _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
