[ previous ] [ next ] [ threads ]
 To :  Rodrigo Ricardo Passos <rodrigopassos@g...>
 From :  Monica Tepelus <monica@v...>
 Subject :  Re: [yate] Additional variable
 Date :  Mon, 08 Apr 2013 10:56:38 +0300
Hi Rodrigo,

I'm not sure what you want to build. Please see the answers inline.

Rodrigo Ricardo Passos wrote:
> Monica,
>
> About call.execute, i'm trying to execute a call coming from pstn. I'm 
> trying execute the follow process:
>
>    1. install call.route
>    2. in call.route prepare call.execute
>    3. after call.execute prepared, dispatch call.execute message.
>
- if you install call.route and answer to it, you don't need to send 
call.execute.
You would only need to do call.execute on behalf of a channel.
>
> So,  the call.execute message debug is:
> command: 
> %%>message:62aafba1-af6f-4026-98ea-debd799a8a16:1364914312:call.execute::direct=sip/sip%z0214520310990@s...%z5060:caller=3432385105:id=:called=0214520310990
> received: 
> %%
> The topology of the call is : come from pstn, take routing decision, 
> send to another yate server
- if you only want to take routing decision then you only need to answer 
to call.route message. Depending on how complex this is you might be 
able to do it in regexroute/query from register module/external module 
(PHP or another language).
>
> How can i make this scenario in php?
- for a very basic routing script in PHP, take a look at route.php from 
share/scripts/ in yate's sources.

Regards,
Monica Tepelus
>
> Best regards,
>
> Rodrigo R Passos
> Em 01/04/2013 11:32, Monica Tepelus escreveu:
>> Hi Rodrigo,
>>
>> We don't have a library for java at the moment.
>> Here is the specification for the extmodule protocol if you want to 
>> build one:
>> http://yate.null.ro/docs/extmodule.html
>>
>> Regards,
>> Monica Tepelus
>>
>> Rodrigo Ricardo Passos wrote:
>>> Monica,
>>> Thanks again
>>> About java, exist some project to have an extmodule?
>>> About socket using extmodule, what is the fundamental information to 
>>> return for Yate?
>>> What is the structure of these return commands?
>>>
>>> Regards,
>>>
>>> Rodrigo
>>>
>>> Em 01/04/2013 10:34, Monica Tepelus escreveu:
>>>> Hi Rodrigo,
>>>>
>>>> In php I have something like this:
>>>> $info = array();
>>>> $info["sip/31"] = array(
>>>>    "customer_id" => "value",
>>>>    "customer_dir_path" => "value"
>>>> );
>>>>
>>>> And in the functions I add: global $info;  -- make the variable 
>>>> global in all the script
>>>> You would have to see the equivalent for that in perl.
>>>>
>>>> Regards,
>>>> Monica Tepelus
>>>>
>>>>
>>>> Rodrigo Ricardo Passos wrote:
>>>>> Hello Monica, thanks for your return.
>>>>> So Monica, could you send me one example about how can i use the 
>>>>> global array?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Rodrigo
>>>>>
>>>>> Em 01/04/2013 05:12, Monica Tepelus escreveu:
>>>>>> Hello Rodrigo,
>>>>>>
>>>>>> I believe custom variables are not copied in call.answered 
>>>>>> messages. When I needed additional parameters in messages where I 
>>>>>> couldn't have them I saved them in a global array where the key 
>>>>>> was the channel id. You can later use them when other messages 
>>>>>> are triggered. Don't forget to clean them in chan.hangup
>>>>>>
>>>>>> Custom parameters can be copied in call.cdr messages.
>>>>>>
>>>>>> Regards,
>>>>>> Monica Tepelus
>>>>>>
>>>>>> Rodrigo Ricardo Passos wrote:
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I'm using yate extmodule with perl, passing chan.record over 
>>>>>>> chan.masquerade  to record calls. It's wotk fine. Now, i need to 
>>>>>>> configure one variable in call.route to be used in call.answered 
>>>>>>> before the chan.masquerade event.
>>>>>>>
>>>>>>> Someone can help me to create this variable in call.route to be 
>>>>>>> getting in call.answered?
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Rodrigo
>>>>>>
>>>>>
>>>>
>>>
>>
>