[Asterisk-Dev] Re: [Asterisk-cvs] asterisk/channels chan_sip.c,1.248,1.249
Thorsten Lockert
tholo at sigmasoft.com
Mon Nov 24 06:54:47 MST 2003
Yes, this is correct.
-----Original Message-----
From: asterisk-dev-admin at lists.digium.com
[mailto:asterisk-dev-admin at lists.digium.com] On Behalf Of Olle E. Johansson
Sent: Monday, November 24, 2003 8:49
To: asterisk-dev at lists.digium.com
Subject: [Asterisk-Dev] Re: [Asterisk-cvs] asterisk/channels
chan_sip.c,1.248,1.249
Do I understand correctly that we now are able to dial a SIP peer
like
SIP/freeworlddialup/21343
Where [freeworlddialup] is defined in sip.conf
...and dial SIP URLs with
SIP/oej at edvina.net
That would be much more simple to explain to newbies. The old syntax was a
bit
confusing, at least to me before I read the manual...
/O
markster at lists.digium.com wrote:
> Update of /usr/cvsroot/asterisk/channels
> In directory mongoose.digium.com:/tmp/cvs-serv25810/channels
>
> Modified Files:
> chan_sip.c
> Log Message:
> Allow SIP/peer/exten like IAX
>
>
> Index: chan_sip.c
> ===================================================================
> RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
> retrieving revision 1.248
> retrieving revision 1.249
> diff -u -d -r1.248 -r1.249
> --- chan_sip.c 21 Nov 2003 05:20:43 -0000 1.248
> +++ chan_sip.c 24 Nov 2003 01:49:43 -0000 1.249
> @@ -5673,8 +5673,15 @@
> host++;
> ext = tmp;
> } else {
> - host = tmp;
> - ext = NULL;
> + ext = strchr(tmp, '/');
> + if (ext) {
> + *ext++ = '\0';
> + host = tmp;
> + }
> + else {
> + host = tmp;
> + ext = NULL;
> + }
> }
>
> /* Assign a default capability */
>
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list