you need to set your external IP in the sip.conf to be your public IP after NAT (assuming your talking over a public network). That way when the sip request goes out and it sees the IP address your are sending to is outside your "localnets" it changes the SIP header to use the x.y.z.w IP you set in the externip (i believe thats the exact spelling, but not looking at sip.conf this second).
Trevor Benson A1 Networks | Network Engineer dCAP- Digium Certified Asterisk Professional LPIC-1, Network+, CNA, MCP DID (707)703-1041 Fax (707)703-1983 [email protected] On Jul 5, 2010, at 3:18 AM, eyal goltzman wrote: > Hello, > > I'm trying to register to my provider sip trunk, I got from him an host IP > (a.b.c.d) to connect to and my provider recognize me based on the fixed IP > (x.y.z.w) he gave me (no need for username and password) > > In the sip.conf I add: > > [mytrunk] > type=friend > insecure=no > host=a.b.c.d > fromdomain=x.y.z.w > qualify=3600 > nat=no ; change to yes if you are behind NAT > bindport=5060 > bindaddr=0.0.0.0 > context=default > disallow=all > allow=ulaw > allow=alaw > > Now, my asterisk resides in my internal network (10.100.101.107) and in the > SIP requests that sent to the provider I can see (via a sniffer) that the > "From" and "Contact" fields have - sip:[email protected] and not the > x.y.z.w I expected to see as a result of the fromdomain=x.y.z.w. > > Any idea? > > Thanks, > > Eyal > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
