Gamaliel Bedolla | 18 Jul 01:39 2014
Picon

Sharing a sinlge Point-code identifier?

Hello all,

I'm wondering if two Yate servers can share a single point-code identifier.
This is to achieve geographic redundancy.
Can anybody let me know if this is possible?
Thanks.
Faisal Hanif | 17 Jul 08:06 2014
Picon

YATE RADIUS Accounting

Hi YATE Geeks,

 

I have a simple question,

 

Does YATE Radius accounting provide only call start/stop message  or it also provide incremental accounting messages based on some session heartbeat for online billing?

 

Thanks in advanced for help.

 

Regards,

 

 

Faisal

Rodrigo Ricardo Passos | 11 Jul 06:18 2014
Picon

Work with Redirect

Hi Yate,

I'm trying to work with redirect message using diversion=yes.
So, what's procedure i need adopt in javascript to make the redirect call?
Anyone could help me  how can i work with javascript?

Follow the complete call.

sniffed 'database' time=1405049653.815109
   thread=0x7f29f4040e60 'Call Router'
   data=(nil)
   retval='(null)'
   param['account'] = 'ASC4'
   param['query'] = 'insert into CallSessionRecords (id, keyName, 
keyValue) values ('sip/7','callType','srvDoFixedLocal')'
Returned true 'database' delay=0.000429
   thread=0x7f29f4040e60 'Call Router'
   data=(nil)
   retval='(null)'
   param['account'] = 'ASC4'
   param['query'] = 'insert into CallSessionRecords (id, keyName, 
keyValue) values ('sip/7','callType','srvDoFixedLocal')'
   param['handlers'] = 'mysqldb:100'
   param['affected'] = '1'
   param['dbtype'] = 'mysqldb'
Returned true 'call.route' delay=0.012012
   thread=0x7f29f4040e60 'Call Router'
   data=(nil)
   retval='sip/sip:26010001@...'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'incoming'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['antiloop'] = '18'
   param['ip_host'] = '172.16.22.11'
   param['ip_port'] = '5060'
   param['ip_transport'] = 'UDP'
   param['sip_uri'] = 'sip:26010001@...'
   param['sip_from'] = 'sip:4626000001@...'
   param['sip_to'] = '<sip:26010001@...>'
   param['sip_callid'] = '1822047737@...'
   param['device'] = 'Yate'
   param['sip_user-agent'] = 'Yate'
   param['sip_contact'] = '<sip:4626000001@...:5060>'
   param['sip_allow'] = 'ACK, INVITE, BYE, CANCEL, REGISTER, REFER'
   param['sip_content-type'] = 'application/sdp'
   param['rtp_addr'] = '172.16.22.11'
   param['media'] = 'yes'
   param['formats'] = 'alaw'
   param['transport'] = 'RTP/AVP'
   param['rtp_rfc2833'] = '101'
   param['rtp_port'] = '31062'
   param['rtp_forward'] = 'yes'
   param['handlers'] = 'javascript:15,regexroute:100,route_proc:10'
   param['callDirection'] = 'in'
   param['anumber'] = '4626000001'
   param['bnumber'] = '26010001'
   param['srvName'] = 'srvproc01'
   param['useragent'] = 'uas'
   param['calltype'] = 'srvDoFixedLocal'
