[OpenSIPS-Users] too many hops

Mike Claudi Pedersen mike.pedersen at ipnordic.dk
Mon Mar 10 12:08:00 CET 2014


if i just add a user and a usrloc to my usrloc database
eg.

opensipsctl add user1 1234
opensipsctl ul add user1 user1 at voipserver.dk

how do i in the simplest manner rewrite the call?
so when i call user1 from user2, it rewrites user1 to user1 at voipserver.dk

if i could just understand how this part is written in the config i think
i'll find the rest much easier




2014-03-10 11:56 GMT+01:00 Liviu Chircu <liviu at opensips.org>:

>  Hello Mike,
>
> Instead of simply relaying initial INVITEs, you should also add some
> registrar logic. You need at least something like this:
>
> if (!lookup("location")) {
>         t_reply("404", "Not Found");
>         exit;
> }
>
> A successful registrar *lookup* will also rewrite the R-URI of your
> requests. Read more about it here [1].
>
> [1]:
> http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294027
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 03/10/2014 12:03 PM, Mike Claudi Pedersen wrote:
>
>  im trying to establish connection between 2 phones
> user1: 43384001
> user2: 43384002
>
>  i have user 2 added to usrloc with the cmd:
>
>   opensipsctl ul add 43384003 sip:+1043384003*2776 at voip.local.com
>  which is an asterisk server that handles calls in a specific way.
>
>  but when i try to call i get "too many hops"
>
>  this is my invite handling
>
>  if (method=="INVITE")
>     {
>         t_relay();
>         exit;
>     };
>
>  do i need some sort of line added to include using usrloc
> --
> Med venlig hilsen
> ipnordic A/S
>
>  Mike Claudi Pedersen
> Tekniker
>
>  Telefon: 79301033
> www.ipnordic.dk
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140310/f3eefcad/attachment.htm>


More information about the Users mailing list