Inbound Setup

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Inbound Setup

Postby rishuk » Thu Dec 13, 2007 12:49 pm

Hi friends,

i am seeting Closer campaign but not able to do it.

for example

my DID no. will be likw 2127773456 and gateway ip will be 61.16.250.240 and UID is abcd and PWD is xyz

what will be confguration sip.conf and extensions.conf for it.

my current conf is


sip.conf


[general]
context=default
register => abcd:xyz@61.16.250.240
port=5060
bindaddr=0.0.0.0
srvlookup=yes

rtptimeout=3600
rtpholdtimeout=3600
dtmfmode=rfc2833

disallow=all
allow=ulaw
;allow=all


[101]
type=friend
username=101
secret=101
host=dynamic
port=5060
;port=6080
dtmfmode=rfc2833
canreinvite=no
;context=from-agent
disallow=all
allow=ulaw

[102]
type=friend
username=102
secret=102
host=dynamic
port=5060
dtmfmode=rfc2833
canreinvite=no
;context=from-agent
disallow=all
allow=ulaw


[2127773456]
type=peer
insecure=very
host= 61.16.250.240
disallow=all
allow=ulaw
allow=gsm



Extensions.conf


[general]
static=yes
writeprotect=no

[globals]
CONSOLE => Console/dsp
TRUNKSIPNUMBER=SIP/abcd:xyz@61.16.250.240


[internal]
[outgoing]
[from-agent]
exten => h,1,Hangup()

exten => t,1,Hangup()

include => outgoing
include => internal

[default]
exten => #,1,Playback(invalid)
exten => #,2,Hangup()

exten => 78600051,1,Meetme(8600051,q)

exten => 78600052,1,Meetme(8600052,q)

exten => 78600053,1,Meetme(8600053,q)

exten => 78600054,1,Meetme(8600054,q)

exten => 78600055,1,Meetme(8600055,q)

exten => 78600056,1,Meetme(8600056,q)

exten => 78600057,1,Meetme(8600057,q)

exten => 78600058,1,Meetme(8600058,q)

exten => 78600059,1,Meetme(8600059,q)

exten => 78600060,1,Meetme(8600060,q)

exten => 78600061,1,Meetme(8600061,q)

exten => 78600062,1,Meetme(8600062,q)

exten => 78600063,1,Meetme(8600063,q)

exten => 78600064,1,Meetme(8600064,q)

exten => 78600065,1,Meetme(8600065,q)

exten => 78600066,1,Meetme(8600066,q)

exten => 78600067,1,Meetme(8600067,q)

exten => 78600068,1,Meetme(8600068,q)

exten => 78600069,1,Meetme(8600069,q)

exten => 78600070,1,Meetme(8600070,q)

exten => 78600071,1,Meetme(8600071,q)

exten => 78600072,1,Meetme(8600072,q)

exten => 78600073,1,Meetme(8600073,q)

exten => 78600074,1,Meetme(8600074,q)

exten => 78600075,1,Meetme(8600075,q)

exten => 78600076,1,Meetme(8600076,q)

exten => 78600077,1,Meetme(8600077,q)

exten => 78600078,1,Meetme(8600078,q)

exten => 78600079,1,Meetme(8600079,q)

exten => 78600080,1,Meetme(8600080,q)

exten => 8159,1,ZapBarge()
exten => 8159,2,Hangup()

exten => 8301,1,Answer()
exten => 8301,2,AGI(park_CID.agi)
exten => 8301,3,Playback(park)
exten => 8301,4,Hangup()

exten => 8302,1,Answer()
exten => 8302,2,Playback(conf)
exten => 8302,3,Hangup()

exten => 8309,1,Answer()
exten => 8309,2,Monitor(wav,${CALLERIDNAME})
exten => 8309,3,Wait(3600)
exten => 8309,4,Hangup()

exten => 8365,1,AGI(call_log.agi,${EXTEN})
exten => 8365,2,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,3,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,4,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,5,Hangup()

exten => 8366,1,AGI(call_log.agi,${EXTEN})
exten => 8366,2,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,3,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,4,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,5,Hangup()

exten => 8367,1,AGI(call_log.agi,${EXTEN})
exten => 8367,2,machinedetect(700,2,2200)
exten => 8367,3,NVFaxDetect(|t)
exten => 8367,4,Hangup
exten => mac,1,AGI(agi-AMD.agi,${EXTEN})
exten => mac,2,AGI(agi-AMD.agi,${EXTEN})
exten => mac,3,AGI(agi-AMD.agi,${EXTEN})
exten => mac,4,NVFaxDetect(|t)
exten => mac,5,Hangup
;exten => 8367,4,AGI(agi-VDADtransfer.agi,${EXTEN})
;exten => 8367,5,Hangup
exten => fax,1,AGI(agi_FAX.agi,${EXTEN})
exten => fax,2,AGI(agi_FAX.agi,${EXTEN})
exten => fax,3,AGI(agi_FAX.agi,${EXTEN})
exten => fax,4,Hangup
exten => talk,1,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => talk,2,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => talk,3,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => talk,4,Hangup


