[Asterisk-Users] a few questions about sip implementation

Mark Spencer markster at digium.com
Sun Jun 15 15:54:44 MST 2003


> > >3. I have another SIP account (sip:912345678 at domain.es) which I would like
> > >to use within asterisk both for dialing out and for receiving calls.
> > >
> > >I see that sip.conf has a line
> > >
> > >register => 912345678 at domain.es/1234
> > >
> > >where 1234 is the local asterisk extension.  From chan_sip.c, line 1390 I
> > >see that I can use the form:
> > >
> > >register => user[:secret[:authuser]]@host[:port][/localextension]
> > >
> > >However my registrar requires that I authenticate with domain.es, but use
> > >a sip proxy at ip 1.2.3.4, the two are unrelated and domain.es has no ip
> > >address.  How can I get Asterisk to register with the remote prxoy?
> >
> > I sent a note to Mark about this.  We had discussed a patch to fix
> > this back in Feb, but apparently it didn't do quite the trick (due to
> > my lack of testing.)  Lines like this are supported:
> >
> > register => 9993 at something.foo.net:password at blatz.filbert.com/9993
> >
> > However, the current REGISTER routines don't chop off
> > "blatz.filbert.com" in the To: and From: fields.  Hopefully a repair
> > will be seen in the future.
>
> Ok. I hadn't understood the source too well in that respect as there
> was also the :port bit mentioned.  if this format
>
> register => 993 at realm.com:password at proxy.realm.com:port/localpart is
> acceptable I can look at modifying the existing source to accept this
> format and using it appropriately.  That shouldn't be too hard (I
> think).

Actually I just did so you can do just that, thanks to John Todd
clarifying what he wanted me to do :)

mark




More information about the asterisk-users mailing list