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

Pages: 1 ... 32 33 [34]
496
Windows / Re: no google voice calls
« on: June 04, 2013, 02:23:03 AM »
Hi,

Do you have enough credit to call?

A log would help debug the issue (Check Debug Here and JABBER in the debug window).

497
Yate bugs / Re: Javascript route gwout
« on: May 29, 2013, 01:37:15 AM »
Hi,
In regexroute you clear the caller and callername parameters when routing.
Do the same in javascript.

498
Yate users hangout place / Re: sorry for a really stupid question
« on: May 27, 2013, 02:52:28 AM »
modsuffix is by default '.yate'.
If you have another value for it then you re-defined it and re-built yate.

499
sslcontext set in ysipchan.conf listener must be the name of the section in openssl.conf describing the context

500
Hi, here is a configuration you need.
In regexroute and sip you should forward the SDP if are going to return the call to caller.
You might want to do it if the call is going to be sent to another destination also.
If you forward media yate won't handle it, it will be exchanged directly between call parties.

regexroute.conf:

[general]
prerouteall=yes

[contexts]
.*=;rtp_forward=yes

[default]
; Route sip call back to the source
${module}^sip$=sip/sip:${caller}@${ip_host}:${ip_port}


cache.conf:

[cnam]
enable=yes
ttl=84600


ysipchan.conf:

[general]
forward_sdp=yes

Case 1: You have a SIP CNAM service provider.
You need sip_cnam_lnp module.
It must be explicitly loaded in yate.conf:

[postload]
${modulepath}/sip/sip_cnam_lnp${modsuffix}=yes

You must configure it:
sip_cnam_lnp.conf:

[cnam]
callto=sip/sip:${caller}@SIP_CNAM_PROVIDER_IP


Case 2: Use OpenCNAM
You need an script to make HTTP requests and handle the response.
It must implement a call.preroute message handler, make the request and put the calling party name in 'callername' parameter of the message.
I don't think you can use PHP scripts: it won't work on Windows.
You may use Python.

501
First you need the CNAM service provider.
1. You can use OpenCNAM, in which case you'll need the script you mentioned or write another one doing it
2. You can find a CNAM service you can query using SIP

You can handle calls on sip (from Obihai devices or any other source), make the CNAM query and return the calls back.

A minimal set of modules would be:
ysipchan.yate
regexroute.yate

If you are going to use an external script to do CNAM you'll also need
extmodule.yate

For sip CNAM you'll need:
sip_cnam_lnp.yate
cache.yate

You'll need extra modules if you want support for Google Voice

When you'll decide what to use I can assist you with the configuration.

502
Other Yate server issues / Re: Can't make a call connected
« on: April 09, 2013, 01:34:04 AM »
Hi,

If you user is registered using tcp you must save the connection id also when registered and return it when routing (you must add the field to the database also):
register.conf:

[user.register]
query=UPDATE users SET location='${data},expires=CURRENT_TIMESTAMP + INTERVAL '${expires} s',oconnection_id=${oconnection_id} WHERE username='${username}'

[call.route]
query=SELECT location,oconnection_id,(CASE WHEN location IS NULL THEN 'offline' ELSE NULL END) AS error FROM users WHERE username='${called}' OR username='${called}@mydomain.com'

If you have other setup please attach a sniffer log for call.route/call.execute messages and the ysipchan.conf and register.conf files.


503
You must edit regexroute.conf:

[extra]
resource.subscribe=90

[resource.subscribe]
${module}^jabberclient$=if ${operation}^subscribe$= {
   ; Accept subscription request
   .*=enqueue resource.notify;account=${account};to=${subscriber};operation=subscribed
}

504
There is no place in user interface of Yate Client to configure such thing.

You can do it by editing a configuration file.
What platform are you using?

Pages: 1 ... 32 33 [34]