Config of SIP TRUNK

All installation and configuration problems and questions

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

Config of SIP TRUNK

Postby jotbe83 » Mon Mar 02, 2015 3:00 pm

Hi,

im new with asterisk and i try to setup connection to SIP provider, i got technical information prom provider:

For SIP: IP XX.XXX.XXX.XXX Port: 5060
Data for medium/RTP: IP: XX.XXX.XXX.XXX Port: 25000-30000
Codecs: G.723.1, G.729, G.711
DTMF: INBAND,RFC2833
CLIR: Sip privacy RFC3325
Phone format: Phone. URI


And i try to setup only outbound calls:

Registration String: I leave empty becouse there is no username and password for registration

[p2sip]
disallow=all
allow=g729
allow=gsm
allow=ulaw
type=friend
port=5060
host=XX.XXX.XXX.XXX
dtmfmode=rfc2833
qualify=yes
insecure=invite
canreinvite=yes
nat=auto
ignoresdpversion=yes
context=from-trunk


Globals string: P2SIP = SIP/p2sip

Dialplan:

exten => _1348XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1348XXXXXXXXX,n,Dial(${P2SIP}/${EXTEN:4},,to)
exten => _1348XXXXXXXXX,n,Hangup


ERROR:
Call Rejected: CHANUNAVAIL
Cause: 20 - Subscriber absent.


My Asterisk:
VERSION: 2.6-374a
BUILD: 120820-1104
jotbe83
 
Posts: 3
Joined: Thu Oct 04, 2012 5:07 pm

Re: Config of SIP TRUNK

Postby jotbe83 » Tue Mar 03, 2015 1:46 pm

Maybe this hel someone who can help me :


