[Freeswitch-users] forcing codec on leg b

David Ponzone david.ponzone at ipeva.fr
Tue Dec 21 11:22:39 MSK 2010


in the dialplan, use a condition to match network_addr and then set absolute_codec_string to PCMA.

David Ponzone  Direction Technique
email: david.ponzone at ipeva.fr
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
www.ipeva.fr  -   www.ipeva-studio.com

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.




Le 21/12/2010 à 09:18, Sameer Khan a écrit :

> Hello guyz, 
> Need your help
> 
> I want my fs to behave like this
> 
> when call arrives for a number 1234656789 at fs i call a php file in which i check in the database that what should be the forwarding address of this number. for example the forwarding address is 123456789 at 1.1.1.1 then i return that forwarding address in bridge application in the end
> i want to define some setting in sip profiles, user directory or wherever so when ever ip is 1.1.1.1 it set the codec on leg b to pcma
> like it is defined in asterisk as 
> [1.1.1.1] 
> host=1.1.1.1 
> type=peer
> disallow=all 
> allow=alaw
> 
> 
> i want my sip profile to check if network address is 1.1.1.1, it uses a particular codec lets say pcma but if network address is 2.2.2.2 it uses the defult 
> and this i want to define for around 40 ip addresses
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101221/56f70178/attachment.html 


More information about the FreeSWITCH-users mailing list