You MUST ignore early media when doing an enterprise originate. Therefore, to get ringback tone you'll need to set the ringback channel variable on the A leg. Your extension will end up looking something like this:
<action application="set" data="ringback=${us-ring}"/> <action application="bridge" data="<ignore_early_media=true>[leg_timeout=0][origination_caller_id_number=30]user/35@${domain_name}:_:[leg_timeout=0][origination_caller_id_number=30]user/31@${domain_name}"/>
Thanks, this is obviously fixing the situation with SIP to SIP. However, there are still issues when calling in via ISDN(Inbound Call from ISDN to multiple SIP-endpoints), the results vary: - On calling a single endpoint, tone is played when "ringback" is set to UNDEFINED, but not when it's set to a proper value. Adding a "ring_ready" will obviously make both variants work. - On calling multiple endpoints, a tone is ONLY transmitted when "ring_ready" is set - if i understand correctly, this will send a RINGING regardless of the endpoints response. Without explicitely setting ring_ready, the callstate never changes from PROCEED, even though the endpoints indicate they are 180 RINGING. Setting ringback to UNDEF or a proper value doesn't change the result. Is there a way to use the actual RINGING-signalisation of multiple endpoints as a trigger for FS to change the callstate to RINGING instead of doing it artificially with ring_ready? Here are the results in detail(See attached logs) ISDN to single SIP-Endpoint: No Tone: freeswitch_single_isdn_no_ring_ready_ringback_rs_ring.log Tone works: freeswitch_single_isdn_no_ring_ready_ringback_empty.lo freeswitch_single_isdn_ring_ready_ringback_rs_ring.log freeswitch_single_isdn_ring_ready_ringback_empty.log ISDN to multiple SIP-Endpoints: No Tone: freeswitch_multiple_isdn_no_ring_ready_ringback_empty.log freeswitch_multiple_isdn_no_ring_ready_ringback_rs_ring.log Tone works: freeswitch_multiple_isdn_ring_ready_ringback_empty.log freeswitch_multiple_isdn_ring_ready_ringback_rs_ring.log And btw, i got the hint... ;-) (Not yet available in Europe though)