Thats why you set origination_caller_id_number inside the {} along side the ingore_early_media=true

You shouldn't use setCallerData and in fact that shouldn't be exposed because it'll wreck havoc with billing if you don't know what you're doing.

/b


On Oct 7, 2008, at 10:44 PM, Marc Orenberg wrote:

session = Session("{ignore_early_media=true}sofia/gateway/" + SIP_CARRIER + "/" + phone_number)
Unfortunately, I need to be able to set the caller id before making the call, and I don't think I can do that when I start dialing the call at the same time that I create the new session.