Sniffed 'call.execute' time=1405049653.803732
   thread=0x7f29f4040e60 'Call Router'
   data=0x7f29f404a890
   retval='(null)'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'incoming'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['antiloop'] = '18'
   param['ip_host'] = '172.16.22.11'
   param['ip_port'] = '5060'
   param['ip_transport'] = 'UDP'
   param['sip_uri'] = 'sip:26010001@...'
   param['sip_from'] = 'sip:4626000001@...'
   param['sip_to'] = '<sip:26010001@...>'
   param['sip_callid'] = '1822047737@...'
   param['device'] = 'Yate'
   param['sip_user-agent'] = 'Yate'
   param['sip_contact'] = '<sip:4626000001@...:5060>'
   param['sip_allow'] = 'ACK, INVITE, BYE, CANCEL, REGISTER, REFER'
   param['sip_content-type'] = 'application/sdp'
   param['rtp_addr'] = '172.16.22.11'
   param['media'] = 'yes'
   param['formats'] = 'alaw'
   param['transport'] = 'RTP/AVP'
   param['rtp_rfc2833'] = '101'
   param['rtp_port'] = '31062'
   param['rtp_forward'] = 'yes'
   param['handlers'] = 'javascript:15,regexroute:100,route_proc:10'
   param['callDirection'] = 'in'
   param['anumber'] = '4626000001'
   param['bnumber'] = '26010001'
   param['srvName'] = 'srvproc01'
   param['useragent'] = 'uas'
   param['calltype'] = 'srvDoFixedLocal'
   param['callto'] = 'sip/sip:26010001@...'
Returned true 'call.execute' delay=0.013000
   thread=0x7f29f4040e60 'Call Router'
   data=0x7f29f404a890
   retval='(null)'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'incoming'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['antiloop'] = '18'
   param['ip_host'] = '172.16.22.11'
   param['ip_port'] = '5060'
   param['ip_transport'] = 'UDP'
   param['sip_uri'] = 'sip:26010001@...'
   param['sip_from'] = 'sip:4626000001@...'
   param['sip_to'] = '<sip:26010001@...>'
   param['sip_callid'] = '1822047737@...'
   param['device'] = 'Yate'
   param['sip_user-agent'] = 'Yate'
   param['sip_contact'] = '<sip:4626000001@...:5060>'
   param['sip_allow'] = 'ACK, INVITE, BYE, CANCEL, REGISTER, REFER'
   param['sip_content-type'] = 'application/sdp'
   param['rtp_addr'] = '172.16.22.11'
   param['media'] = 'yes'
   param['formats'] = 'alaw'
   param['transport'] = 'RTP/AVP'
   param['rtp_rfc2833'] = '101'
   param['rtp_port'] = '31062'
   param['handlers'] = 
'javascript:15,regexroute:100,route_proc:10,javascript:15,pbxassist:15,gvoice:20,queues:45,cdrbuild:50,yrtp:50,lateroute:75,dbwave:90,filetransfer:90,jingle:90,tone:90,sip:90'
   param['callDirection'] = 'in'
   param['anumber'] = '4626000001'
   param['bnumber'] = '26010001'
   param['srvName'] = 'srvproc01'
   param['useragent'] = 'uas'
   param['calltype'] = 'srvDoFixedLocal'
   param['callto'] = 'sip/sip:26010001@...'
   param['rtp_forward'] = 'accepted'
   param['peerid'] = 'sip/8'
   param['targetid'] = 'sip/8'
Sniffed 'call.cdr' time=1405049653.816126 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.804'
   param['chan'] = 'sip/7'
   param['cdrid'] = '7'
   param['runid'] = '1405049422'
   param['operation'] = 'update'
   param['direction'] = 'incoming'
   param['duration'] = '0.012'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'incoming'
   param['external'] = '4626000001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
Returned false 'call.cdr' delay=0.003070 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.804'
   param['chan'] = 'sip/7'
   param['cdrid'] = '7'
   param['runid'] = '1405049422'
   param['operation'] = 'update'
   param['direction'] = 'incoming'
   param['duration'] = '0.012'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'incoming'
   param['external'] = '4626000001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['handlers'] = 'register:10,queuesnotify:10,cdrcombine:100'
Sniffed 'chan.startup' time=1405049653.816666
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['id'] = 'sip/8'
   param['module'] = 'sip'
   param['status'] = 'outgoing'
   param['address'] = '172.16.22.4:5060'
   param['targetid'] = 'sip/7'
   param['answered'] = 'false'
   param['direction'] = 'outgoing'
   param['callid'] = 'sip/72489405@.../598080395/'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['billid'] = '1405049422-4'
   param['callto'] = 'sip/sip:26010001@...'
   param['calledfull'] = '26010001'
   param['sip_callid'] = '72489405@...'
