I have updated from latest CVS 2 days ago and I have run Realtime
SIPBuddies today i noticed
problem with codecs.
If there is nothing in the DB for allow and disallow
sip show peer ... :
Codecs : 0x10d (g723|ulaw|alaw|g729)
Codec Order : (g729|g723|ulaw|alaw)
But if I put in the DB for example
disallow : all
allow : ulaw
then
sip show peer ... :
Codecs : 0x0 (nothing)
Codec Order : (none)
Any ideas ?
--
Best Regards,
Damian Minkov
COSMOS Software Enterprises, Ltd.
Tel: (+359-2) 983-32-62
Mobile: (+359-88) 853-28-25
E-Mail: damian@space-comm.com
http://www.space-comm.com
Post address:
P. O. Box 941,
1000 Sofia,
Bulgaria
Office address:
ap. 9, fl. 4,
"11 August" str., No. 43,
1202 Sofia,
Bulgaria
Your sip_buddies table should have 2 columns, "allow" and
"disallow". You
should be able to:
INSERT INTO sip_buddies (allow,disallow) VALUES
("g729;g726;gsm","g711");
to give the equiv of:
allow=g729
allow=g726
allow=gsm
disallow=g711
-Matthew
----- Original Message -----
From: "Damian Minkov" <damian@space-comm.com>
To: <asterisk-users@lists.digium.com>
Sent: Wednesday, December 15, 2004 9:15 AM
Subject: [Asterisk-Users] Codecs and RealTime
> I have updated from latest CVS 2 days ago and I have run Realtime
> SIPBuddies today i noticed
> problem with codecs.
> If there is nothing in the DB for allow and disallow
> sip show peer ... :
> Codecs : 0x10d (g723|ulaw|alaw|g729)
> Codec Order : (g729|g723|ulaw|alaw)
>
> But if I put in the DB for example
> disallow : all
> allow : ulaw
>
> then
> sip show peer ... :
> Codecs : 0x0 (nothing)
> Codec Order : (none)
>
> Any ideas ?
>
> --
> Best Regards,
> Damian Minkov
>
> COSMOS Software Enterprises, Ltd.
> Tel: (+359-2) 983-32-62
> Mobile: (+359-88) 853-28-25
> E-Mail: damian@space-comm.com
> http://www.space-comm.com
>
> Post address:
> P. O. Box 941,
> 1000 Sofia,
> Bulgaria
>
> Office address:
> ap. 9, fl. 4,
> "11 August" str., No. 43,
> 1202 Sofia,
> Bulgaria
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
The result after
INSERT INTO sip_buddies (allow,disallow) VALUES
("g729;g726;gsm","ulaw");
is
Codecs : 0x11b (g723|gsm|alaw|g726|g729)
Codec Order : (g723|alaw|g729|g726|gsm)
But in sip.conf general i have
disallow=all
allow=g729
allow=g723.1
allow=ulaw
allow=alaw
But if do the following
INSERT INTO sip_buddies (allow,disallow) VALUES
("g729;g726;gsm","all");
the result is :
Codecs : 0x0 (nothing)
Codec Order : (none)
Is it normal all this ?
Matthew Boehm wrote:
>Your sip_buddies table should have 2 columns, "allow" and
"disallow". You
>should be able to:
>
>INSERT INTO sip_buddies (allow,disallow) VALUES
("g729;g726;gsm","g711");
>
>to give the equiv of:
>
>allow=g729
>allow=g726
>allow=gsm
>disallow=g711
>
>-Matthew
>
>----- Original Message -----
>From: "Damian Minkov" <damian@space-comm.com>
>To: <asterisk-users@lists.digium.com>
>Sent: Wednesday, December 15, 2004 9:15 AM
>Subject: [Asterisk-Users] Codecs and RealTime
>
>
>
>
>>I have updated from latest CVS 2 days ago and I have run Realtime
>>SIPBuddies today i noticed
>>problem with codecs.
>>If there is nothing in the DB for allow and disallow
>>sip show peer ... :
>> Codecs : 0x10d (g723|ulaw|alaw|g729)
>> Codec Order : (g729|g723|ulaw|alaw)
>>
>>But if I put in the DB for example
>> disallow : all
>> allow : ulaw
>>
>>then
>> sip show peer ... :
>> Codecs : 0x0 (nothing)
>> Codec Order : (none)
>>
>>Any ideas ?
>>
>>--
>> Best Regards,
>> Damian Minkov
>>
>> COSMOS Software Enterprises, Ltd.
>> Tel: (+359-2) 983-32-62
>> Mobile: (+359-88) 853-28-25
>> E-Mail: damian@space-comm.com
>> http://www.space-comm.com
>>
>> Post address:
>> P. O. Box 941,
>> 1000 Sofia,
>> Bulgaria
>>
>> Office address:
>> ap. 9, fl. 4,
>> "11 August" str., No. 43,
>> 1202 Sofia,
>> Bulgaria
>>
>>_______________________________________________
>>Asterisk-Users mailing list
>>Asterisk-Users@lists.digium.com
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>To UNSUBSCRIBE or update options visit:
>> 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
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
At 11:02 AM 12/15/04, you wrote:>Your sip_buddies table should have 2 columns, "allow" and "disallow". You >should be able to: > >INSERT INTO sip_buddies (allow,disallow) VALUES ("g729;g726;gsm","g711"); > >to give the equiv of: > >allow=g729 >allow=g726 >allow=gsm >disallow=g711 > >-MatthewI have the sip in 2 tables, the general section is loaded in the ast_config table while each sip extension is defined in sip_buddies. The allow and disallow statements are in the ast_config table and not in the sip_buddies table. Is this wrong? Greg
You can have them in both locations. If in the ast_config, that will apply the allow/disallows to all sip clients. Use them in sip_buddies to specifcy for specific clients. -Matthew ----- Original Message ----- From: "Greg - Cirelle Enterprises" <gcirino@cirelle.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Wednesday, December 15, 2004 1:02 PM Subject: Re: [Asterisk-Users] Codecs and RealTime> At 11:02 AM 12/15/04, you wrote: > >Your sip_buddies table should have 2 columns, "allow" and "disallow". You > >should be able to: > > > >INSERT INTO sip_buddies (allow,disallow) VALUES ("g729;g726;gsm","g711"); > > > >to give the equiv of: > > > >allow=g729 > >allow=g726 > >allow=gsm > >disallow=g711 > > > >-Matthew > > I have the sip in 2 tables, the general section is loaded in > the ast_config table while each sip extension is defined in > sip_buddies. The allow and disallow statements are in the > ast_config table and not in the sip_buddies table. Is this > wrong? > > Greg > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users