it was not a real code, but just a schema.
I can't write a more precise snippet of code, since I'm completely
unaware of your configuration.
But in any case, I would delegate all of the logic to your Ruby script
and keep the minimum in the extensions.conf.

AF.


Olivier Saulnier wrote:
> Anton Frolov a écrit :
> 
>> When registering the softphone:
>>  
>>
> OK, in which file do i do that??
> 
>> SoftPhonesDB.insert("olivier", $ip);
>>
>>  
>>
> Could you explain me what means "SoftPhonesDB.insert"?? It's not an AGI
> commande, how can i use it??
> 
>> In extensions.conf:
>> exten => 302,s,agi,script.rb,${EXTEN}
>>
>>  
>>
> OK, i understand
> 
>> In script.rb:
>> $ip = SoftPhonesDB.select("olivier");
>> Dial(SIP/$ip, $arg);
>>
>>  
>>
> Hummm...Does Dial working with Ip adress?? Or should i write ine the
> database the softphone number too??
> 
> Best regards,
> Olivier S
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to