20140711003413.819319 <pbxassist:CALL> Created assistant for 'sip/8'
Returned false 'chan.startup' delay=0.002721
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['id'] = 'sip/8'
   param['module'] = 'sip'
   param['status'] = 'outgoing'
   param['address'] = '172.16.22.4:5060'
   param['targetid'] = 'sip/7'
   param['answered'] = 'false'
   param['direction'] = 'outgoing'
   param['callid'] = 'sip/72489405@.../598080395/'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['billid'] = '1405049422-4'
   param['callto'] = 'sip/sip:26010001@...'
   param['calledfull'] = '26010001'
   param['sip_callid'] = '72489405@...'
   param['handlers'] = 'javascript:15,pbxassist:15,cdrbuild:50'
Sniffed 'chan.connected' time=1405049653.816699
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x7f29f404a890
   retval='(null)'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'routed'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['peerid'] = 'sip/8'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
Returned false 'chan.connected' delay=0.002783
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x7f29f404a890
   retval='(null)'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'routed'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['peerid'] = 'sip/8'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
Sniffed 'chan.connected' time=1405049653.816713
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x20e1cb0
   retval='(null)'
   param['id'] = 'sip/8'
   param['module'] = 'sip'
   param['status'] = 'outgoing'
   param['address'] = '172.16.22.4:5060'
   param['targetid'] = 'sip/7'
   param['billid'] = '1405049422-4'
   param['peerid'] = 'sip/7'
   param['answered'] = 'false'
   param['direction'] = 'outgoing'
   param['callid'] = 'sip/72489405@.../598080395/'
Returned false 'chan.connected' delay=0.002833
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x20e1cb0
   retval='(null)'
   param['id'] = 'sip/8'
   param['module'] = 'sip'
   param['status'] = 'outgoing'
   param['address'] = '172.16.22.4:5060'
   param['targetid'] = 'sip/7'
   param['billid'] = '1405049422-4'
   param['peerid'] = 'sip/7'
   param['answered'] = 'false'
   param['direction'] = 'outgoing'
   param['callid'] = 'sip/72489405@.../598080395/'
Sniffed 'call.cdr' time=1405049653.819356 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.817'
   param['chan'] = 'sip/8'
   param['cdrid'] = '8'
   param['runid'] = '1405049422'
   param['operation'] = 'initialize'
   param['direction'] = 'outgoing'
   param['duration'] = '0.003'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'outgoing'
   param['external'] = '26010001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.4:5060'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['billid'] = '1405049422-4'
   param['calledfull'] = '26010001'
Returned false 'call.cdr' delay=0.000296 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.817'
   param['chan'] = 'sip/8'
   param['cdrid'] = '8'
   param['runid'] = '1405049422'
   param['operation'] = 'initialize'
   param['direction'] = 'outgoing'
   param['duration'] = '0.003'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'outgoing'
   param['external'] = '26010001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.4:5060'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['billid'] = '1405049422-4'
   param['calledfull'] = '26010001'
   param['handlers'] = 'register:10,queuesnotify:10,cdrcombine:100'
Sniffed 'chan.hangup' time=1405049653.834807
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['id'] = 'sip/8'
   param['module'] = 'sip'
   param['cause_sip'] = '302'
   param['reason_sip'] = 'Moved Temporarily'
   param['sip_contact'] = '<sip:B4626010001@...>'
   param['sip_server'] = 'Yate'
   param['sip_allow'] = 'ACK, INVITE, BYE, CANCEL, REGISTER, REFER, 
OPTIONS, INFO'
   param['redirect'] = 'true'
   param['called'] = 'B4626010001'
   param['calleduri'] = 'sip:B4626010001@...'
   param['status'] = 'outgoing'
   param['address'] = '172.16.22.4:5060'
   param['targetid'] = 'sip/7'
   param['billid'] = '1405049422-4'
   param['peerid'] = 'sip/7'
   param['lastpeerid'] = 'sip/7'
   param['answered'] = 'false'
   param['direction'] = 'outgoing'
   param['callid'] = 'sip/72489405@.../598080395/'
   param['reason'] = 'Moved Temporarily'
