Guys, I¹m trying something that is seemingly so simple but isn¹t working for me. I want to ignore early media and provide instant ringback. My module is written in C. I¹m setting ignore_early_media and instant_ringback to true in a switch_event header and passing it in via the ovars param to switch_ivr_originate. It¹s getting the vars ok because I can tell it¹s ignoring early media, but there is no ring back to the caller. Are there other flags I need in conjunction with these two to hear ringback? I must be missing something. Here¹s a code snippet. switch_event_t* ovars = NULL; switch_event_create(&ovars, SWITCH_EVENT_REQUEST_PARAMS); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true"); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "instant_ringback", "true"); switch_status_t rc = switch_ivr_originate(session, &sipSession, &cause, data, timelimit, NULL, caller_name, caller_num, NULL, ovars, SOF_NONE); Thanks in advance. Kevin Snow
do you set the ringback var too? On Feb 5, 2010, at 1:29 PM, Kevin Snow wrote:
Guys,
I’m trying something that is seemingly so simple but isn’t working for me. I want to ignore early media and provide instant ringback.
My module is written in C. I’m setting ignore_early_media and instant_ringback to true in a switch_event header and passing it in via the ovars param to switch_ivr_originate. It’s getting the vars ok because I can tell it’s ignoring early media, but there is no ring back to the caller.
Are there other flags I need in conjunction with these two to hear ringback? I must be missing something.
Here’s a code snippet.
switch_event_t* ovars = NULL; switch_event_create(&ovars, SWITCH_EVENT_REQUEST_PARAMS); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true"); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "instant_ringback", "true"); switch_status_t rc = switch_ivr_originate(session, &sipSession, &cause, data, timelimit, NULL, caller_name, caller_num, NULL, ovars, SOF_NONE);
I tried with with and without setting, when I copy/pasted below was the without. It didn¹t seem to matter. switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ringback", "%(2000, 4000, 440.0, 480.0)"); Should I set it differently? Maybe that¹s my issue. Kevin On 2/5/10 10:49 AM, "Michael Jerris" <mike@jerris.com> wrote:
do you set the ringback var too?
On Feb 5, 2010, at 1:29 PM, Kevin Snow wrote:
Guys,
I¹m trying something that is seemingly so simple but isn¹t working for me. I want to ignore early media and provide instant ringback.
My module is written in C. I¹m setting ignore_early_media and instant_ringback to true in a switch_event header and passing it in via the ovars param to switch_ivr_originate. It¹s getting the vars ok because I can tell it¹s ignoring early media, but there is no ring back to the caller.
Are there other flags I need in conjunction with these two to hear ringback? I must be missing something.
Here¹s a code snippet.
switch_event_t* ovars = NULL; switch_event_create(&ovars, SWITCH_EVENT_REQUEST_PARAMS); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true"); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "instant_ringback", "true"); switch_status_t rc = switch_ivr_originate(session, &sipSession, &cause, data, timelimit, NULL, caller_name, caller_num, NULL, ovars, SOF_NONE);
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
actually, your passing these to originate, … but your not setting anything on the session doing the originate, ringback should be there, not in params iirc. Possibly instant_ringback as well. We should probably have better docs on which leg vars effect. Mike On Feb 5, 2010, at 2:05 PM, Kevin Snow wrote:
I tried with with and without setting, when I copy/pasted below was the without. It didn’t seem to matter.
switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ringback", "%(2000, 4000, 440.0, 480.0)");
Should I set it differently? Maybe that’s my issue.
Kevin
On 2/5/10 10:49 AM, "Michael Jerris" <mike@jerris.com> wrote:
do you set the ringback var too?
On Feb 5, 2010, at 1:29 PM, Kevin Snow wrote:
Guys,
I’m trying something that is seemingly so simple but isn’t working for me. I want to ignore early media and provide instant ringback.
My module is written in C. I’m setting ignore_early_media and instant_ringback to true in a switch_event header and passing it in via the ovars param to switch_ivr_originate. It’s getting the vars ok because I can tell it’s ignoring early media, but there is no ring back to the caller.
Are there other flags I need in conjunction with these two to hear ringback? I must be missing something.
Here’s a code snippet.
switch_event_t* ovars = NULL; switch_event_create(&ovars, SWITCH_EVENT_REQUEST_PARAMS); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true"); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "instant_ringback", "true"); switch_status_t rc = switch_ivr_originate(session, &sipSession, &cause, data, timelimit, NULL, caller_name, caller_num, NULL, ovars, SOF_NONE);
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Ahhh....That makes sense and works perfectly. I knew I was missing something. Thanks! Kevin On 2/5/10 11:23 AM, "Michael Jerris" <mike@jerris.com> wrote:
actually, your passing these to originate, but your not setting anything on the session doing the originate, ringback should be there, not in params iirc. Possibly instant_ringback as well. We should probably have better docs on which leg vars effect.
Mike
On Feb 5, 2010, at 2:05 PM, Kevin Snow wrote:
I tried with with and without setting, when I copy/pasted below was the without. It didn¹t seem to matter.
switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ringback", "%(2000, 4000, 440.0, 480.0)");
Should I set it differently? Maybe that¹s my issue.
Kevin
On 2/5/10 10:49 AM, "Michael Jerris" <mike@jerris.com> wrote:
do you set the ringback var too?
On Feb 5, 2010, at 1:29 PM, Kevin Snow wrote:
Guys,
I¹m trying something that is seemingly so simple but isn¹t working for me. I want to ignore early media and provide instant ringback.
My module is written in C. I¹m setting ignore_early_media and instant_ringback to true in a switch_event header and passing it in via the ovars param to switch_ivr_originate. It¹s getting the vars ok because I can tell it¹s ignoring early media, but there is no ring back to the caller.
Are there other flags I need in conjunction with these two to hear ringback? I must be missing something.
Here¹s a code snippet.
switch_event_t* ovars = NULL; switch_event_create(&ovars, SWITCH_EVENT_REQUEST_PARAMS); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true"); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "instant_ringback", "true"); switch_status_t rc = switch_ivr_originate(session, &sipSession, &cause, data, timelimit, NULL, caller_name, caller_num, NULL, ovars, SOF_NONE);
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org <http://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
you set ringback on session and you set instant_ringback in the ovars On Fri, Feb 5, 2010 at 12:29 PM, Kevin Snow <kevin.snow@ooma.com> wrote:
Guys,
I’m trying something that is seemingly so simple but isn’t working for me. I want to ignore early media and provide instant ringback.
My module is written in C. I’m setting ignore_early_media and instant_ringback to true in a switch_event header and passing it in via the ovars param to switch_ivr_originate. It’s getting the vars ok because I can tell it’s ignoring early media, but there is no ring back to the caller.
Are there other flags I need in conjunction with these two to hear ringback? I must be missing something.
Here’s a code snippet.
switch_event_t* ovars = NULL; switch_event_create(&ovars, SWITCH_EVENT_REQUEST_PARAMS); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true"); switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "instant_ringback", "true"); switch_status_t rc = switch_ivr_originate(session, &sipSession, &cause, data, timelimit, NULL, caller_name, caller_num, NULL, ovars, SOF_NONE);
Thanks in advance.
Kevin Snow
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (3)
-
Anthony Minessale
-
Kevin Snow
-
Michael Jerris