[OpenSIPS-Users] opensips+asterisk: signalling not working?

Stefano Sasso stesasso at gmail.com
Wed Oct 6 16:25:52 CEST 2010


2010/10/6 Andrew Pogrebennyk <andrew.pogrebennyk at portaone.com>:
> This ACK should reach the asterisk:
> U 2010/10/06 14:43:42.736777 192.168.6.130:5060 -> 77.238.yy.zz:5060
> ACK sip:77.238.yy.zz:5060;lr;ftag=931ba062;did=12c.0478d917 SIP/2.0.
> ...
> but then there is another ACK to itself.
>
> Are you doing NAT 77.238.yy.zz to 192.168.6.130 (opensips itself)?

yes.
77.238.yy.zz is dnattet to 192.168.6.130
in load_balancer table I have the asterisk boxes as 192.168.6.131 and
192.168.6.132

> How do you reach the asterisk? I think it should have a mapped routable
> IP address to.

So I can resolve dnatting i.e. port 5061 to .131 and 5062 to .132 and
having in load_balancer
77.238.xx.yy:5061 and 77.238.xx.yy:5062?
Am I right?

>
> About the correctness of your config, you may remove the record_route()
> from loose_route block which is marked with "even if in most of the
> cases is useless.." comment. You only need this:
>
>        # record routing
>        if (!is_method("REGISTER|MESSAGE"))
>                record_route_preset("77.238.xx.yy:5060");
>
> IP should be the same as in advertised_address setting. Also add
> force_rport() at the very top of the main route.

done

> Note 1: you do need the advertised_address setting.

ok

> Note 2: after removing IPs from domain table you may need to replace
> if (!is_uri_host_local())
> ..
> with equivalent check:
> if(!uri==myself)
>
> for outbound routing. At least it worked for me.

yes, i changed like this.

> Anyway the main question is how do you reach the asterisk.

via their internal ip addresses.

thanks so much

-- 
Stefano Sasso
http://stefano.dscnet.org/



More information about the Users mailing list