SIP declined

Joined
May 16, 2007
Messages
113
Points
0
Hi,
I had 0.9 working perfectly, I've upgraded to 1.0-14 and upgraded the freePBX to 2.4
From this time impossible to receive a call on my SIP phone.

Have taken a new PC, Install 1.0, update to 1.0-14, upgrade freePBX to 2.4.0.0
Still same problem.

I can use my phone to call outside, but one phone cannot join other phone.
Hard phone are 2000 and 2450
sip show peers says:OK (80ms) and (58 ms)

You can see below trace when the 2000 try to call the 2450:


-- Executing [2450@from-internal:1] Macro("SIP/2000-09658eb0", "exten-vm|novm|2450") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/2000-09658eb0", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/2000-09658eb0", "user-callerid: device 2000") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/2000-09658eb0", "AMPUSER=2000") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/2000-09658eb0", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/2000-09658eb0", "1|Set|REALCALLERIDNUM=2000") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/2000-09658eb0", "REALCALLERIDNUM is 2000") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/2000-09658eb0", "AMPUSER=2000") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2000-09658eb0", "AMPUSERCIDNAME=Brice_Snom") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/2000-09658eb0", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/2000-09658eb0", "AMPUSERCID=2000") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/2000-09658eb0", "CALLERID(all)="Brice_Snom" <2000>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/2000-09658eb0", "REALCALLERIDNUM=2000") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/2000-09658eb0", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/2000-09658eb0", "TTL: ARG1: novm") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/2000-09658eb0", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/2000-09658eb0", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/2000-09658eb0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/2000-09658eb0", "Using CallerID "Brice_Snom" <2000>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/2000-09658eb0", "FROMCONTEXT=exten-vm") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/2000-09658eb0", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/2000-09658eb0", "EXTTOCALL=2450") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/2000-09658eb0", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/2000-09658eb0", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/2000-09658eb0", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/2000-09658eb0", "record-enable|2450|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/2000-09658eb0", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/2000-09658eb0", "recordingcheck|20080408-133014|1207654214.12") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080408-133014|1207654214.12: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/2000-09658eb0", "No recording needed") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/2000-09658eb0", "dial||tr|2450") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/2000-09658eb0", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/2000-09658eb0", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'Brice_Snom' number is '2000'
dialparties.agi: USE_CONFIRMATION: 'FALSE'
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 2450 to extension map
-- dialparties.agi: Extension 2450 cf is disabled
-- dialparties.agi: Extension 2450 do not disturb is disabled
> dialparties.agi: extnum 2450 has: cw: 0; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 2450 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 2450
-- dialparties.agi: dbset CALLTRACE/2450 to 2000
-- dialparties.agi: Filtered ARG3: 2450
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:4] NoOp("SIP/2000-09658eb0", "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack
-- Executing [s@macro-exten-vm:10] Set("SIP/2000-09658eb0", "SV_DIALSTATUS=") in new stack
-- Executing [s@macro-exten-vm:11] GosubIf("SIP/2000-09658eb0", "0?docfu|1") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/2000-09658eb0", "0?docfb|1") in new stack
-- Executing [s@macro-exten-vm:13] Set("SIP/2000-09658eb0", "DIALSTATUS=") in new stack
-- Executing [s@macro-exten-vm:14] NoOp("SIP/2000-09658eb0", "Voicemail is novm") in new stack
-- Executing [s@macro-exten-vm:15] GotoIf("SIP/2000-09658eb0", "1?s-|1") in new stack
-- Goto (macro-exten-vm,s-,1)
-- Executing [2450@from-internal:2] Hangup("SIP/2000-09658eb0", "") in new stack
== Spawn extension (from-internal, 2450, 2) exited non-zero on 'SIP/2000-09658eb0'
-- Executing [h@from-internal:1] Macro("SIP/2000-09658eb0", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/2000-09658eb0", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/2000-09658eb0", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/2000-09658eb0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/2000-09658eb0", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/2000-09658eb0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/2000-09658eb0", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2000-09658eb0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2000-09658eb0'


-----------------------------------------------------------------------------------------------------------


And the log when the 2450 try to call the 2000:

-- Executing [2000@from-internal:1] Macro("SIP/2450-0966fed0", "exten-vm|2000|2000") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/2450-0966fed0", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/2450-0966fed0", "user-callerid: device 2450") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/2450-0966fed0", "1|Set|REALCALLERIDNUM=2450") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/2450-0966fed0", "REALCALLERIDNUM is 2450") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2450-0966fed0", "AMPUSERCIDNAME=S450IP") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/2450-0966fed0", "AMPUSERCID=2450") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/2450-0966fed0", "CALLERID(all)="S450IP" <2450>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/2450-0966fed0", "REALCALLERIDNUM=2450") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/2450-0966fed0", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/2450-0966fed0", "TTL: ARG1: 2000") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/2450-0966fed0", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/2450-0966fed0", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/2450-0966fed0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/2450-0966fed0", "Using CallerID "S450IP" <2450>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/2450-0966fed0", "FROMCONTEXT=exten-vm") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/2450-0966fed0", "VMBOX=2000") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/2450-0966fed0", "EXTTOCALL=2000") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/2450-0966fed0", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/2450-0966fed0", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/2450-0966fed0", "RT=15") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/2450-0966fed0", "record-enable|2000|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/2450-0966fed0", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/2450-0966fed0", "recordingcheck|20080408-133203|1207654323.13") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080408-133203|1207654323.13: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/2450-0966fed0", "No recording needed") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/2450-0966fed0", "dial|15|tr|2000") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/2450-0966fed0", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/2450-0966fed0", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'S450IP' number is '2450'
dialparties.agi: USE_CONFIRMATION: 'FALSE'
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 2000 to extension map
-- dialparties.agi: Extension 2000 cf is disabled
-- dialparties.agi: Extension 2000 do not disturb is disabled
> dialparties.agi: extnum 2000 has: cw: 0; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 2000 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 2000
-- dialparties.agi: dbset CALLTRACE/2000 to 2450
-- dialparties.agi: Filtered ARG3: 2000
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:4] NoOp("SIP/2450-0966fed0", "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack
-- Executing [s@macro-exten-vm:10] Set("SIP/2450-0966fed0", "SV_DIALSTATUS=") in new stack
-- Executing [s@macro-exten-vm:11] GosubIf("SIP/2450-0966fed0", "0?docfu|1") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/2450-0966fed0", "0?docfb|1") in new stack
-- Executing [s@macro-exten-vm:13] Set("SIP/2450-0966fed0", "DIALSTATUS=") in new stack
-- Executing [s@macro-exten-vm:14] NoOp("SIP/2450-0966fed0", "Voicemail is 2000") in new stack
-- Executing [s@macro-exten-vm:15] GotoIf("SIP/2450-0966fed0", "0?s-|1") in new stack
-- Executing [s@macro-exten-vm:16] NoOp("SIP/2450-0966fed0", "Sending to Voicemail box 2000") in new stack
-- Executing [s@macro-exten-vm:17] Macro("SIP/2450-0966fed0", "vm|2000|") in new stack
-- Executing [s@macro-vm:1] Macro("SIP/2450-0966fed0", "user-callerid|SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/2450-0966fed0", "user-callerid: S450IP 2450") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/2450-0966fed0", "0|Set|REALCALLERIDNUM=2450") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/2450-0966fed0", "REALCALLERIDNUM is 2450") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/2450-0966fed0", "AMPUSER=2450") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2450-0966fed0", "AMPUSERCIDNAME=S450IP") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/2450-0966fed0", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/2450-0966fed0", "AMPUSERCID=2450") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/2450-0966fed0", "CALLERID(all)="S450IP" <2450>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/2450-0966fed0", "REALCALLERIDNUM=2450") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/2450-0966fed0", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/2450-0966fed0", "TTL: 64 ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/2450-0966fed0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/2450-0966fed0", "Using CallerID "S450IP" <2450>") in new stack
-- Executing [s@macro-vm:2] Set("SIP/2450-0966fed0", "VMGAIN=""") in new stack
-- Executing [s@macro-vm:3] GotoIf("SIP/2450-0966fed0", "1?vmx|1") in new stack
-- Goto (macro-vm,vmx,1)
-- Executing [vmx@macro-vm:1] GotoIf("SIP/2450-0966fed0", "0?s-|1") in new stack
-- Executing [vmx@macro-vm:2] Set("SIP/2450-0966fed0", "MODE=unavail") in new stack
-- Executing [vmx@macro-vm:3] GotoIf("SIP/2450-0966fed0", "1?notdirect") in new stack
-- Goto (macro-vm,vmx,5)
-- Executing [vmx@macro-vm:5] NoOp("SIP/2450-0966fed0", "Checking if ext 2000 is enabled: ") in new stack
-- Executing [vmx@macro-vm:6] GotoIf("SIP/2450-0966fed0", "1?s-|1") in new stack
-- Goto (macro-vm,s-,1)
-- Executing [2000@from-internal:2] Hangup("SIP/2450-0966fed0", "") in new stack
== Spawn extension (from-internal, 2000, 2) exited non-zero on 'SIP/2450-0966fed0'
-- Executing [h@from-internal:1] Macro("SIP/2450-0966fed0", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/2450-0966fed0", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/2450-0966fed0", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/2450-0966fed0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/2450-0966fed0", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/2450-0966fed0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/2450-0966fed0", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2450-0966fed0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/2450-0966fed0'


On the 2000 the call result is Declined 2450

On the 2450 the call result is: 603

Do you have an Idea??
Thanks
Brice
 
Joined
May 16, 2007
Messages
113
Points
0
Thanks a lot Roque.m
This solves my problem (and headhake!)

For everybody I explain in detail what we have to do on a fresh updrade of freepbx 2.4.0.0
If you cannot phone other local extension, you can do this:

nano extensions.conf
search the line with the comment

; dialparties will set the priority to 10 if $ds is not null

In fact it is in the macro-dial context

my origial line was:
exten => s,10,Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null

replace with:
exten => s,10(normdial),Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null

you have to save and restart asterisk.
Then two extensions can be reachable!!!


On a fresh install you have to load nano (texte editor)
To install it you have to do:
yum install nano

Brice
 
Joined
Sep 10, 2007
Messages
35
Points
0
Thumbz up!!!

I was searching for hours for this.

General info: extensions.conf is in /etc/asterisk dir
and to restart asterisk type amportal restart

In nano: ctrl+w to fild the line you look for, , enter ; dialparties will set, change only what accesip is telling above. (thanks man!)

Have to say that Elastix1.0-RC2 is awsome and on the way up to the top of my choice.<br><br>Post edited by: onsite, at: 2008/04/13 06:20
 

lek

Guest
Thanks again for the post roque.m

Thumbs up too!!<br><br>Post edited by: edgar, at: 2008/04/14 12:03
 
Joined
Feb 22, 2008
Messages
38
Points
0
my origial line was:
exten => s,10,Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null

replace with:
exten => s,10(normdial),Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null
I love you :D
 
Joined
Jun 21, 2008
Messages
3
Points
0
Hi,

That make the solution form my problem. THANKS a lot.

But may be you can help me, now I create a Inbound Trunk that it work, I see in CLI the call is answered my problem is not delivered to the extension. The extension work when you call from other extension and when make a outbound call.

Thanks a lot for any help
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,987
Messages
131,100
Members
17,716
Latest member
Orbit114
Top