[OpenSIPS-Users] too many hops

Liviu Chircu liviu at opensips.org
Mon Mar 10 11:56:40 CET 2014


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 Developer
http://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 
> <mailto: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 <http://www.ipnordic.dk/>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140310/ac4135eb/attachment.htm>


More information about the Users mailing list