Returned false 'chan.hangup' delay=0.000304
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['id'] = 'sip/8'
   param['module'] = 'sip'
   param['cause_sip'] = '302'
   param['reason_sip'] = 'Moved Temporarily'
   param['sip_contact'] = '<sip:B4626010001@...>'
   param['sip_server'] = 'Yate'
   param['sip_allow'] = 'ACK, INVITE, BYE, CANCEL, REGISTER, REFER, 
OPTIONS, INFO'
   param['redirect'] = 'true'
   param['called'] = 'B4626010001'
   param['calleduri'] = 'sip:B4626010001@...'
   param['status'] = 'outgoing'
   param['address'] = '172.16.22.4:5060'
   param['targetid'] = 'sip/7'
   param['billid'] = '1405049422-4'
   param['peerid'] = 'sip/7'
   param['lastpeerid'] = 'sip/7'
   param['answered'] = 'false'
   param['direction'] = 'outgoing'
   param['callid'] = 'sip/72489405@.../598080395/'
   param['reason'] = 'Moved Temporarily'
   param['handlers'] = 
'javascript:15,pbxassist:15,queues:45,gvoice:50,yrtp:50,monitoring:100,cdrbuild:150,conf:150'
Sniffed 'chan.disconnected' time=1405049653.834847
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x7f29f404a890
   retval='(null)'
   param['cause_sip'] = '302'
   param['reason_sip'] = 'Moved Temporarily'
   param['sip_contact'] = '<sip:B4626010001@...>'
   param['sip_server'] = 'Yate'
   param['sip_allow'] = 'ACK, INVITE, BYE, CANCEL, REGISTER, REFER, 
OPTIONS, INFO'
   param['redirect'] = 'true'
   param['called'] = 'B4626010001'
   param['calleduri'] = 'sip:B4626010001@...'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'accepted'
   param['address'] = '172.16.22.11:5060'
   param['targetid'] = 'sip/8'
   param['billid'] = '1405049422-4'
   param['lastpeerid'] = 'sip/8'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
   param['reason'] = 'Moved Temporarily'
20140711003413.835267 <pbxassist:CALL> Chan 'sip/7' divert on '(null)' 
to 'B4626010001'
Returned true 'chan.disconnected' delay=0.000444
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x7f29f404a890
   retval='(null)'
   param['cause_sip'] = '302'
   param['reason_sip'] = 'Moved Temporarily'
   param['sip_contact'] = '<sip:B4626010001@...>'
   param['sip_server'] = 'Yate'
   param['sip_allow'] = 'ACK, INVITE, BYE, CANCEL, REGISTER, REFER, 
OPTIONS, INFO'
   param['redirect'] = 'true'
   param['called'] = 'B4626010001'
   param['calleduri'] = 'sip:B4626010001@...'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'accepted'
   param['address'] = '172.16.22.11:5060'
   param['targetid'] = 'sip/8'
   param['billid'] = '1405049422-4'
   param['lastpeerid'] = 'sip/8'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
   param['reason'] = 'Moved Temporarily'
   param['handlers'] = 'javascript:15,pbxassist:15'
Sniffed 'call.cdr' time=1405049653.835080 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.817'
   param['chan'] = 'sip/8'
   param['cdrid'] = '8'
   param['runid'] = '1405049422'
   param['operation'] = 'finalize'
   param['direction'] = 'outgoing'
   param['duration'] = '0.018'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'outgoing'
   param['external'] = '26010001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.4:5060'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['billid'] = '1405049422-4'
   param['calledfull'] = '26010001'
   param['reason'] = 'Moved Temporarily'
Returned false 'call.cdr' delay=0.000369 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.817'
   param['chan'] = 'sip/8'
   param['cdrid'] = '8'
   param['runid'] = '1405049422'
   param['operation'] = 'finalize'
   param['direction'] = 'outgoing'
   param['duration'] = '0.018'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'outgoing'
   param['external'] = '26010001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.4:5060'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['billid'] = '1405049422-4'
   param['calledfull'] = '26010001'
   param['reason'] = 'Moved Temporarily'
   param['handlers'] = 'register:10,queuesnotify:10,cdrcombine:100'
