Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Monica Tepelus

Pages: 1 ... 9 10 [11] 12 13 14
151
Yate users hangout place / Re: Callerid from database
« on: February 12, 2015, 06:01:37 AM »
Hi,

If you only want to change the callername parameter then you have to added in the query. If you don't route from the database it would be something like this:

[call.preroute]
query=SELECT contact_name as callername, null as location FROM contacts WHERE contact_phone_number = ${caller}
result=location

or

[call.route]
query=SELECT contact_name as callername, location FROM contacts WHERE contact_phone_number = ${caller}
result=location

id you also have the location in the database

This depends on how the routing is done and if you want to do it here or from another module/script


152
YateBTS / Re: YateBTS, NIB, and regex subscriber list
« on: February 12, 2015, 05:54:18 AM »
Hi,

The nib script cleans the registration where 'expire' time is reached. You can configure this by setting "tmsi_expire" in [ybts] section. Default is 10 days.

imsi_cleanup = ybts_conf.getValue("ybts","tmsi_expire",864000); // 3600 * 24 * 10

153
Yate users hangout place / Re: Callerid from database
« on: February 12, 2015, 05:01:10 AM »
Hi,

You can use the register module

http://docs.yate.ro/wiki/Register

154
YateBTS / Re: Changing SIP headers on nib.js
« on: February 05, 2015, 02:55:58 AM »
Hi,

You can have as many hooks as you want from other routing modules by installing more handlers for call.route message.
Some people do some more processing in call.preroute stage or you can install more call.route handlers.
You could also set those parameters in call.execute but not handle it.

Start yatebts with "sniffer on" from telnet and follow this messages. Depending on when you need this parameters (before/after functions done in nib.js) will tell you what works best for you.

155
YateBTS / Re: Changing SIP headers on nib.js
« on: February 03, 2015, 08:47:56 AM »
Hi,

You can't set this in accfile.conf Accfile contains the autentification information.

Adding a custom header to a call must be done in the routing stage: either in routeOutside() in nib.js or from another routing module that catches call.route/call.execute and adds that custom header.

156
Hi,

You can't install same handler for different filters in the same script. You would need to install
Yate::Install("chan.notify",100)

and then from the script you would keep an additional structure that adds/removes $chan_ids that you are interested in.

157
Linux / Re: [ASK] YateBTS Project
« on: February 02, 2015, 09:46:08 AM »
You should start by reading" The Installing and Administration" section and some of the topics from Configuration section from:
http://wiki.yatebts.com

We have installed YateBTS on Ubuntu, so I don't see an issue with that.

158
You set regexp to a value matching only the sims you use :)

159
Linux / Re: [ASK] YateBTS Project
« on: January 29, 2015, 09:50:04 AM »
Hi,

The YateBTS Labkits use Mageia 4 but other distributions should also be ok. Also, DON'T use it in a virtual machine.
A normal computer should be ok. Yate doesn't use many resources and when it needs more memory/processing power it's because it's under heavy load.

As a starting point for your project see the NIB application. Users can send SMSs between then and user can also have SMS s conversion with elizachat bot.
 
http://wiki.yatebts.com/index.php/Javascript_NIB


160
Hi Jamie,

Yes, the logic is different and more complex when trying to implement ivrs in a global script.
In Yate you can't have an unpaired channel for very long. So I suggest you route your call to a dumbchannel (http://docs.yate.ro/wiki/Dumbchan). You then send and receive messages on behalf on that dumbchan from your global script. In general when sending messages on behalf of someone else you use chan.masquerade (http://docs.yate.ro/wiki/Chan.masquerade).

Internally you will have the same flow of messages but you will interact differently with them. We don't have php examples with dumbchannel but you can follow the YAYPM ones where dumbchan is used (http://docs.yate.ro/wiki/index.php?search=yaypm&go=Go&title=Special%3ASearch)

Good luck :)

161
YateBTS / Re: Changing SIP headers on nib.js
« on: January 20, 2015, 05:23:43 AM »
hi,

You will need to modify the code a little in function routeOutside. You can change the caller directly from there.
Other headers can be set with:

msg["osip_"+headername] = headervalue;



162
Yate users hangout place / Re: Problems with call.answered
« on: January 20, 2015, 04:32:09 AM »
Hi,

Since you didn't paste the full code I can't be sure you called things in the correct order.  The first thing I note is that you don't need to install 'call.answered' since you are sending it from the script.

Also, there is a basic example in share/scripts/playrec.php in yate's sources that starts exactly as you need so check it out.

163
Yate users hangout place / Re: Play the file after the call
« on: January 07, 2015, 03:59:21 AM »
I need a complete log to see what is happening. You might have sent this too late or for the wrong channel id. Post a longer sniffer log. One that contains both chan.disconnected messages.

164
Yate users hangout place / Re: External Scripts support - Windows
« on: January 05, 2015, 05:52:27 AM »
Yes, you can have a global script that is started as a service and handles messages on behalf of multiple channels. You can use dumbchannels to have the leg connected to a channel and send messages on behalf of the dumbchannel from your script.

165
Yate users hangout place / Re: Play the file after the call
« on: January 05, 2015, 05:48:10 AM »
Hi,

Try doing this from a php/javascript global script or from a javascript routing script. You have better control over your parameters.

In a global script catch chan.disconnected and send a call.execute inside chan.masquerade on behalf of the chan A

An example in php:
$m = new Yate("chan.masquerade");
$m->params["message"] = "call.execute";
$m->params["id"] = "id_chan_A";
$m->params["callto"] = "wave/play//home/test/test.g729";
$m->Dispatch();

Pages: 1 ... 9 10 [11] 12 13 14