You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, default regex in fsw.js matched the wrong IP (was announcing to the drachtio server the IP of one of the gateways and not the IP of the local profile itself).
So i made a small change to the regex to match it
current one is
var re = new RegExp('^\\s*' + self.profile + '\\s.*sip:[^"]+@((?:[0-9]{1,3}\\.){3}[0-9]{1,3}):(\\d+)', 'm') ;
modified one is
var re = new RegExp('^\\s+' + self.profile + '\\tprofile\\t\\s+sip:[^"]+@((?:[0-9]{1,3}\\.){3}[0-9]{1,3}):(\\d+)\\tRUNNING.+$', 'm') ;
tested with both sofia status outputs and works ok.
Best regards and thanks for your work.
The text was updated successfully, but these errors were encountered:
Hi, just wanted to mention the following.
default freeswitch (meaning with default when it's recently installed with basic config) output for 'sofia status' is
`
freeswitch@itfspre> sofia status
Name Type Data State
=================================================================================================
2 profiles 0 aliases
`
but, many other configs can occur regarding profiles, for example, i do have a box that is a gateway to other 2 sbcs where sofia status shows
`
CCLAB > sofia status
Name Type Data State
=================================================================================================
1 profile 0 aliases
`
So, default regex in fsw.js matched the wrong IP (was announcing to the drachtio server the IP of one of the gateways and not the IP of the local profile itself).
So i made a small change to the regex to match it
current one is
var re = new RegExp('^\\s*' + self.profile + '\\s.*sip:[^"]+@((?:[0-9]{1,3}\\.){3}[0-9]{1,3}):(\\d+)', 'm') ;
modified one is
var re = new RegExp('^\\s+' + self.profile + '\\tprofile\\t\\s+sip:[^"]+@((?:[0-9]{1,3}\\.){3}[0-9]{1,3}):(\\d+)\\tRUNNING.+$', 'm') ;
tested with both sofia status outputs and works ok.
Best regards and thanks for your work.
The text was updated successfully, but these errors were encountered: