VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
xserverlinux at gmail.com Guest
|
Posted: Thu Nov 14, 2013 5:53 pm Post subject: [asterisk-users] DAHDI with (CDR(userfield) |
|
|
Hi list, I need some help to improve my cdr, now in my company are asking me how to know which of my phone numbers are most used when receiving calls from the PSTN and incoming the IVR
was thinking about using userfield field, and I'm trying to do, I have at the moment 4 channel DAHDI
; DAHDI CHANNEL 3=23XXXXX6
context=in
callerid=asreceived
group=1
signalling=fxs_ks
channel => 3
[in]
exten => s,1,Set(CDR(userfield)=23XXXXX6)
same=> n,Goto(in2)
[in2]
exten => s,1,GotoIfTime(08:00-17:00|mon-fri|*|*?s,dentro)
exten => s,2,Playback(custom/fuera)
exten => s,n,Set(CHANNEL(language)=es)
etc etc etc ..
-- Starting simple switch on 'DAHDI/3-1'
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=23XXXXX6") in new stack
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack
[Nov 14 16:45:51] NOTICE[29607]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'
[Nov 14 16:45:51] WARNING[29607]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
-- Starting simple switch on 'DAHDI/3-1'
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=[url=tel:23400216]23400216[/url]") in new stack
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack
[Nov 14 16:46:03] NOTICE[29608]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'
[Nov 14 16:46:03] WARNING[29608]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
fails to pass the call to ivr
any idea ?
--
rickygm
http://gnuforever.homelinux.com |
|
Back to top |
|
|
mgilleran at realtyim.com Guest
|
Posted: Thu Nov 14, 2013 6:30 pm Post subject: [asterisk-users] DAHDI with (CDR(userfield) |
|
|
Try this. The warning and notice error’s are basically telling you whats wrong
[in]
exten => s,1,Set(CDR(userfield)=23XXXXX6)
same => s,n,Goto(in2,s,1)
Mike
From: troxlinux [mailto:xserverlinux@gmail.com]
Sent: Thursday, November 14, 2013 2:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] DAHDI with (CDR(userfield)
Hi list, I need some help to improve my cdr, now in my company are asking me how to know which of my phone numbers are most used when receiving calls from the PSTN and incoming the IVR
was thinking about using userfield field, and I'm trying to do, I have at the moment 4 channel DAHDI
; DAHDI CHANNEL 3=23XXXXX6
context=in
callerid=asreceived
group=1
signalling=fxs_ks
channel => 3
[in]
exten => s,1,Set(CDR(userfield)=23XXXXX6)
same=> n,Goto(in2)
[in2]
exten => s,1,GotoIfTime(08:00-17:00|mon-fri|*|*?s,dentro)
exten => s,2,Playback(custom/fuera)
exten => s,n,Set(CHANNEL(language)=es)
etc etc etc ..
-- Starting simple switch on 'DAHDI/3-1'
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=23XXXXX6") in new stack
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack
[Nov 14 16:45:51] NOTICE[29607]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'
[Nov 14 16:45:51] WARNING[29607]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
-- Starting simple switch on 'DAHDI/3-1'
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=[url=tel:23400216]23400216[/url]") in new stack
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack
[Nov 14 16:46:03] NOTICE[29608]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'
[Nov 14 16:46:03] WARNING[29608]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
fails to pass the call to ivr
any idea ?
--
rickygm
http://gnuforever.homelinux.com |
|
Back to top |
|
|
xserverlinux at gmail.com Guest
|
Posted: Thu Nov 14, 2013 6:47 pm Post subject: [asterisk-users] DAHDI with (CDR(userfield) |
|
|
thnk , works great ..
2013/11/14 Michael Gilleran <mgilleran@realtyim.com (mgilleran@realtyim.com)>
Quote: |
Try this. The warning and notice error’s are basically telling you whats wrong
[in]
exten => s,1,Set(CDR(userfield)=23XXXXX6)
same => s,n,Goto(in2,s,1)
Mike
From: troxlinux [mailto:xserverlinux@gmail.com (xserverlinux@gmail.com)]
Sent: Thursday, November 14, 2013 2:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] DAHDI with (CDR(userfield)
Hi list, I need some help to improve my cdr, now in my company are asking me how to know which of my phone numbers are most used when receiving calls from the PSTN and incoming the IVR
was thinking about using userfield field, and I'm trying to do, I have at the moment 4 channel DAHDI
; DAHDI CHANNEL 3=23XXXXX6
context=in
callerid=asreceived
group=1
signalling=fxs_ks
channel => 3
[in]
exten => s,1,Set(CDR(userfield)=23XXXXX6)
same=> n,Goto(in2)
[in2]
exten => s,1,GotoIfTime(08:00-17:00|mon-fri|*|*?s,dentro)
exten => s,2,Playback(custom/fuera)
exten => s,n,Set(CHANNEL(language)=es)
etc etc etc ..
-- Starting simple switch on 'DAHDI/3-1'
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=23XXXXX6") in new stack
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack
[Nov 14 16:45:51] NOTICE[29607]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'
[Nov 14 16:45:51] WARNING[29607]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
-- Starting simple switch on 'DAHDI/3-1'
-- Executing [s@in:1] Set("DAHDI/3-1", "CDR(userfield)=[url=tel:23400216]23400216[/url]") in new stack
-- Executing [s@in:2] Goto("DAHDI/3-1", "in2") in new stack
[Nov 14 16:46:03] NOTICE[29608]: pbx.c:4522 pbx_extension_helper: No such label 'in2' in extension 's' in context 'in'
[Nov 14 16:46:03] WARNING[29608]: pbx.c:10888 pbx_parseable_goto: Priority 'in2' must be a number > 0, or valid label
== Spawn extension (in, s, 2) exited non-zero on 'DAHDI/3-1'
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
fails to pass the call to ivr
any idea ?
--
rickygm
http://gnuforever.homelinux.com
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
--
rickygm
http://gnuforever.homelinux.com |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|