Sniffed 'chan.masquerade' time=1405049653.835254
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x7f29f404a890
   retval='(null)'
   param['id'] = 'sip/7'
   param['reason'] = 'divert_'
   param['pbxstate'] = 'new'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['divert_reason'] = ''
   param['called'] = '26010001'
   param['message'] = 'call.execute'
   param['callto'] = 'B4626010001'
Returned false 'call.execute' delay=0.000434
   thread=0x7f29f4047fd0 'Engine Worker'
   data=0x7f29f404a890
   retval='(null)'
   param['id'] = 'sip/7'
   param['reason'] = 'divert_'
   param['pbxstate'] = 'new'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['divert_reason'] = ''
   param['called'] = '26010001'
   param['callto'] = 'B4626010001'
   param['handlers'] = 
'filetransfer:10,jingle:10,tone:10,sip:10,javascript:15,pbxassist:15,gvoice:20,queues:45,cdrbuild:50,yrtp:50,lateroute:75,dbwave:90,filetransfer:90,jingle:90,tone:90,sip:90,conf:90,analyzer:90,iax:90,wave:90,dumb:90,sig:90,analog:90,mgcpgw:90,pbx:100,extmodule:100,callfork:100,moh:100,callgen:100,park:100'
   param['module'] = 'sip'
   param['status'] = 'accepted'
   param['address'] = '172.16.22.11:5060'
   param['lastpeerid'] = 'sip/8'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
Sniffed 'call.cdr' time=1405049653.835590 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.804'
   param['chan'] = 'sip/7'
   param['cdrid'] = '7'
   param['runid'] = '1405049422'
   param['operation'] = 'update'
   param['direction'] = 'incoming'
   param['duration'] = '0.032'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'accepted'
   param['external'] = '4626000001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['reason'] = 'divert_'
eturned false 'call.cdr' delay=0.000323 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.804'
   param['chan'] = 'sip/7'
   param['cdrid'] = '7'
   param['runid'] = '1405049422'
   param['operation'] = 'update'
   param['direction'] = 'incoming'
   param['duration'] = '0.032'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'accepted'
   param['external'] = '4626000001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['reason'] = 'divert_'
   param['handlers'] = 'register:10,queuesnotify:10,cdrcombine:100'
Sniffed 'chan.hangup' time=1405049653.835745
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'accepted'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['lastpeerid'] = 'sip/8'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
   param['reason'] = 'Moved Temporarily'
Returned false 'chan.hangup' delay=0.000312
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['id'] = 'sip/7'
   param['module'] = 'sip'
   param['status'] = 'accepted'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['lastpeerid'] = 'sip/8'
   param['answered'] = 'false'
   param['direction'] = 'incoming'
   param['callid'] = 'sip/1822047737@.../129392535/'
   param['reason'] = 'Moved Temporarily'
   param['handlers'] = 
'javascript:15,pbxassist:15,queues:45,gvoice:50,yrtp:50,monitoring:100,cdrbuild:150,conf:150'
Sniffed 'call.cdr' time=1405049653.836034 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.804'
   param['chan'] = 'sip/7'
   param['cdrid'] = '7'
   param['runid'] = '1405049422'
   param['operation'] = 'finalize'
   param['direction'] = 'incoming'
   param['duration'] = '0.032'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'accepted'
   param['external'] = '4626000001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['reason'] = 'Moved Temporarily'
Returned false 'call.cdr' delay=0.000174 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['time'] = '1405049653.804'
   param['chan'] = 'sip/7'
   param['cdrid'] = '7'
   param['runid'] = '1405049422'
   param['operation'] = 'finalize'
   param['direction'] = 'incoming'
   param['duration'] = '0.032'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'accepted'
   param['external'] = '4626000001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.11:5060'
   param['billid'] = '1405049422-4'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['reason'] = 'Moved Temporarily'
   param['handlers'] = 'register:10,queuesnotify:10,cdrcombine:100'