exten => 8368,1,Answer()
exten => 8368,2,playback(conf)
exten => 8368,3,hangup()

exten => 8500,1,VoicemailMain()
exten => 8500,2,Goto(s,6)

exten => 8500998,1,Answer()
exten => 8500998,2,AGI(agi-dtmf.agi)
exten => 8500998,3,Hangup()

exten => 8501,1,VoicemailMain(s${CALLERID})
exten => 8501,2,Hangup()

exten => 8600,1,Meetme(8600)

exten => 8600011,1,Meetme(8600011,q)

exten => 8600012,1,Meetme(8600012,q)

exten => 8600013,1,Meetme(8600013,q)

exten => 8600014,1,Meetme(8600014,q)

exten => 8600015,1,Meetme(8600015,q)

exten => 8600016,1,Meetme(8600016,q)

exten => 8600017,1,Meetme(8600017,q)

exten => 8600018,1,Meetme(8600018,q)

exten => 8600019,1,Meetme(8600019,q)

exten => 8600020,1,Meetme(8600020,q)

exten => 8600021,1,Meetme(8600021,q)

exten => 8600022,1,Meetme(8600022,q)

exten => 8600023,1,Meetme(8600023,q)

exten => 8600024,1,Meetme(8600024,q)

exten => 8600025,1,Meetme(8600025,q)

exten => 8600026,1,Meetme(8600026,q)

exten => 8600027,1,Meetme(8600027,q)

exten => 8600028,1,Meetme(8600028,q)

exten => 8600029,1,Meetme(8600029,q)

exten => 8600051,1,Meetme(8600051)

exten => 8600052,1,Meetme(8600052)

exten => 8600053,1,Meetme(8600053)

exten => 8600054,1,Meetme(8600054)

exten => 8600055,1,Meetme(8600055)

exten => 8600056,1,Meetme(8600056)

exten => 8600057,1,Meetme(8600057)

exten => 8600058,1,Meetme(8600058)

exten => 8600059,1,Meetme(8600059)

exten => 8600060,1,Meetme(8600060)

exten => 8600061,1,Meetme(8600061)

exten => 8600062,1,Meetme(8600062)

exten => 8600063,1,Meetme(8600063)

exten => 8600064,1,Meetme(8600064)

exten => 8600065,1,Meetme(8600065)

exten => 8600066,1,Meetme(8600066)

exten => 8600067,1,Meetme(8600067)

exten => 8600068,1,Meetme(8600068)

exten => 8600069,1,Meetme(8600069)

exten => 8600070,1,Meetme(8600070)

exten => 8600071,1,Meetme(8600071)

exten => 8600072,1,Meetme(8600072)

exten => 8600073,1,Meetme(8600073)

exten => 8600074,1,Meetme(8600074)

exten => 8600075,1,Meetme(8600075)

exten => 8600076,1,Meetme(8600076)

exten => 8600077,1,Meetme(8600077)

exten => 8600078,1,Meetme(8600078)

exten => 8600079,1,Meetme(8600079)

exten => 8600080,1,Meetme(8600080)

exten => 8601,1,Meetme(8601)


exten => h,1,DeadAGI(call_log.agi,${EXTEN})
exten => h,2,DeadAGI(VD_hangup.agi,PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})

exten => i,1,Playback(invalid)

exten => t,1,Goto(#,1)

exten => s,1,AGI(agi-VDADcloser_inboundCIDlookup.agi,CLOSER-----2127773456-----CLOSER----------999-----1)
exten => s,2,Hangup

local]
include => default




plz help.
rishuk
 
Posts: 64
Joined: Thu Dec 13, 2007 12:34 pm

Postby nobesnickr » Thu Dec 13, 2007 1:04 pm

What part are you getting stuck on?

If asterisk is registering the incoming call it is a configuration issue, if you never see the call coming in the Asterisk CLI then it is a conenction problem with your voip provider. Take a look at the Asterisk CLI and attempt to call in.

Code: Select all
asterisk -rvvvv


If something shows up post it on here, if not, check you SIP configuration from your provider
nobesnickr
 
Posts: 56
Joined: Thu Nov 01, 2007 6:44 pm

Inbound Setup

Postby rishuk » Thu Dec 13, 2007 1:10 pm

nothing happens at CLI when attempting to call on this no, i think there is some problem in my conf, because this no. was aleardy configured on another device and running smoothly
rishuk
 
Posts: 64
Joined: Thu Dec 13, 2007 12:34 pm

Postby ramindia » Thu Dec 13, 2007 1:16 pm

Hi

when you call that number from PSTN , what you hear

and i dont see any context in sip.conf

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Inbound Setup

