Inbound from ip? Need Help
Posted: Tue Jul 17, 2012 9:02 pm
I'm a bit confused and trying to sort this out and understand it. I'm using a company for callerid hosting. They give out random numbers to me to put in the dialer and they route those calls to the ip of my dialer... how do I set this up for inbound?
I know I need to create a carrier but what settings?
I tried:
in extension I have:
but here's the error I'm getting:
So what am I missing? How do I make it use my carrier, do I need something special for a dialplan in the carrier setup?
I know I need to create a carrier but what settings?
I tried:
- Code: Select all
[manchestera]
host=207.223.77.157
username=4845551212
type=friend
insecure=port,invite
context=agentin
in extension I have:
- Code: Select all
[agentin]
exten => _4845551212,1,AGI(agi-DID_route.agi)
exten => _14845551212,1,AGI(agi-DID_route.agi)
exten => 207.223.77.157,1,AGI(agi-DID_route.agi)
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}---
but here's the error I'm getting:
- Code: Select all
[Jul 17 21:39:57] -- Executing [4845551212@agentin:1] AGI("SIP/manchestera-00000001", "agi-DID_route.agi") in new stack
[Jul 17 21:39:57] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
[Jul 17 21:39:58] -- AGI Script agi-DID_route.agi completed, returning 0
[Jul 17 21:39:58] -- Executing [9998811112@default:1] Wait("SIP/manchestera-00000001", "2") in new stack
[Jul 17 21:40:00] -- Executing [9998811112@default:2] Answer("SIP/manchestera-00000001", "") in new stack
[Jul 17 21:40:00] -- Executing [9998811112@default:3] Playback("SIP/manchestera-00000001", "ss-noservice") in new stack
[Jul 17 21:40:00] -- <SIP/manchestera-00000001> Playing 'ss-noservice' (language 'en')
So what am I missing? How do I make it use my carrier, do I need something special for a dialplan in the carrier setup?