[Asterisk-Users] a few questions about sip implementation

Simon J Mudd sjmudd at pobox.com
Sun Jun 15 14:49:06 MST 2003


markster at digium.com (Mark Spencer) writes:

> > Is this correct?
> 
> I see the 100 Trying on REGISTER frequently, but if it's not valid, we can
> take it out.  It serves no really effective purpose.

I think that it's only on REGISTER messaegs that it shouldn't be
used. Perhaps previous RFCs didn't mention this.

> > 2. 10.3 Processing REGISTER requests. The 5th paragraph states "that the
> > registrar has to know the set of domain(s) for which it maintains
> > bindings".
> >
> > How is this specified in Asterisk?  Through the context?  ie should the
> > domains be specified in sip.conf via the context parameter, of the
> > form context=domain.com?
> 
> What's the practical meaning of that?  Asterisk just uses the part in
> front of the "@" sign and ignores the rest.  This way you can use the
> domain or IP just the same.

No. I need ot register with the sip To: as 

To: <912345678 at realm.com>

However the sip proxy IS NOT realm.com but an ip wit no name: 1.2.3.4

Currently if i use

register => 912345678 at realm.com   ; fails as no ip to connect to
register => 912345678 at 1.2.3.4     ; fails as "realm/domain" is
incorrect.

John's previous message appears to be a solution if I can parse the
more complicated "extended format".

> > 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?
> 
> You do:
> 
> register => 912345678:<password>:domain.es at 1.2.3.4/1234

ok. thanks I'll try that tomorrow.

Thanks again.

Simon



More information about the asterisk-users mailing list