I'm a little new to telefony but I'm basically using Phono to dial into a Tropo app which redirects to a 3rd party conferencing service. This service shows the names of the participants and their caller IDs. I can implement the caller IDs fine, but the participants "name" is always "SIP-" + their caller ID. I'm trying to override this with a name and I'm not sure what to use. It is purely SIP and I don't need to support anything else, but any attempts to set a SIP header, such as "from", cause it to break... I suspect because there is no "tag" portion in the header I'm sending. Is there an equivalent to :callerID like :callerIDName that can be used to override? Thanks!
7 comments
-
Tropo Import Bot Hello, You can cut off the "SIP-" portion of the callerID by using the following: caller_id_var.split("-")[1] This will leave you with just the callerID that you set. Let me know if this answers your question. Regards, Regards, David Miranda Tropo Customer Support Engineer Tropo News: http://blog.tropo.com/ (link: http://blog.tropo.com/ ) | @Tropo (link: http://twitter.com/Tropo ) Change log: http://changes.tropo.com/ (link: http://changes.tropo.com/ ) | @TropoChanges (link: http://twitter.com/TropoChanges ) Service status announcements: http://status.tropo.com/ (link: http://status.tropo.com/ ) (image: https://www.tropo.com/images/logo-sm-footer.png) Please let us know how we're doing by providing feedback on our performance with our one question survey! Any feedback is highly appreciated by us here at Tropo.
-
Justin Dupree If the developers of the app pushback on the custom header, see if they have any suggestions for headers they do accept and process; we might be able to define one of those as the username instead. Justin Dupree Voxeo Labs
-
Justin Dupree My understanding is your users are calling in Phono, which then utilizes Tropo to call a third party conferencing app via SIP? If that's accurate, your best bet is to build some variables or a table that matches a username to a specific callerID (which David provided a method to get the callerID independently), then set a custom SIP header during the call to contain the username name. The conferencing app could then extract that custom header and define the username however you want. Same doc page linked in the last reply shows how to set a custom header. Let us know if you have any continued trouble. Justin Dupree Voxeo Labs
-
bryanrite Hi David, Thanks for the quick reply. I wasn't very clear in my question. I'm trying to send the caller ID name from tropo to the 3rd party. I can set the caller ID number without problem in the transfer, but since it's purely SIP, I want to send something other than just a number. Is that possible?
-
Tropo Import Bot Hey there, If I understand what you are looking to accomplish you wish to pass through some additional information with the sip message. You can pass through a sip header along with the initial message with tropo. You can use the following tutorial as a reference: https://www.tropo.com/docs/scripting/sip_headers_sending_retrieving.htm?search=sip#anchor . I hope this information helps and if you have any further questions, please do not hesitate to ask. Regards, Garrett King Customer Support Engineer Voxeo Corporation
-
bryanrite Hi Garret, Thanks for the link, I've been able to successfully set SIP headers, that is not the problem, I'm trying to set the "display-name" portion of the "from" sip header but I cannot seem to get it to work. Using the "callerid" variable sets the number portion, but how can I set the display name portion: "Display Name" Thanks again!
-
bryanrite Thanks Justin, I was sort of expecting that, I'll work with the 3rd party to see if they'll handle a custom header for me. Thanks!