Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread Jurijs Ivolga
Hi, First try to set variable in vars.xml, as I sent if didn't help, you can try to turn encryption off on your CSipSimple With kind regards, Jurijs On Fri, Sep 22, 2017 at 11:43 AM, 赵国杰 wrote: > > Thanks man, > I didn't explicitly set srtp in kamailio nor

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread 赵国杰
Thanks man, I didn't explicitly set srtp in kamailio nor freeswitch, how do i turn it off? At 2017-09-22 16:32:10, "Jurijs Ivolga" wrote: Hi, 1) You need to change default password "Open /usr/local/freeswitch/conf/vars.xml and change the

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread Jurijs Ivolga
Hi, Please check this: http://lists.freeswitch.org/pipermail/freeswitch-dev/2013-November/006889.html Probably you need to set rtp_allow_crypto_in_avp=true in vars.xml With kind regards, Jurijs On Fri, Sep 22, 2017 at 11:32 AM, Jurijs Ivolga wrote: > Hi, > > 1)

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread Jurijs Ivolga
Hi, 1) You need to change default password *"Open /usr/local/freeswitch/conf/**vars.xml and change the default_password."* 2) You are calling into Freeswitch with encryption on and probably of this your call is failing, maybe you can try first to try without SRTP and if it works,

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread 赵国杰
Hello, No luck. Still the same. Here goes the full log, sorry if it's a little overwhelming INVITE sip:prompt-1000@10.240.0.90:5095 SIP/2.0 Record-Route:

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread Jurijs Ivolga
Hi, You probably don't need record route and you need to remove "" Try in this way: *In kamailio.cfg* I added if ($rU=="12345") { if(is_method("INVITE")) { #record_route(); $ru = "sip:prompt-1000@" +

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread 赵国杰
Hi guy. sorry for the confusion. I'll try to reorganize it. In kamailio.cfg I added if ($rU=="12345") { if(is_method("INVITE")) { #record_route(); $ru = "sip:prompt-1000@" + $sel(cfg_get.voicemail.srv_ip)

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread Jurijs Ivolga
Hi, You need to add: to conf/dialplan/default.xml in your code, you had extra line what was sending a call to 1000 extension. With kind regards, Jurijs On Fri, Sep 22, 2017 at 10:29 AM, Jurijs Ivolga wrote: > Hi, > > So, problem is

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread Jurijs Ivolga
Hi, So, problem is not related to record route but to config of freeswitch. Not sure what you wrote in mail above, but you need to add code what provided Sergey to: /usr/local/freeswitch/conf/dialplan/default.xml With kind regards, Jurijs On Fri, Sep 22, 2017 at 10:11 AM, 赵国杰

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread 赵国杰
Hello, Thanks for the heads up. The siptrace does help. Now the FS returns(with or without record_route();): SIP/2.0 480 Temporarily Unavailable Reason: SIP;cause=606;text="USER_NOT_REGISTERED" I have generate offline.xml under conf/directory/default. Where did i miss?

Re: [SR-Users] how to play ring tune when callee declines

2017-09-22 Thread Jurijs Ivolga
Hi, Sip trace from Freeswitch will help, but I think you need to insert Record-Route, try in following way: if ($rU=="12345") { if(is_method("INVITE")) { record_route(); $ru = "sip:" + "offline" + "@" +

Re: [SR-Users] how to play ring tune when callee declines

2017-09-21 Thread 赵国杰
Hello I added below code to let kamailio route invite to freeswitch: if ($rU=="12345") { if(is_method("INVITE")) { $ru = "sip:" + "offline" + "@" + $sel(cfg_get.voicemail.srv_ip) + ":" +

Re: [SR-Users] how to play ring tune when callee declines

2017-09-20 Thread Sergey Safarov
You can add this example to dialplan and make test ср, 20 сент. 2017 г. в 10:14, 赵国杰 : > Hello Sergey, > I installed freeswitch, what should i do next? > > > > > > At 2017-09-19 12:07:23, "Sergey Safarov"

Re: [SR-Users] how to play ring tune when callee declines

2017-09-19 Thread Daniel Tryba
On Tue, Sep 19, 2017 at 11:26:46AM +0800, 赵国杰 wrote: > Thanks Daniel, I've done some digging, and from Andrew Prokop's blog, > it says this envolves early midia. Usually this is done by reply a 183 > to the caller with media ip and port in the SDP. This makes sense but > i still have no idea how

Re: [SR-Users] how to play ring tune when callee declines

2017-09-18 Thread Sergey Safarov
This can be implemenred using freeswitch. Ping me directly after you install freeswith on linux and configure ssh remote access вт, 19 сент. 2017 г., 6:27 赵国杰 : > Thanks Daniel, > I've done some digging, and from Andrew Prokop's blog, it says this > envolves early

[SR-Users] how to play ring tune when callee declines

2017-09-18 Thread 赵国杰
Thanks Daniel, I've done some digging, and from Andrew Prokop's blog, it says this envolves early midia. Usually this is done by reply a 183 to the caller with media ip and port in the SDP. This makes sense but i still have no idea how to generate 183 response with embedded SDP. At