Sniffed 'call.cdr' time=1405049653.836157 (broadcast)
   thread=0x7f29f4047fd0 'Engine Worker'
   data=(nil)
   retval='(null)'
   param['operation'] = 'combined'
   param['billid'] = '1405049422-4'
   param['time'] = '1405049653.804'
   param['chan'] = 'sip/7'
   param['runid'] = '1405049422'
   param['duration'] = '0.032'
   param['billtime'] = '0.000'
   param['ringtime'] = '0.000'
   param['status'] = 'accepted'
   param['external'] = '4626000001'
   param['cdrwrite'] = 'true'
   param['address'] = '172.16.22.11:5060'
   param['caller'] = '4626000001'
   param['called'] = '26010001'
   param['reason'] = 'Moved Temporarily'
   param['out_leg.time'] = '1405049653.817'
   param['out_leg.chan'] = 'sip/8'
   param['out_leg.duration'] = '0.018'
   param['out_leg.billtime'] = '0.000'
   param['out_leg.ringtime'] = '0.000'
   param['out_leg.status'] = 'outgoing'
   param['out_leg.external'] = '26010001'
   param['out_leg.address'] = '172.16.22.4:5060'
   param['out_leg.caller'] = '4626000001'
   param['out_leg.called'] = '26010001'
   param['out_leg.calledfull'] = '26010001'
   param['out_leg.reason'] = 'Moved Temporarily'

Regards,

Rodrigo

Rodrigo Ricardo Passos | 23 Apr 14:36 2014
Picon

Get number in SAM

Hi Yate,

How can i get the digit in SAM message after receive an IAM using 
Javascript?

Regards,

Rodrigo

Dana cafe | 2 May 14:50 2014

queue.conf operators configuration

good afternoon,

I am trying to put calls in a queue and redistribute to operators 
(without using a database) but I don't know how to define these operators.

For testing i defined two users in regfile.conf:

[1000]
password=1234

[2000]
password=1234

Then in regexroute.conf I defined:

^100$=queue/test1

Finally test1 is defined  in the queue.conf file :

[channels]
incoming=external/nodata/queue_in.php
outgoing=external/nodata/queue_out.php

[queue test1]
mintime = 100
length= 100
maxout=10
;greeting=
onhold=wave/play/ test.wav
maxcall=10000
;prompt=
;notify
detail=true
single=true
;definition of the operator
${queue} = test1
${required} = 1
${current} = 1
;  ${waiting}
location=127.0.0.1
username=2000
  maxcall = 3000
;  prompt: string: Resource to play to the operator when it answers
enabled=true

using yate client logged as 1000 I call to 100 and the music on hold 
start but the call is not distributed to the user 2000 which is logged 
in another yate client. For sure the configuration of the operator is 
wrong, unfortunatelly I didn't find a useful example in the website and 
in internet.

thank you very much for your valuable help,

Jose

Moritz Orbach | 18 Mar 19:47 2014
Picon

Authentication-check in javascript

Hello all,

is there a javascript equivalent to regexroute's
${username}^$=-;error=noauth

Or more precisely: how can I (on call.route, in javascript)
1) verify that a client is registered in regfile.conf (allowed to make a
   certain call)
2) retrieve the true extension of the client (not based on any headers
   the client can set itself, but based on the registration)

I tried "msg.username", msg.params['username'] and similar properties of
the Message object in the call.route handler, but none of them seemed to
exist.

Best regards
Moritz

Paul Chitescu | 18 Mar 14:06 2014
Picon

Yate 5.2 and YateBTS 2.0

Hello everybody!

We released Yate version 5.2 and also version 2.0 of YateBTS.

Yate 5.2 brings:
- Our friendly chatbot Eliza answers you by default to anything you write in 
rmanager that's not an Yate command :-)
- Improvements in Javascript that make writing an IVR much easier
- Better troubleshooting of memory leaks by having memory information from 
glibc and the ability to count objects allocated by each module

YateBTS 2.0 added:
- Support for 2G (COMP128-1) and 3G (MILENAGE) authentication
- Web interface for the Network In a Box
- USSD support (in commercial version only)
- COMP128-2 and COMP128-3 (in commercial version, only for GSMA members)

