{"id":585,"date":"2014-01-16T15:37:35","date_gmt":"2014-01-16T09:37:35","guid":{"rendered":"http:\/\/alexeyka.zantsev.com\/?p=585"},"modified":"2021-02-28T01:59:48","modified_gmt":"2021-02-27T20:59:48","slug":"freeswitch-dial-through-voip-provider","status":"publish","type":"post","link":"https:\/\/alexeyka.zantsev.com\/?p=585","title":{"rendered":"FreeSWITCH: dial through VoIP provider"},"content":{"rendered":"<p><strong>Register against megavoip.com sbc:<\/strong><br \/>\nAdd a file sip.megavoip.com.xml to \/usr\/local\/freeswitch\/conf\/sip_profiles\/external\/ to dial through Megavoip.com:<\/p>\n<p><a href=\"https:\/\/alexeyka.zantsev.com\/wp-content\/uploads\/2014\/01\/fs-megavoip.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-590\" src=\"http:\/\/alexeyka.zantsev.com\/wp-content\/uploads\/2014\/01\/fs-megavoip.png\" alt=\"fs-megavoip\" width=\"696\" height=\"273\" \/><\/a><\/p>\n<p><strong>Register against multifon.ru sbc:<\/strong><br \/>\nAdd a file multifon.xml to \/usr\/local\/freeswitch\/conf\/sip_profiles\/external\/ to dial through multifon.ru:<\/p>\n<p><a href=\"https:\/\/alexeyka.zantsev.com\/wp-content\/uploads\/2014\/01\/fs-multifon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-591\" src=\"http:\/\/alexeyka.zantsev.com\/wp-content\/uploads\/2014\/01\/fs-multifon.png\" alt=\"fs-multifon\" width=\"442\" height=\"261\" \/><\/a><\/p>\n<p>Now it&#8217;s time to check if the REGISTER is OK.<br \/>\nExecute in the FS CLI:<br \/>\n<code><br \/>\nfreeswitch@internal&gt; sofia status<br \/>\nName\t   Type\t                                      Data\tState<br \/>\n=================================================================================================<br \/>\nexternal\tprofile\t           sip:mod_sofia@10.145.13.21:5080\tRUNNING (0)<br \/>\nexternal::example.com\tgateway\t                   sip:joeuser@example.com\tNOREG<br \/>\nexternal::sip.megavoip.com\tgateway\t            sip:megavoip_username@sip.megavoip.com\tREGED<br \/>\nexternal::multifon\tgateway\t           sip:79221234567@sbc.multifon.ru\tREGED<br \/>\n10.145.13.21\t  alias\t                                  internal\tALIASED<br \/>\ninternal\tprofile\t           sip:mod_sofia@10.145.13.21:5060\tRUNNING (0)<br \/>\ninternal-ipv6\tprofile\t                  sip:mod_sofia@[::1]:5060\tRUNNING (0)<br \/>\n=================================================================================================<br \/>\n3 profiles 1 alias<br \/>\n<\/code><\/p>\n<p>or:<br \/>\n<code>freeswitch@internal&gt; sofia status gateway<br \/>\nProfile::Gateway-Name\t                        Data    \tState\tIB Calls(F\/T)\tOB Calls(F\/T)<br \/>\n=================================================================================================<br \/>\nexternal::example.com\t         sip:joeuser@example.com\tNOREG\t0\/0\t0\/0<br \/>\nexternal::sip.megavoip.com\t  sip:megavoip_username@sip.megavoip.com\tREGED\t0\/0\t0\/0<br \/>\nexternal::multifon\t sip:79221234567@sbc.multifon.ru\tREGED\t0\/1\t0\/0<br \/>\n=================================================================================================<br \/>\n3 gateways: Inbound(Failed\/Total): 0\/1,Outbound(Failed\/Total):0\/0<br \/>\n<\/code><\/p>\n<p>or with more info:<br \/>\n<code>freeswitch@internal&gt; sofia status gateway sip.megavoip.com<br \/>\n...<br \/>\n<\/code><\/p>\n<p><strong>Dial through (let&#8217;s dial via megavoip.com):<\/strong><\/p>\n<p>Add to \/usr\/local\/freeswitch\/conf\/dialplan\/default.xml to the beginning of &#8216;default&#8217; context:<\/p>\n<p><a href=\"https:\/\/alexeyka.zantsev.com\/wp-content\/uploads\/2014\/01\/fs-dial-through.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-592\" src=\"http:\/\/alexeyka.zantsev.com\/wp-content\/uploads\/2014\/01\/fs-dial-through.png\" alt=\"fs-dial-through\" width=\"594\" height=\"132\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Register against megavoip.com sbc: Add a file sip.megavoip.com.xml to \/usr\/local\/freeswitch\/conf\/sip_profiles\/external\/ to dial through Megavoip.com: Register against multifon.ru sbc: Add a file multifon.xml to \/usr\/local\/freeswitch\/conf\/sip_profiles\/external\/ to dial through multifon.ru: Now it&#8217;s time to check if the REGISTER is OK. Execute in the FS CLI: freeswitch@internal&gt; sofia status Name Type Data State ================================================================================================= external profile sip:mod_sofia@10.145.13.21:5080 RUNNING [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[146,154,153,151,152],"class_list":["post-585","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-freeswitch","tag-megavoip","tag-multifon","tag-register","tag-sofia"],"_links":{"self":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=585"}],"version-history":[{"count":7,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/585\/revisions"}],"predecessor-version":[{"id":3664,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/585\/revisions\/3664"}],"wp:attachment":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}