Postby rishuk » Thu Dec 13, 2007 1:29 pm

it goes to voice mail, that sip provider gave me when i am not login


ramindia wrote:Hi

when you call that number from PSTN , what you hear

and i dont see any context in sip.conf

ram
rishuk
 
Posts: 64
Joined: Thu Dec 13, 2007 12:34 pm

Re: Inbound Setup

Postby rishuk » Thu Dec 13, 2007 1:32 pm

where should i put context ? it this context i will have to put in extensions.conf as well ? plz give me example.
rishuk
 
Posts: 64
Joined: Thu Dec 13, 2007 12:34 pm

Inbound Setup

Postby rishuk » Thu Dec 13, 2007 1:42 pm

it goes to voice mail, that sip provider gave me when i am not login


where should i put context ? it this context i will have to put in extensions.conf as well ? plz give me example.
rishuk
 
Posts: 64
Joined: Thu Dec 13, 2007 12:34 pm

Postby nobesnickr » Thu Dec 13, 2007 1:57 pm

you will have to have context from them in both your sip.conf and your extensions.conf . It looks like you have the context already in your sip.conf (although I dont use SIP trunks so I am by no means an expert, and you SIP provider will probably have the exact settings you need) but it is your extensions.conf I dont see a clear dialplan.

Quick example for a dialplan would be

Code: Select all
[arbitrary-name]  ; <-- Should match the context you have in SIP.conf (in your case it looks like general


exten => 2127773456,1,Playback(beep)
exten => 2127773456,2,SayDigits(${EXTEN})
exten => 2127773456,3,Goto(testdtmf|s|1)


That will take a call and read back numbers to you. This is assuming that youy sip provider sends all 10 digits to you when you have an incoming call from them (ive heard some dont?)

let me know if that helps at all
nobesnickr
 
Posts: 56
Joined: Thu Nov 01, 2007 6:44 pm

Inbound Setup

Postby rishuk » Thu Dec 13, 2007 2:23 pm

my sip.conf should be like this in this case?


[2127773456]
type=peer
insecure=very
host=61.16.250.240
context=test
disallow=all
allow=ulaw


and extensions.conf

[test]

exten => 2127773456,1,Playback(beep)
exten => 2127773456,2,SayDigits(${EXTEN})
exten => 2127773456,3,Goto(testdtmf|s|1)[/code]


plz help


nobesnickr wrote:you will have to have context from them in both your sip.conf and your extensions.conf . It looks like you have the context already in your sip.conf (although I dont use SIP trunks so I am by no means an expert, and you SIP provider will probably have the exact settings you need) but it is your extensions.conf I dont see a clear dialplan.

Quick example for a dialplan would be

Code: Select all
[arbitrary-name]  ; <-- Should match the context you have in SIP.conf (in your case it looks like general


exten => 2127773456,1,Playback(beep)
exten => 2127773456,2,SayDigits(${EXTEN})
exten => 2127773456,3,Goto(testdtmf|s|1)


That will take a call and read back numbers to you. This is assuming that youy sip provider sends all 10 digits to you when you have an incoming call from them (ive heard some dont?)

let me know if that helps at all
rishuk
 
Posts: 64
Joined: Thu Dec 13, 2007 12:34 pm

Postby nobesnickr » Thu Dec 13, 2007 2:49 pm

SIP.conf example (what I would do if i were you...)

[general]
register => USERNAMEFROMPROVIDER:PASSWORDFROMPROVIDER@YOURPROVIDER


[default] ; <-- Should match peer in extensions.conf
fromdomain=GETFROMPROVIDER ;
host=GETFROMPROVIDER
insecure=very
username=USERNAMEFROMPROVIDER
secret=PASSWORDFROMPROVIDER
type=peer


extension.conf

[default]

exten => 2127773456,1,Playback(beep)
exten => 2127773456,2,SayDigits(${EXTEN})
exten => 2127773456,3,Hangup


P.S. This will not automatically link you to the inbound caller campaign, this will simple read you back the numbers to test if inbound is working or not, we will worry about the rest once you get it working...
Last edited by nobesnickr on Thu Dec 13, 2007 2:54 pm, edited 1 time in total.
nobesnickr
 
Posts: 56
Joined: Thu Nov 01, 2007 6:44 pm

Postby nobesnickr » Thu Dec 13, 2007 2:53 pm

after you make those changes type

Code: Select all
asterisk -r -x "reload"


then

Code: Select all
asterisk -r -x "sip show registry"


and that should tell you if you are registered correctly with your VOIP provider
nobesnickr
 
Posts: 56
Joined: Thu Nov 01, 2007 6:44 pm

hello

Postby eliasferreyra » Fri Dec 14, 2007 2:22 pm

i think you have to specify any context on sip.conf
eliasferreyra
 
Posts: 367
Joined: Wed Jul 18, 2007 3:27 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot], jovieticar101 and 134 guests