[asterisk-users] AGI and some informations

Olivier Saulnier steganux at steganux.com
Wed Nov 29 01:10:33 MST 2006


Ok, i understand,

But i don't know how to get the IP Adress when a softphone is registred, 
and how to send to this IP adress, and call number to the softphone, for 
an incoming call.

best regards,
Olivier S

Anton Frolov a écrit :

>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
>
>
>
>  
>


-- 
Olivier Saulnier
STEGANUX
1er étage DIAMECANS
BEL AIR
03410 St-Victor
T: 04.70.02.27.62
F: 04.70.09.97.41
http://www.steganux.com



More information about the asterisk-users mailing list