Hi all,
I use Skype such as a DID to call from Skype software to my server A2Billing.
I try to buy credit Skype Connect and config to connect from nick Skype to my server.
Configuration of dial plan :
Code:
exten => XXXXX,1,Answer
exten => XXXXX,2,Noop(${CALLERID(name)} , ${CALLERID(num)})
exten => XXXXX,3,Set(CALLERID(num) = ${CALLERID(name))
exten => XXXXX,4,Wait(2)
exten => XXXXX,5,DeadAGI(a2billing.php|3)
exten => XXXXX,6,Wait(2)
exten => XXXXX,7,Hangup
I try to add Caller ID = SKYPE_NAME but it is not successful. So I try to add via Database tool in Table cc_callerid.
--->
Question 1 : How to add caller ID is as character (not number ) ? Next, I make a call from my Skypename = SKYPE_NAME to Skype name as DID . So but the system always requires authentication via PIN number.
Result :
Code:
-- Executing [XXXXX@from-sip-external:1] NoOp("SIP/sip.skype.com", "Received incoming SIP connection from unknown peer to XXXXX") in new stack
-- Executing [XXXXX@from-sip-external:2] Set("SIP/sip.skype.com", "DID=XXXXX") in new stack
-- Executing [XXXXX@from-sip-external:3] Goto("SIP/sip.skype.com", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/sip.skype.com", "1?from-trunk|XXXXX|1") in new stack
-- Goto (from-trunk,XXXXX,1)
-- Executing [XXXXX@from-trunk:1] Set("SIP/sip.skype.com", "__FROM_DID=XXXXX") in new stack
-- Executing [XXXXX@from-trunk:2] ExecIf("SIP/sip.skype.com", "0 |Set|CALLERID(name)=Anonymous") in new stack
-- Executing [XXXXX@from-trunk:3] Set("SIP/sip.skype.com", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [XXXXX@from-trunk:4] SetCallerPres("SIP/sip.skype.com", "allowed_not_screened") in new stack
-- Executing [XXXXX@from-trunk:5] Goto("SIP/sip.skype.com", "a2billing|XXXXX|1") in new stack
-- Goto (a2billing,XXXXX,1)
-- Executing [XXXXX@a2billing:1] Answer("SIP/sip.skype.com", "") in new stack
-- Executing [XXXXX@a2billing:2] NoOp("SIP/sip.skype.com", "SKYPE_NAME | Anonymous") in new stack
-- Executing [XXXXX@a2billing:3] Set("SIP/sip.skype.com", "CALLERID(num) = SKYPE_NAME") in new stack
-- Executing [XXXXX@a2billing-did:4] Wait("SIP/sip.skype.com", "2") in new stack
-- Executing [XXXXX@a2billing-did:5] DeadAGI("SIP/sip.skype.com", "a2billing.php|3") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- <SIP/sip.skype.com> Playing 'prepaid-enter-pin-number' (language 'en')
---->
Question 2 : May I modify the code in file a2billing.php to authenticate via Skype name (character, not number ) ? Thank in advance for all helps!
Best regards,
Ryan.