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

Pages: [1] 2 3 ... 6
1
Announcements / Optimal Đ¡asual Dating - Authentic Damsels
« on: March 09, 2024, 03:24:02 AM »
Elevate your dating game with the top site for hassle-free connections.
True Females  Finest Đ¡asual Dating
Outstanding Đ¡asual Dating

3
Yate users hangout place / YATE SIP Trunk without registration
« on: March 19, 2021, 11:49:30 PM »
Hi

I am trying to create a SIP trunk on yate without a registration method. But however the same configuration is working fine accfile.conf but
it's not working with the register module.

accfile.conf

Code: [Select]
[test_sip]
enabled=yes
protocol=sip
username=me
outbound=192.168.3.102:5060


accfile trunk log:

Code: [Select]
Sniffed 'user.login' time=1616218494.937736^M
  thread=0x149d430 'Engine Worker'^M
  data=(nil)^M
  retval='(null)'^M
  param['enabled'] = 'yes'^M
  param['protocol'] = 'sip'^M
  param['username'] = 'me'^M
  param['outbound'] = '192.168.3.102:5060'^M
  param['account'] = 'test_sip'^M
  param['operation'] = 'login'
2021-03-20_05:34:54.948098 <sip:INFO> YateSIPLine::YateSIPLine('test_sip') [0x7fb2e8003d70]
2021-03-20_05:34:54.948117 <sip:INFO> YateSIPLine::update() 'test_sip' [0x7fb2e8003d70]
2021-03-20_05:34:54.948147 <sip:INFO> YateSIPLine(test_sip) setValid(0,(null)) current=0 [0x7fb2e8003d70]
2021-03-20_05:34:54.948171 <sip:INFO> YateSIPLine(test_sip) setValid(0,(null)) current=0 [0x7fb2e8003d70]
2021-03-20_05:34:54.948180 <sip:INFO> YateSIPLine(test_sip) setValid(0,(null)) current=0 [0x7fb2e8003d70]
2021-03-20_05:34:54.948190 <sip:ALL> YateSIPPartyHolder::buildParty(UDP,(null),0,192.168.3.102,5060) force=1 [0x7fb2e8003ea0]
2021-03-20_05:34:54.948304 <sip:ALL> YateUDPParty local '192.168.2.52:45060' party '192.168.3.102:5060' transport=0x1490130 [0x7fb2e8001080]
2021-03-20_05:34:54.948329 <sip:ALL> YateSIPPartyHolder set party (0x7fb2e8001080) local=192.168.2.52:45060 remote=192.168.3.102:5060 trans=(0x1490130) [0x7fb2e8003ea0]
2021-03-20_05:34:54.948342 <sip:ALL> Set party trans_name=(null) proto=UDP local=:0 remote=192.168.3.102:5060 [0x7fb2f6e0bf10]
2021-03-20_05:34:54.948352 <sip:INFO> YateSIPLine(test_sip) setValid(0,(null)) current=0 [0x7fb2e8003d70]
2021-03-20_05:34:54.948361 <sip:INFO> YateSIPLine(test_sip) setValid(1,(null)) current=0 [0x7fb2e8003d70]
Returned true 'user.login' delay=0.010637^M
  thread=0x149d430 'Engine Worker'^M
  data=(nil)^M
  retval='(null)'^M
  param['enabled'] = 'yes'^M
  param['protocol'] = 'sip'^M
  param['username'] = 'me'^M
  param['outbound'] = '192.168.3.102:5060'^M
  param['account'] = 'test_sip'^M
  param['operation'] = 'login'^M
  param['handlers'] = 'sip:150'


register.conf

Code: [Select]

initquery=SELECT 'yes' as enabled,'sip' as protocol,username,username as description,outbound,account,(CASE WHEN _state IS FALSE THEN 'logout' ELSE 'login' END) AS operation FROM conf_trunk WHERE _state IS TRUE


register SIP trunk log:

Code: [Select]
Sniffed 'user.login' time=1616218496.011641^M
  thread=0x149d430 'Engine Worker'^M
  data=(nil)^M
  retval='(null)'^M
  param['enabled'] = 'yes'^M
  param['protocol'] = 'sip'^M
  param['username'] = 'TRUNK5'^M
  param['description'] = 'TRUNK5'^M
  param['outbound'] = '192.168.3.202:5060'^M
  param['account'] = 'TRUNK5'^M
  param['operation'] = 'login'
