Re: [SR-Users] Message Routing To/From Gateway

2012-10-26 Thread Vitaliy Aleksandrov
If you want to receive any suggestions it would be better to show you config file with some comments. It will reduce a time to understand you configuration and will increase a chance to get any help here. After further testing it was found that setting the alias like this somehow broke outgoi

Re: [SR-Users] Message Routing To/From Gateway

2012-10-25 Thread Ed Brady
After further testing it was found that setting the alias like this somehow broke outgoing messages. I'm not certain exactly how Kamailio handles aliases, but it seems like it is not as simple as I expected. I am working on figuring out a new solution now if anyone has any thoughts. Thanks, Ed

Re: [SR-Users] Message Routing To/From Gateway

2012-10-23 Thread Ed Brady
I was able to resolve the issue by setting the return domain as a local domain alias. With the previous setting I had made to forward all non-local accounts to our gateway domain, this would allow the improper return domain to be seamlessly switched to the correct domain before being forwarded out

Re: [SR-Users] Message Routing To/From Gateway

2012-10-22 Thread Ed Brady
I have this all working now. I had previously configured this as a gateway and once issues were fixed on our vendor's end, it worked. Is there a disadvantage to using this method rather than the permissions module? On a related note (though maybe not related enough), when we get responses from the

Re: [SR-Users] Message Routing To/From Gateway

2012-10-20 Thread Vitaliy Aleksandrov
"Permissions" module should help you. If allowed ip addresses are kept in a database you can reload them by MI command without kamailio restart. As I remember "permissions" module allows to create groups of ip addresses, so you can create such a group for hosts which you want to receive MESSAGE

Re: [SR-Users] Message Routing To/From Gateway

2012-10-19 Thread Ed Brady
I tested this example and it worked for me. I was misunderstanding some of the values and thought they applied to users being registered or not. I am still uncertain what setting applies to allowing all traffic inbound from a particular address. Any tips on this would be appreciated. Thanks, Ed

Re: [SR-Users] Message Routing To/From Gateway

2012-10-19 Thread Ed Brady
I was looking at this logic some more and wanted to clarify my configuration. I need to base the R-URI rewrite and MESSAGE forward based on whether the account exists as a local subscriber or not rather than whether the user is registered or not. This is connecting to an SMS provider using SIP. I

Re: [SR-Users] Message Routing To/From Gateway

2012-10-19 Thread Ed Brady
Will this also permit incoming messages from this domain? Do I need to add the gateway in any other settings besides the one you outlined? Thanks, Ed On Fri, Oct 19, 2012 at 6:17 AM, Vitaliy Aleksandrov wrote: > If I understood you right you just need to rewrite R-URI domain and > forward M

Re: [SR-Users] Message Routing To/From Gateway

2012-10-19 Thread Vitaliy Aleksandrov
If I understood you right you just need to rewrite R-URI domain and forward MESSAGE if a user in not registered. if (!lookup("location")) { switch($retcode) { case -1: $rd = "gatewaydomain.com"; t_relay(); exit; default: sl_send