Paul Chitescu & Null Team

Marco Bisignano | 1 Apr 13:00 2014
Picon

R: R: R: [yate] Avoid multiple INVITE and BYE

Hi Marian and thank you for your suggestion. I'm writing a C++ module, but
how can I wait for call.drop to return ?
TY

-----Messaggio originale-----
Da: Marian Podgoreanu [mailto:marian@...] 
Inviato: mercoledì 26 febbraio 2014 15:01
A: Marco Bisignano; yate@...
Oggetto: Re: R: R: [yate] Avoid multiple INVITE and BYE

Hi,

In a php script you can't wait in a message handler for another message.
You may sleep for a second after sending the call.drop message.
This will give some time for the call to be dropped but it will delay things
(e.g. any other message to be handled by the script will be delayed).
This would not be acceptable on high load systems.

Or:
You may write a javascript or c++ module which:
1. Handle call.execute
2. Dispatch a call.drop for the outgoing call leg you want to stop 3. Let
call.execute continue when call.drop returns

Marian

On 26.02.2014 15:18, Marco Bisignano wrote:
> Thank you Marian, I understand; is there a way in my script to wait 
> that the first call is pre-empted and closed before sending the new INVITE
?
>
>
> -----Messaggio originale-----
> Da: Marian Podgoreanu [mailto:marian@...]
> Inviato: mercoledì 26 febbraio 2014 10:58
> A: Marco Bisignano; yate@...
> Oggetto: Re: R: [yate] Avoid multiple INVITE and BYE
>
> Hi,
>
> For the first call BYE is retransmitted to called party because it 
> doesn't confirm it. It does on the third retransmission.
>
> For the second call the INVITE is retransmitted due to the same reason.
>
> This may be a network issue or called party issue.
>
> The log also shows yate creating new dispatching threads and extmodule 
> warning a message sent to a script did not return in 10 seconds.
> Check your script(s): the message must be acknowledged after handling it.
>
> Example:
> $ev = Yate::GetEvent();
> if ($ev->type == "incoming")
>       $ev->Acknowledge();
>
> Marian
>
> On 26.02.2014 11:03, Marco Bisignano wrote:
>> Hi Marian and ty for your reply, here is my log with sniffer enabled:
>>
>> http://pastebin.com/gDpnv64A
>>
>> FIRST CALL from 3212121 (10.39.1.39) to 9413403212121 (messages are
>> ok)
>>
>> SECOND CALL from 3212122 (10.39.1.39) to 9413403212122 (multiple bye 
>> and
>> invite)
>>
>> There is a PHP script called cac.php (Call Admission Control), second 
>> call has a major priority so first call is pre-empted (call.drop to 
>> both call channels).
>> If you want I can send you Wireshark capture.
>> Regards.
>>
>>
>>
>> -----Messaggio originale-----
>> Da: Marian Podgoreanu [mailto:marian@...]
>> Inviato: mercoledì 26 febbraio 2014 09:37
>> A: Marco Bisignano; yate@...
>> Oggetto: Re: [yate] Avoid multiple INVITE and BYE
>>
>> Hi,
>>
>> Yate don't send multiple INVITE unless it's a retransmission.
>>
>> If you think it does, please post a log to show it.
>>
>> Marian
>>
>> On 26.02.2014 10:25, Marco Bisignano wrote:
>>> Hi all, someone know if there is a way to avoid Yate sending 
>>> multiple INVITE or BYE messages all equals in the same call ?
>>>
>>
>> --
>> Il messaggio e' stato analizzato alla ricerca di virus o contenuti 
>> pericolosi da MailScanner, ed e' risultato sicuro
>>
>>
>
> --
> Il messaggio e' stato analizzato alla ricerca di virus o contenuti 
> pericolosi da MailScanner, ed e' risultato sicuro
>
>

--
Il messaggio e' stato analizzato alla ricerca di virus o contenuti
pericolosi da MailScanner, ed e' risultato sicuro


Gmane