[Freeswitch-users] FreeSwitch Error: "username param is REQUIRED!"

Ken Rice krice at freeswitch.org
Fri Aug 3 09:05:43 MSD 2012


Just put nothing or BS in the username and password fields for the gateway
if you are using IP auth on the other side like with alcazar...

If they don¹t 407 the gateway doesn¹t mind having the extra info
there...also keep in mind to set the caller id in from field setting on the
gateway


On 8/2/12 5:58 PM, "A E G" <all.eforums at gmail.com> wrote:

> I don't see anywhere where this " alcazarnetworks-outbound " gateway is even
> being loaded. Nor do I see where FS would figure out how to reach this
> alcaz-outbound realm. Are these being looked up from DNS? If not, then how do
> you propose sofia finds the IP to contact this gateway on? I think with the
> bridge command you might have to still tell it the IP. If you tell it the IP,
> then why is the definition of the gateway needed if you're not registering. 
> 
> Haha sorry I'm not all that of an expert at FS either so maybe someone more
> knowledgeable can respond to this and help us both. 
> 
> I think what you need to run, as mentioned previously is
> 
> fs at internal>sofia profile external gwlist up <-- this should show you the
> gateways that are loaded and ready (I think)
> 
> if you don't see your  alcazarnetworks-outbound  gateway there, try running
> 
> fs at internal>sofia profile external rescan reloadxml <-- this should rescan
> your gateways in the directory and you should see alcazarnetworks-outbound
> load up OR it should give you some error as to why it can't load it up. Also,
> don't forget to include the </gateway> in the config file. I'm surprised that
> this doesn't show up as an error in the console when you load it up. 
> 
> HTH
> aeg
> 
> On Thu, Aug 2, 2012 at 5:22 PM, Sazzad <sazzadbinkamal at gmail.com> wrote:
>>> This is odd then.
>> 
>> (@_@)
>>  
>>> I don't know if the issue is occuring where you think
>>> it is. Do you have any other gateways setup in profile external?
>> 
>> Nope!
>>  
>>>  Can you post the output of 'sofia status' with minimal changes, please?
>> 
>> Sure, I can. Though I don't think it'll be of much help to you. Here
>> <http://pastebin.freeswitch.org/19631>  it is.
>>  
>>> For reference, the following definitely works for a provider which does
>>> not require username/password (i.e. IP authentication only), I've only
>>> obfuscated the actual IP address from the realm in this example:
>>> 
>>>    <include>
>>>      <gateway name="provider">
>>>        <param name="username" value="not-used"/>
>>>        <param name="password" value="not-used"/>
>>>        <param name="realm" value="192.0.2.1"/>
>>>        <param name="register" value="false"/>
>>>        <param name="caller-id-in-from" value="true"/>
>>>      </gateway>
>>>    </include>
>> 
>> I see. Hmm, but Alcazar support adviced to use Freeswitch bridge command to
>> point to ip. Probably it is same as Asterisk bridge()?! And it definitely is
>> not seeming like a cli command rather an application to be used in dialplan,
>> I guess. By the way, I registered Alcazar for outbound termination.
>> 
>> May be this context may help you find out some reason:
>> 
>> I'm trying to use Newfies <http://newfies-dialer.org>  dialer. Plivo
>> <http://plivo.com>  has been installed on the server, so we'll not be using
>> their API (or sending request to their cloud server).
>> 
>> After a fresh install I simply did the following according to Newfies doc:
>> 
>> 1. copy-paste the sip_profile/external/example.com <http://example.com>  to
>> alcazarnetworks.com <http://alcazarnetworks.com>
>> 2. change relevant fields, EXACTLY same as you provided in the above example.
>> EXCEPT "realm" and "caller-id-in-form" fields. I used real username and
>> password provided by Alcazar by the way.
>> 3. Run command : "sip profile external restart reloadxml" and got the error!
>> 4. So I tried it on my local machine (which is not registered with Alcazar)
>> and got the same error!
>> 
>> That's all I can tell.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120803/cb7bd491/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list