Aldo Bergamini
2005-Mar-27 09:13 UTC
[Asterisk-Users] Asterisk and XLite on same machine (OSX)?
Dear all, I have tried to run an asterisk instance together with XLite on a single machine (a PowerBook). The intent is to take advantage of IAX connections to easily cross NATs while traveling. While the IAX setup proved 'easy', just having to fiddle a little with working configs at both sides, I did not succeed so far in getting XLite to connect to the local Asterisk server, AND be able to make a call. I used the pbx setup successfully with a BT102 attached to the ethernet port of my machine, after activating 'Internet Sharing' in the Sharing prefs. I am connecting trough a wireless link to the local ADSL. iax2 show registry correctly shows my pbx back in the office... So I am quite sure there is something just on the local sip setup. The best I could do was to see XLite logged in; but as soon as I dial any extension I get a 'call not approved' error message in the XLite display. The sip configuration that got me to this first is with Asterisk listening on the wireless eth interface, whereas XLite is on an second IP interface (internal ethernet board). [Even if this setup could work, I would have to change it as it needs to have an ethernet cable plugged in the eth port.] Happily I found and checked the instructions on the wiki under 'Localhost gateway'. Essentially instead of trying to have two different IP interfaces for pbx and softphone the plan is to have different port numbers (5060 and 5061). Strangely enough I can obtain again the login of the softphone, but I still get a 'call not approved' for any dialed number. Activating sip debug peer xxxx does not show anything while dialing; and no error/message shows in the Diagnostic Window of XLite. I would be happy with any hint on how to solve this. TIA Aldo
Aldo Bergamini
2005-Mar-27 10:50 UTC
[Asterisk-Users] Re: Asterisk and XLite on same machine (OSX)?
asterisk-users-request@lists.digium.com is believed to have said:>Dear all, > >I have tried to run an asterisk instance together with XLite on a single >machine (a PowerBook). >The intent is to take advantage of IAX connections to easily cross NATs >while traveling. > >While the IAX setup proved 'easy', just having to fiddle a little with >working configs at both sides, I did not succeed so far in getting XLite >to connect to the local Asterisk server, AND be able to make a call. >[...]>Strangely enough I can obtain again the login of the softphone, but I >still get a 'call not approved' for any dialed number. > >Activating sip debug peer xxxx does not show anything while dialing; and >no error/message shows in the Diagnostic Window of XLite.I solved the problem! It's completely unrelated to Asterisk. XLite does not support multiple accounts: I must have misinterpreted the meaning of the list of different proxies that can be found under "SIP". As I already had a setting for use inside the office LAN, I wanted to leave it untouched; therefore I was adding more configurations in the next configuration entry points (Proxy 1, Proxy 2, etc). As soon as I simply edited the first configuration I got online in no time. So for any reason XLite seems either to have a bug with multiple configurations or just not support more than one different extension. (ok to me: it's a free 'lite' version; I can't really complain!) In the end I will simply get into my office extension over IAX2. Fine enough... Rgds Aldo