Code: Select all
[Mar  3 19:40:51]   == Parsing '/etc/asterisk/manager.conf': [Mar  3 19:40:51] Found
[Mar  3 19:40:51]   == Manager 'sendcron' logged on from 127.0.0.1
[Mar  3 19:40:51]     -- Executing [1348564631025@default:1] AGI("Local/1348564631025@default-dc55,2", "agi://127.0.0.1:4577/call_log") in new stack
[Mar  3 19:40:51]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Mar  3 19:40:51]     -- Executing [1348564631025@default:2] Dial("Local/1348564631025@default-dc55,2", "SIP/p4sip/48564631025||to") in new stack
[Mar  3 19:40:51] WARNING[26675]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Mar  3 19:40:51]   == Everyone is busy/congested at this time (1:0/0/1)
[Mar  3 19:40:51]     -- Executing [1348564631025@default:3] Hangup("Local/1348564631025@default-dc55,2", "") in new stack
[Mar  3 19:40:51]   == Spawn extension (default, 1348564631025, 3) exited non-zero on 'Local/1348564631025@default-dc55,2'
[Mar  3 19:40:51]     -- Executing [h@default:1] DeadAGI("Local/1348564631025@default-dc55,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Mar  3 19:40:51]   == Parsing '/etc/asterisk/manager.conf': [Mar  3 19:40:51] Found
[Mar  3 19:40:51]   == Manager 'sendcron' logged on from 127.0.0.1
[Mar  3 19:40:51]     -- Executing [1348564622357@default:1] AGI("Local/1348564622357@default-cba3,2", "agi://127.0.0.1:4577/call_log") in new stack
[Mar  3 19:40:51]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Mar  3 19:40:51]     -- Executing [1348564622357@default:2] Dial("Local/1348564622357@default-cba3,2", "SIP/p4sip/48564622357||to") in new stack
[Mar  3 19:40:51] WARNING[26681]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Mar  3 19:40:51]   == Everyone is busy/congested at this time (1:0/0/1)
[Mar  3 19:40:51]     -- Executing [1348564622357@default:3] Hangup("Local/1348564622357@default-cba3,2", "") in new stack
[Mar  3 19:40:51]   == Spawn extension (default, 1348564622357, 3) exited non-zero on 'Local/1348564622357@default-cba3,2'
[Mar  3 19:40:51]     -- Executing [h@default:1] DeadAGI("Local/1348564622357@default-cba3,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Mar  3 19:40:51]   == Parsing '/etc/asterisk/manager.conf': [Mar  3 19:40:51] Found
[Mar  3 19:40:51]   == Manager 'sendcron' logged on from 127.0.0.1
[Mar  3 19:40:51]     -- Executing [1348564654486@default:1] AGI("Local/1348564654486@default-908e,2", "agi://127.0.0.1:4577/call_log") in new stack
[Mar  3 19:40:51]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Mar  3 19:40:51]     -- Executing [1348564654486@default:2] Dial("Local/1348564654486@default-908e,2", "SIP/p4sip/48564654486||to") in new stack
[Mar  3 19:40:51] WARNING[26683]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Mar  3 19:40:51]   == Everyone is busy/congested at this time (1:0/0/1)
[Mar  3 19:40:51]     -- Executing [1348564654486@default:3] Hangup("Local/1348564654486@default-908e,2", "") in new stack
[Mar  3 19:40:51]   == Spawn extension (default, 1348564654486, 3) exited non-zero on 'Local/1348564654486@default-908e,2'
[Mar  3 19:40:51]     -- Executing [h@default:1] DeadAGI("Local/1348564654486@default-908e,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Mar  3 19:40:52]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0
[Mar  3 19:40:52]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0
[Mar  3 19:40:52]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0
[Mar  3 19:40:54]   == Parsing '/etc/asterisk/manager.conf': [Mar  3 19:40:54] Found
[Mar  3 19:40:54]   == Manager 'sendcron' logged on from 127.0.0.1
[Mar  3 19:40:54]     -- Executing [1348564627775@default:1] AGI("Local/1348564627775@default-d7bf,2", "agi://127.0.0.1:4577/call_log") in new stack
[Mar  3 19:40:54]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Mar  3 19:40:54]     -- Executing [1348564627775@default:2] Dial("Local/1348564627775@default-d7bf,2", "SIP/p4sip/48564627775||to") in new stack
[Mar  3 19:40:54] WARNING[26695]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Mar  3 19:40:54]   == Everyone is busy/congested at this time (1:0/0/1)
[Mar  3 19:40:54]     -- Executing [1348564627775@default:3] Hangup("Local/1348564627775@default-d7bf,2", "") in new stack
[Mar  3 19:40:54]   == Spawn extension (default, 1348564627775, 3) exited non-zero on 'Local/1348564627775@default-d7bf,2'
[Mar  3 19:40:54]     -- Executing [h@default:1] DeadAGI("Local/1348564627775@default-d7bf,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Mar  3 19:40:54]   == Parsing '/etc/asterisk/manager.conf': [Mar  3 19:40:54] Found
[Mar  3 19:40:54]   == Manager 'sendcron' logged on from 127.0.0.1
[Mar  3 19:40:54]     -- Executing [1348564627597@default:1] AGI("Local/1348564627597@default-4401,2", "agi://127.0.0.1:4577/call_log") in new stack
[Mar  3 19:40:54]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Mar  3 19:40:54]     -- Executing [1348564627597@default:2] Dial("Local/1348564627597@default-4401,2", "SIP/p4sip/48564627597||to") in new stack
[Mar  3 19:40:54] WARNING[26699]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Mar  3 19:40:54]   == Everyone is busy/congested at this time (1:0/0/1)
[Mar  3 19:40:54]     -- Executing [1348564627597@default:3] Hangup("Local/1348564627597@default-4401,2", "") in new stack
[Mar  3 19:40:54]   == Spawn extension (default, 1348564627597, 3) exited non-zero on 'Local/1348564627597@default-4401,2'
[Mar  3 19:40:54]     -- Executing [h@default:1] DeadAGI("Local/1348564627597@default-4401,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Mar  3 19:40:54]   == Manager 'sendcron' logged off from 127.0.0.1
[Mar  3 19:40:54]   == Manager 'sendcron' logged off from 127.0.0.1
[Mar  3 19:40:54]   == Manager 'sendcron' logged off from 127.0.0.1
[Mar  3 19:40:55]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0
[Mar  3 19:40:55]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0
[Mar  3 19:40:57]   == Parsing '/etc/asterisk/manager.conf': [Mar  3 19:40:57] Found
[Mar  3 19:40:57]   == Manager 'sendcron' logged on from 127.0.0.1
[Mar  3 19:40:57]     -- Executing [1348564624160@default:1] AGI("Local/1348564624160@default-b0b8,2", "agi://127.0.0.1:4577/call_log") in new stack
[Mar  3 19:40:57]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Mar  3 19:40:57]     -- Executing [1348564624160@default:2] Dial("Local/1348564624160@default-b0b8,2", "SIP/p4sip/48564624160||to") in new stack
[Mar  3 19:40:57] WARNING[26706]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Mar  3 19:40:57]   == Everyone is busy/congested at this time (1:0/0/1)
[Mar  3 19:40:57]     -- Executing [1348564624160@default:3] Hangup("Local/1348564624160@default-b0b8,2", "") in new stack
[Mar  3 19:40:57]   == Spawn extension (default, 1348564624160, 3) exited non-zero on 'Local/1348564624160@default-b0b8,2'
[Mar  3 19:40:57]     -- Executing [h@default:1] DeadAGI("Local/1348564624160@default-b0b8,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
jotbe83
 
Posts: 3
Joined: Thu Oct 04, 2012 5:07 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 69 guests