plivo / plivoframework

Open Source Telephony Application Prototyping Framework
http://www.plivo.com/open-source/
Other
418 stars 179 forks source link

Caller ID Not Being Overrirdden with Dial Verb #7

Closed mattwilliamson closed 13 years ago

mattwilliamson commented 13 years ago

The following XML is executed when I dial a DID from a SIP phone which sends it's caller id as (732) 276-1300. Instead of the caller id coming up as 17328381916, it comes up as 7322761300, the number dialing from.

<?xml version="1.0"?>
<Response>
    <Dial action="None" callerId="17328381916" hangupOnStar="false" method="POST" timeLimit="14400" timeout="30">
        <Number gateways="sofia/gateway/sip1">+18457026652</Number>
    </Dial>
    <Speak loop="1" voice="slt">The call failed or the remote party hung up. Goodbye</Speak>
</Response>
mike-plivo commented 13 years ago

Can you catch and report the log line from plivo-outbound starting with 'Dial Started' when you execute this restxml ?

mattwilliamson commented 13 years ago

It's a little different now, I'm dialing 1000@localhost -> plivo@localhost -> +17328381916

callerId = 19492660931

2011-06-20 12:13:37,989 outboundserver[58772]: INFO: (6) Dial Started {effective_caller_id_number=19492660931}sofia/gateway/flowroute/+17328381916|sofia/gateway/flowroute/+17328381916
2011-06-20 12:13:37,990 outboundserver[58772]: DEBUG: (6) Execute: bridge args={effective_caller_id_number=19492660931}sofia/gateway/flowroute/+17328381916|sofia/gateway/flowroute/+17328381916, uuid='', lock=True, loops=1
2011-06-20 12:13:37,992 outboundserver[58772]: DEBUG: (6) Response: <CommandResponse headers={'Content-Type': 'command/reply', 'Reply-Text': '+OK'}, body=>
2011-06-20 12:13:43,382 outboundserver[58772]: DEBUG: (6) Execute: api args='uuid_getvar c6208b0c-3a6b-4f71-b7d1-e2c17d91c55e bridge_hangup_cause'
2011-06-20 12:13:43,382 outboundserver[58772]: DEBUG: (6) Response: <ApiResponse headers={'Content-Length': '15', 'Content-Type': 'api/response'}, body=NORMAL_CLEARING>
2011-06-20 12:13:43,383 outboundserver[58772]: INFO: (6) Dial Finished with reason: NORMAL_CLEARING (B leg)
2011-06-20 12:13:43,383 outboundserver[58772]: DEBUG: (6) Execute: bgapi args='sched_del 4184f514-9b58-11e0-badb-109add5ec926'
2011-06-20 12:13:43,385 outboundserver[58772]: DEBUG: (6) Response: <BgapiResponse headers={'Content-Type': 'command/reply', 'Reply-Text': '+OK Job-UUID: 6a22ae4e-df5c-4d6a-8b0b-93a9fce609ba', 'Job-UUID': '6a22ae4e-df5c-4d6a-8b0b-93a9fce609ba'}, body=>
2011-06-20 12:13:43,385 outboundserver[58772]: DEBUG: (6) Execute: api args='uuid_getvar c6208b0c-3a6b-4f71-b7d1-e2c17d91c55e plivo_dial_rang'
2011-06-20 12:13:43,386 outboundserver[58772]: DEBUG: (6) Response: <ApiResponse headers={'Content-Length': '4', 'Content-Type': 'api/response'}, body=true>
2011-06-20 12:13:43,386 outboundserver[58772]: INFO: (6) [Dial] Done
mattwilliamson commented 13 years ago

Here's the XML:

<?xml version="1.0"?>
<Response>
    <Dial callerId="19492660931" hangupOnStar="false" method="POST" timeLimit="14400" timeout="30">
        <Number gateways="sofia/gateway/flowroute,sofia/gateway/flowroute">+17328381916</Number>
    </Dial>
    <Speak loop="1" voice="slt">The call failed or the remote party hung up. Goodbye</Speak>
</Response>
mike-plivo commented 13 years ago

thanks for the update.

Can you retry with the last commit ?

mattwilliamson commented 13 years ago

It works! As usual you get it on the first try ;)

Thank you