Howard Lin
2003-Apr-17 10:01 UTC
[Asterisk-Users] preserve hostname for INVITE request-uri
My * server is connected with a SIP proxy, which handles different domains. So to dial a number in the SIP proxy domain from a phone on *, I use Dial(SIP/1234@domain1.com). The problem is that the Dial convert domain1.com to IP address, which causes the SIP proxy returns a 404. I'm wondering if host name can be preserved at least in the request-uri (To header can be optional.) Thanks, Howard Lin
Martin Pycko
2003-Apr-17 11:22 UTC
[Asterisk-Users] preserve hostname for INVITE request-uri
Just define it as peer in sip.conf and register with asterisk or just state it's ip with host= like this: [proxy] type=peer secret=password host=ip_address_of_proxy and then Dial,SIP/${EXTEN}@proxy regards Martin On Thu, 17 Apr 2003, Howard Lin wrote:> My * server is connected with a SIP proxy, which handles different domains. So to dial a number in the SIP proxy domain from a phone on *, I use Dial(SIP/1234@domain1.com). The problem is that the Dial convert domain1.com to IP address, which causes the SIP proxy returns a 404. I'm wondering if host name can be preserved at least in the request-uri (To header can be optional.) Thanks, > > Howard Lin > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Howard Lin
2003-Apr-17 12:34 UTC
[Asterisk-Users] preserve hostname for INVITE request-uri
What I want is that the INVITE sent from Asterisk to SIP proxy will look like this: INVITE sip:12345678@mydomain.com ..... But * replaced mydomain.com with the actual IP in the request-uri. I did what you suggested but it still use the IP address. I remember there was a similar problem with REGISTER message and it was fixed.(see http://lists.digium.com/pipermail/asterisk-users/2003-April/010090.html) I'm wondering if the same fix can be applied to INVITE. Howard> -----Original Message----- > From: Martin Pycko [mailto:martinp@digium.com] > Sent: Thursday, April 17, 2003 2:22 PM > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] preserve hostname for INVITE request-uri > > > Just define it as peer in sip.conf and register with asterisk > or just state it's ip with host= like this: > > [proxy] > type=peer > secret=password > host=ip_address_of_proxy > > and then > > Dial,SIP/${EXTEN}@proxy > > regards > Martin > > On Thu, 17 Apr 2003, Howard Lin wrote: > > > My * server is connected with a SIP proxy, which handles > different domains. So to dial a number in the SIP proxy > domain from a phone on *, I use Dial(SIP/1234@domain1.com). > The problem is that the Dial convert domain1.com to IP > address, which causes the SIP proxy returns a 404. I'm > wondering if host name can be preserved at least in the > request-uri (To header can be optional.) Thanks, > > > > Howard Lin > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >