[Freeswitch-users] [freeswitch-users] Gateway in Directory Loaded via xml curl

Brian West brian at freeswitch.org
Thu Dec 17 09:44:15 PST 2009


I'm going to guess you removed these lines from your profile:

  <domains>                                                                                                                                                     
    <domain name="all" alias="false" parse="true"/>                                                                                                             
  </domains>

parse=true causes the profile to parse the domain looking for gateways and register them..

/b

On Dec 17, 2009, at 11:18 AM, Paulo Vicentini wrote:

> Hi,
> I am trying to define Gateways (for inbound and outbound calls via SIP provider) within Directory (under "internal" sample profile) using XML CURL
> But I am getting this warning:
> 2009-12-17 14:42:03.294519 [WARNING] sofia_reg.c:2115 Gateway 'MyGW' not found.
> 
> And
> 
> sofia status gateway MyGW
> API CALL [sofia(status gateway MyGW)] output:
> Invalid Gateway!
> 
> 
> This is my configuration (overlook language details )
> 
> "<section name=\"directory\">"+
> 	"<domain name=\"10.0.0.124\">"+
> 	"<user id=\"test\">"+	
> 	"<gateways>"+
> 	"<gateway name=\"MyGW\">"+
> 	 " <param name=\"username\" value=\"234wf423\"/>"+
> 	  "<param name=\"password\" value=\"pwdpwd\"/>"+
> 	  "<param name=\"realm\" value=\"testvoip.com\"/>"+
> 	  "<param name=\"proxy\" value=\"my.provider.com\"/>"+
> 	  "<param name=\"register\" value=\"true\"/>"+
> 	"</gateway>"+
>      "</gateways>"+
> 	"<params>"+
> 	"<param name=\"password\" value=\"1234\"/>"+
> 	"<param name=\"dial-string\" value=\"{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}\"/>"+
> 	"</params>"+
> 	
> 	"<variables>"+
> 	 "<variable name=\"register-gateway\" value=\"MyGW\"/>"+
> 	
> 	"<variable name=\"accountcode\" value=\"test\"/>"+
> 	"<variable name=\"user_context\" value=\"mycontext\"/>"+
> 	"<variable name=\"effective_caller_id_name\" value=\"Test User\"/>"+
> 	"<variable name=\"effective_caller_id_number\" value=\"1234\"/>"+
> 	"</variables>"+
> 	"</user>"+
> 	"</domain>"+
> 	"</section>"+
> 	"</document>";
> 
> User id "test" is able to register and call other internal users  
> 
> In my sip_profiles/internal.xml I have:
> 
>     <!-- indicator to parse the directory for domains with parse="true" to get g
> ateways-->
>     <domain name="all" parse="true"/>
>     <!-- indicator to parse the directory for domains with parse="true" to get g
> ateways and alias every domain to this profile -->
>     <domain name="all" alias="true" parse="true"/>
> 
> 
> Can you help me with this issue?
> 
> Thank you
> Paulo
> 
> 
> Keep your friends updated— even when you’re not signed in. _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091217/edfdb7a9/attachment-0002.html 


More information about the FreeSWITCH-users mailing list