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.


Topics - daimond025

Pages: [1]
1
Linux / libyate socket
« on: August 01, 2014, 07:28:47 AM »
 Good day!

 Well, the writing of this library on nodejs I encountered the following problem.

The function Init() is responsible for creating sockets to further parse the message Yate

But i dont understand what port you are connecting to listen to the message of Yate (This is clearly not the port = 0).
If I connect to 5038  I get - YATE 4.3.0-1 (http://YATE.null.ro). I used TCP sockets. 

And When i installed "%%>connect"  I receive an error message - Error in: %%>connect:global

May be I need to fix some parameters in files .conf

Thanks for your help

2
Linux / Ringback problem
« on: July 29, 2014, 06:48:16 AM »
Good day!

I debug library libyate.php on nodejs. I have a problem with implementation follow library https://github.com/shimaore/yate/blob/master/share/scripts/ringback.php

below i show messages from/to yate
%%<install:50:call.ringing:true
%%<watch:call.ringing:true
%%<setlocal:restart:true:true
%%>message:0xb4eef0e0.1408803016:1406636652:call.ringing::id=sip/2:module=sip:status=ringing:address=172.17.2.44%z65007:targetid=sip/1:billid=1406636584-1:peerid=sip/1:lastpeerid=sip/1:answered=false:direction=outgoing:callid=sip/1655745038@172.17.2.181/1331911989/8e5dec24:sip_contact=<sip%z127@172.17.2.44%z65007;rinstance=75edb7ef90183ba8>:sip_user-agent=3CXPhone 6.0.18815.0:earlymedia=false:handlers=javascript%z15,callfork%z20,yrtp%z50,cdrbuild%z50


I answer for this  - %%<message:0xb4eef0e0.1408803016:true:call.ringing::id=sip/2:module=sip:status=ringing:address=172.17.2.44%z65007:targetid=sip/1:billid=1406636584-1:peerid=sip/1:lastpeerid=sip/1:answered=false:direction=outgoing:callid=sip/1655745038@172.17.2.181/1331911989/8e5dec24:sip_contact=<sip%z127@172.17.2.44%z65007;rinstance:sip_user-agent=3CXPhone 6.0.18815.0:earlymedia=true:handlers=javascript%z15,callfork%z20,yrtp%z50,cdrbuild%z50:formats=mulaw:ringback=dtmfstr/11111


Yate send me - %%<message::true:call.ringing::id=sip/2:module=sip:status=ringing:address=172.17.2.44%z65007:targetid=sip/1:billid=1406636584-1:peerid=sip/1:lastpeerid=sip/1:answered=false:direction=outgoing:callid=sip/1655745038@172.17.2.181/1331911989/8e5dec24:sip_contact=<sip%z127@172.17.2.44%z65007;rinstance:sip_user-agent=3CXPhone 6.0.18815.0:earlymedia=true:handlers=javascript%z15,callfork%z20,yrtp%z50,cdrbuild%z50:formats=mulaw:ringback=dtmfstr/11111


Then I answer - %%>message:15660swb9t85bmf49.621474312:1406636653:chan.masquerade::id=sip/1:module=sip:status=ringing:address=172.17.2.44%z65007:targetid=sip/1:billid=1406636584-1:peerid=sip/1:lastpeerid=sip/1:answered=false:direction=outgoing:callid=sip/1655745038@172.17.2.181/1331911989/8e5dec24:sip_contact=<sip%z127@172.17.2.44%z65007;rinstance:sip_user-agent=3CXPhone6.0.18815.0:earlymedia=true:handlers=javascript%z15,callfork%z20,yrtp%z50,cdrbuild%z50:formats=mulaw:ringback=dtmfstr/11111:message=chan.attach:replace=dtmfstr/11111:autorepeat=true:single=true

yate send me - %%<message:15660swb9t85bmf49.621474312:false:chan.attach::id=sip/1:module=sip:status=accepted:address=172.17.2.44%z65007:targetid=sip/2:billid=1406636584-1:peerid=sip/2:lastpeerid=sip/2:answered=false:direction=incoming:callid=sip/1655745038@172.17.2.181/1331911989/8e5dec24:sip_contact=<sip%z127@172.17.2.44%z65007;rinstance:sip_user-agent=3CXPhone6.0.18815.0:earlymedia=true:handlers=javascript%z15,callfork%z20,yrtp%z50,cdrbuild%z50,fax%z10,sip%z10,dbwave%z90,analogdetect%z100,mux%z100,yrtp%z100,tonedetect%z100,analyzer%z100,pbx%z100,moh%z100,tone%z100,wave%z100,filetransfer%z100,mrcp%z100:formats=mulaw:ringback=dtmfstr/11111:replace=dtmfstr/11111:autorepeat=true:single=true:callid=sip/ODJhNTJhYzIzMDg1ZmJhOGYxNDgxZmQ3MzBkMGM2ZTU./240a3e07/

Why do i get a false? Do you have a ideas for it?

And next may be this is due to next parameters: targetid,peerid,lastpeerid. What is it  responsible?
Is it connected with SipChannelImcoming / SipChannelOutgoing?
I know than id is the number of channel.

I will appreciate any ideas

3
Linux / Redirect the call
« on: July 18, 2014, 05:49:59 AM »
Hello!!! Im kirill and learn yate.

I have a question.
How does the routing of calls and how you can change it. Such as changing the number of the call through the message "%%> message" and "%% <message".
What parameters message by yate I need to change to redirect the call and how i can do it.

I install call.execute and i think that change parameter -   callto=sip/sip%z111@172.17.2.44%z59122 where 111 - number of changing  call and  59122  - number port, and parameter sip_from=sip%z127@172.17.2.181%5060 - outgoing call, i can redirect the call.

But i get arror - call ended. Maybe I left out some of the parameters for the call?
I know about regexroute.conf (Regular expressions) but i want to understand how work routing the call through the "%% <message".

THANK YOU FOR YOUR HELP

Pages: [1]