[Freeswitch-users] How to update the caller id when bridging?

Vallimamod Abdullah vma at vallimamod.org
Mon Oct 15 12:58:14 UTC 2018


Hi,

Have a look at sofia_send_callee_id() and sofia_update_callee_id() funcs in sofia.c.
I think they are doing what you want to achieve.



Best Regards,
-- 
Vallimamod Abdullah
SIP Solutions
vma at sip.solutions
linkedin.com/in/vallimamod
.


> On 6 Oct 2018, at 03:04, Andrew Clayton <andrew at zeta.digital-domain.net> wrote:
> 
> So this is a question based around the FreeSWITCH C API.
> 
> I have two scenarios involving two endpoints, A & B.
> 
> Scenario 1
> 
> FS calls B using switch_ivr_originate(), it then calls A (say a
> Linphone client) and creates a new switch_caller_profile_t for it using
> switch_caller_profile_new() and sets the ->caller_id_number field to e.g
> 1234 to indicate a call from B and then does a switch_ivr_originate().
> 
> A rings and Linphone shows the call coming from 1234 at ... OK, that's all
> fine. The calls are bridged together with switch_ivr_uuid_bridge(A, B)
> 
> Scenario 2
> 
> FS calls A (again lets say a Linphone client) using
> switch_ivr_originate(), A rings and shows the call coming from
> 0000... at ..., that's fine, I didn't set any CID.
> 
> Now A is parked and is off-hook.
> 
> FS then calls B, A & B are then bridged together with
> switch_ivr_uuid_bridge(A, B), now of course Linphone still shows the
> call as from  0000... at ... I'd like it show for example 1234 at ... like
> above.
> 
> Now I've tried setting numerous fields in the switch_caller_profile_t
> structure for A just before doing the bridge, but to no avail.
> 
> So does what I'm trying to do make sense?
> 
> Is it even possible?
> 
> Cheers,
> Andrew
> 
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
> 
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com



Bien cordialement,
-- 
Vallimamod Abdullah
SIP Solutions
Conseil & Développement de plateformes et services VOIP
vma at sip.solutions
+33 6 62 60 68 97
linkedin.com/in/vallimamod
.




More information about the FreeSWITCH-users mailing list