[Asterisk-Users] SIP channel modification

Olle E. Johansson oej at edvina.net
Mon Nov 24 07:34:39 MST 2003


If you update your source from the CVS, you'll get a new SIP channel
that supports a new syntax for SIP calls in extensions.conf

If you define a SIP peer in sip conf, like
    [mysipprovider]
     ...

You can now use
    dial(SIP/mysipprovider/extension)

Where the part "mysipprovider" is related to the sip.conf section.

Also, you can dial any SIP URL by
     dial(SIP/extension at domain)
like
     dial(SIP/oej at edvina.net)

In this case, "domain" referes to a Internet domain that Asterisk (if configured
for DNS SRV records in SIP.conf) will resolve using DNS to the SIP proxy belonging
to the domain. In the example the domain "edvina.net" does not have to be configured in
SIP.conf.

The old way, SIP/extension at mysipprovider, is confusing, since this is not a URL,
but a reference to the "mysipprovider" section of SIP.conf. The new way makes
it easier to read extensions.conf and understand when you dial a URL and when you dial
to a provider or SIP client configured in SIP.conf.

I will update the Wiki with the new syntax soon, have to reconfigure my server. :-)

/Olle




More information about the asterisk-users mailing list