2021-03-20_05:34:56.013702 <sip:INFO> YateSIPLine::YateSIPLine('TRUNK5') [0x7fb2e8009170]
2021-03-20_05:34:56.013712 <sip:INFO> YateSIPLine::update() 'TRUNK5' [0x7fb2e8009170]
2021-03-20_05:34:56.013734 <sip:INFO> YateSIPLine(TRUNK5) setValid(0,(null)) current=0 [0x7fb2e8009170]
2021-03-20_05:34:56.013747 <sip:INFO> YateSIPLine(TRUNK5) setValid(0,(null)) current=0 [0x7fb2e8009170]
2021-03-20_05:34:56.013753 <sip:INFO> YateSIPLine(TRUNK5) setValid(0,(null)) current=0 [0x7fb2e8009170]
2021-03-20_05:34:56.013906 <sip:INFO> YateSIPLine(TRUNK5) setValid(0,(null)) current=0 [0x7fb2e8009170]
2021-03-20_05:34:56.013915 <sip:INFO> YateSIPLine(TRUNK5) setValid(1,(null)) current=0 [0x7fb2e8009170]
Returned true 'user.login' delay=0.002283^M
  thread=0x149d430 'Engine Worker'^M
  data=(nil)^M
  retval='(null)'^M
  param['enabled'] = 'yes'^M
  param['protocol'] = 'sip'^M
  param['username'] = 'TRUNK5'^M
  param['description'] = 'TRUNK5'^M
  param['outbound'] = '192.168.3.202:5060'^M
  param['account'] = 'TRUNK5'^M
  param['operation'] = 'login'^M
  param['handlers'] = 'sip:150'



4
Yate users hangout place / Check SIP Status
« on: August 09, 2020, 12:32:37 PM »
Hi,

As i want every SIP Client to request registration forcefully once after yate service restarted. Where i'm maintaining sip registration status on database and able to configure to get those using init_query on register module.

But technically which sip method or any other way to request SIP client to renew their Registrations.

5
Yate users hangout place / Re: WebSocket Handler
« on: March 27, 2020, 12:00:13 PM »
Anybody please help me on this query.

6
Yate users hangout place / Call Alerting(CW) - ISDN
« on: October 03, 2019, 03:18:56 AM »
Hi,

Anybody please help me to enable the call waiting tone on yate through call routing module.

Where while call routing i would verify whether user is available to receive incoming calls or not, then send a call to SIP agent on both case. If user already on call they will get notifies on their second line. But however want to notifies the ISDN caller as well as User was busy on another call without using any custom music file play on their channel.

Version :
Yate - 6.0.1
Technology ; SIP
Trunk : ISDN E1 PRI
Card : Digium E1 PRI Card.

Methods are described here :
https://www.etsi.org/deliver/etsi_en/300001_300099/30005801/01.02.04_60/en_30005801v010204p.pdf

7
Yate users hangout place / Re: Help me on Mutex Problem
« on: August 12, 2019, 07:05:16 AM »
Thanks for the reply.

