Registering a Gateway
Hey all, I’m trying to regist my freeswitch server to a sip provider to receive calls from my cellphone. In previous situation I connected the sip provider to asterisk, receive sip phone and transport to freeswitch. My sip provider is NTT Hikari from Japan, and I need to connect my server to NTT router directly (a separated net). In Asterisk, it could be registed simply by using only username, but freeswitch need a username and a password for regist, so I got a 403 Forbidden from NTT. Regist setting for Asterisk: register => 0901234567@ntt/0901234567 [ntt] type=peer context=fromntt host=124.245.0.1 nat=never fromdomain=ntt-west.ne.jp canreinvite=no dtmfmode=inband session-timers=originate session-expires=3600 session-minse=300 session-refresher=uac Gateway setting for FreeSWITCH: <include> <gateway name="ntt-west.ne.jp"> <param name="realm" value="ntt-west.ne.jp"/> <param name="proxy" value="124.245.0.1:5060"/> <param name="username" value="0901234567"/> <param name="password" value="not-used"/> <param name="register" value="true"/> <param name="caller-id-in-from" value="true"/> <param name="extension-in-contact" value="true"/> <param name="extension" value="0901234567"/> <param name="from-domain" value="ntt-west.ne.jp"/> </gateway> </include> And I got this error when I left password blanked: [ERR] sofia.c:3952 ERROR: password param is REQUIRED! Any suggestions for this situation? Regards.
You must set something even if it is not used On Fri, 24 May 2019 at 09:51, 王聡 <cong.wang.itsherpa@gmail.com> wrote:
Hey all,
I’m trying to regist my freeswitch server to a sip provider to receive calls from my cellphone. In previous situation I connected the sip provider to asterisk, receive sip phone and transport to freeswitch.
My sip provider is NTT Hikari from Japan, and I need to connect my server to NTT router directly (a separated net).
In Asterisk, it could be registed simply by using only username, but freeswitch need a username and a password for regist, so I got a 403 Forbidden from NTT.
Regist setting for Asterisk:
register => 0901234567@ntt/0901234567
[ntt] type=peer context=fromntt host=124.245.0.1 nat=never fromdomain=ntt-west.ne.jp canreinvite=no dtmfmode=inband session-timers=originate session-expires=3600 session-minse=300 session-refresher=uac
Gateway setting for FreeSWITCH:
<include> <gateway name="ntt-west.ne.jp"> <param name="realm" value="ntt-west.ne.jp"/> <param name="proxy" value="124.245.0.1:5060"/> <param name="username" value="0901234567"/> <param name="password" value="not-used"/> <param name="register" value="true"/> <param name="caller-id-in-from" value="true"/> <param name="extension-in-contact" value="true"/> <param name="extension" value="0901234567"/> <param name="from-domain" value="ntt-west.ne.jp"/> </gateway> </include>
And I got this error when I left password blanked:
[ERR] sofia.c:3952 ERROR: password param is REQUIRED!
Any suggestions for this situation?
Regards. _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
participants (2)
-
David Villasmil
-
王聡