I have a Singlewire Informacast Bells and Paging server that I want to allow devices with a call button to be able to call an extension on FreePBX.
I setup a trunk on FreePBX and mapped outbound routing to map extensions to devices on Singlewire which is working - I can call the Outbound extension on 5160 and it works.
The problem is when I try to call from a Algo 8410 two way Sip enabled device; the call button is programmed to goto the FreePBX - its not getting there.
Singlewire explained that there is a need for a conversion from PJSIP 5160 (Algo) to 5060 (FreePBX) via the FreePBX trunk.
What appears in the Asterisk log when you push the call button? If nothing, run sngrep and report what appears there. If also nothing, use syslog on the Algo or a network capture tool to see where the request is going.
Stewart1, thanks for the reply. The Asterisk log didn’t show anything when pressing the call button. SNGrep shows only communication only on port 5060 to devices. It does see Singlewire but only communicating on 5060.
Apart from the garbled layout, this shows a successful REGISTER transaction, which means the port numbers are being used correctly for requests originating from the device creating the logs.
Please show us logs for a transaction that is failing, preferably taken from the Asterisk side, as that is the one with which most people, here, are familiar, and newlines are logged correctly.
Also, if chan_pjsip is using 5160, you have set up FreePBX in a non-standard way. I believe it prefers 5060, even when chan_sip is present, and relegates chan_sip to 5160.
Yes - 5160 is non-standard. We do have it that way on the trunk. It was the only way to make the Algo 8410 slightly work. We can dial to the Algo with 5160 as the trunk port but not if we set the chan_pjsip to 5060. We never been able to dial from the Algo to Asterisk. How Singlewire explained it; we need to have the Asterisk Trunk configured for port 5060 and respond to port 5160 if that is at all possible.
For the log, make sure verbosity is set to, at least, 5, and “pjsip set logger on” has been issued, via the CLI, since Asterisk was started. Please provide failing transaction, at this logging level, and provide the logging from /var/log/asterisk/full.
Turned on Verbose logging and pjsip but I don’t see anything coming from the IP address of the ALGO. The ALGO is currently setup to connect to Singlewire as 5160 which I think is wrong. Does anyone know the proper way to connect to Singlewire? I’ve tested the ALGO to FreePBX without issue.
If it is an internal extension(of FreePBX) being dialed from the algo, does an inbound route need to be built(even if its the same four numbers as the extension)to route it?
So we finally got it working! The fix was to have 2 x trunks pointing at Singlewire one for Chan-sip 5160 and Chan-PJSIP port 5060. On both trunks we enabled 0.0.0.0-TCP. You would think someone would have tried to connect the servers together but I’m glad to document it for the future.
Actually talked too soon. We’re still having an issue which I think I finally captured. We’re further along than before but still have an issue when we call a Algo 8410 clock / Speaker / Mic / call button. It connects and answers but the mic won’t send analog sound back to the phone. How singlewire explained it is it sends request on 5060 and the responds on 5160. Here is a screen shot of the SIP Wireshark data.
The cursor is on the wrong packet, and you are not displaying all the headers,
In any case, I don’t think FreePBX will generate 302 without custom dialplan. Are you sure that this is coming from FreePBX? If so you need to tell us your customisations.
Yes - Here is more. The issue is when dialing the 8004 extension the Algo Clock picks up but the mic doesn’t work on the clock. I can use the dial button on the clock to call a pre programmed FreePBX extension and I have good 2 way communication. Its only when FreePBX dials Singlewire and ultimately the Algo Clock that the clock mic doesn’t work.
Please provide the contents of /var/log/asterisk/full, as plain text, with verbosity at least 5, and with “pjsip set logger on” or “sip set debug on”, as appropriate, in effect. I’m not going to look at wireshark one line summaries, mixed in with irrelevant traffic.
In particular, I suspect full details of the SDP are going to be required.
Also, if at all possible, generalise this, as at the moment, it is difficult for someone to answer who doesn’t have both in depth knowledge of the Algo product line, and singlewire.