As am using httpserver module and created SSL Listener with port 2081 and using it WSS socket(wss://ip:2081) connection for webrtc over SIP.

Here SIP Registration works fine through webrtc request without any delay or issue. But issue happening only when Audio connection initiated through WebRTC.

Attached my current sip and http module file.

ysipchan.cpp- https://dpaste.de/sm0c
httpserver.cpp - https://dpaste.de/yf9T

8
Yate users hangout place / Help me on Mutex Problem
« on: August 11, 2019, 06:32:56 AM »
Hi,

As i am trying to create the connection through http to SIP for webrtc connection. But while making a call , am getting this error.

<FAIL> Thread 'YSIP Worker' could not lock mutex 'SslSocket' owned by 'HTTPServer connection' waited by 0 others for 10000000 usec!

How do i solve this. help me on this.

9
Yate users hangout place / WebSocket Handler
« on: July 06, 2019, 11:52:56 PM »
As i need to listen the websocket data which is running on particular port(ws or wss) through yate module. Any hint to start listen the data and use it.

Websocket required login authentication (port,username,password).

Ex: Asterisk ARI running on 8088 & 8089 port and need to put handler to handle channel event and process through yate messaging system through cpp module.

As i noticed socket binding and websocket module from yate-extra(https://github.com/vir/yate-extra) but don't have any clue to bind and run the loop continuously to handle the message.

Kindly help me out with possibility with any sample if possible.

10
Yate users hangout place / Drop SIP Channel if RTP failed
« on: January 16, 2019, 03:36:23 AM »
Hi,

As i experienced issue as in-between middle of the SIP call there was an network issue and yate shows this error log and my calls was disconnected. But channels are not cleared until restarting of yate service.

ErrorLog :
2019-01-10_07:44:18.353790 <NOTE> RTP send failed (local=192.168.1.254:30522 remote=192.168.1.189:4016): 22 Invalid argument
2019-01-10_07:44:19.000387 <sip:WARN> Transport(general) Socket send error: Network is unreachable (101) [0x25845c0]
2019-01-10_07:44:19.957242 <NOTE> RTCP send failed (local=192.168.1.254:19815 remote=192.168.1.78:10121): 22 Invalid argument
2019-01-10_07:44:20.079785 <NOTE> RTCP send failed (local=192.168.1.254:21143 remote=192.168.1.91:10053): 22 Invalid argument
2019-01-10_07:44:22.745151 <NOTE> RTCP send failed (local=192.168.1.254:30523 remote=192.168.1.189:4017): 22 Invalid argument

So i wish to drop those channel by handling the messages or any other way to do by altering ysipchan.cpp.

Kindly point me to proper function alter this because i didn't noticed any message to put handler and do drop channel action.

11
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: December 14, 2018, 12:44:45 PM »
Thanks. Now it's hangup properly.

Where outgoing channel ringing message emitted ,Even though ringtime is not calculated properly for incoming channel. is there any missed here.

incoming channel:
param['chan'] = 'sig/1'
  param['cdrid'] = '1'
  param['runid'] = '1544733185'
  param['operation'] = 'finalize'
  param['direction'] = 'incoming'
  param['duration'] = '5.434'
  param['billtime'] = '0.000'
  param['ringtime'] = '0.000'

Outgoing channel :
  param['chan'] = 'sip/1'
  param['cdrid'] = '2'
  param['runid'] = '1544733185'
  param['operation'] = 'finalize'
  param['direction'] = 'outgoing'
  param['duration'] = '5.371'
  param['billtime'] = '0.000'
  param['ringtime'] = '5.079'

12
Yate users hangout place / Re: No Ringtone Custom Queue In Handle
« on: December 13, 2018, 02:25:38 PM »
As I seen everything looks fine but now only understand qin channel not getting hang-up once customer call got hang-up.

As I hope assigned userData properly I think. but don't know where is the mistake.

here is the code :
http://dpaste.com/1N1P73G

here is the log :
http://dpaste.com/2VWKMNE

13
Yate users hangout place / Re: Custom API - NamedList
« on: December 10, 2018, 11:55:51 PM »
Please Ignore it. I get this done.

14
Yate users hangout place / Re: Custom API - NamedList
« on: December 10, 2018, 07:57:08 AM »
If am not wrong then is this correct ?.

Code: [Select]
const NamedString* s = msg.getParam(i);
String* str = getParam(s->name());
addParam(s->name(),*s);

Adding and gather like normal NamedList generation (addParam,getParam).

But here there is no NamedList variable mentioned, if not mentioned then by default it would take as "name" ?. right ?

15
Yate users hangout place / Re: Custom API - NamedList
« on: December 10, 2018, 02:03:04 AM »
I was looking into that one only earlier as well. But couldn't get some points.

ObjList defined under namespace
Code: [Select]
namespace {
static ObjList s_cdrs;
..

Object pointer created with ID and append into ObjList
Code: [Select]
String id(msg.getValue(YSTRING("id")));
b = new CdrBuilder(id);
s_cdrs.append(b);

Get the Object Pointer with ID
Code: [Select]
String id(msg.getValue(YSTRING("id")));
CdrBuilder *b = CdrBuilder::find(id);

Remove Object pointer from ObjList
Code: [Select]
s_cdrs.remove(this);
But didn't find where NamedList with value storing into id object and retrieval from that. any sample syntax push namedlist into pointer and access from tht would be more helpful

Pages: [1] 2 3 ... 6