[asterisk-users] Hash Dial Pattern Problems

David Nickel dnickel at gmail.com
Fri May 7 07:29:17 CDT 2010


I changed the dial pattern to %23|XXXXXXX and dialed #1234567. I was able to
trigger activity in the CLI:

Connected to Asterisk 1.2.1 currently running on aikphone (pid = 29352)
Verbosity is at least 22
    -- Executing Macro("SIP/3000-ca1c", "dialout-trunk|3|3643873|") in new
stack
    -- Executing GotoIf("SIP/3000-ca1c", "1?3:2)") in new stack
    -- Goto (macro-dialout-trunk,s,3)
    -- Executing Macro("SIP/3000-ca1c", "user-callerid") in new stack
    -- Executing DBget("SIP/3000-ca1c", "AMPUSER=DEVICE/3000/user") in new
stack
    -- DBget: varname=AMPUSER, family=DEVICE, key=3000/user
    -- DBget: set variable AMPUSER to 3000
    -- Executing DBget("SIP/3000-ca1c",
"AMPUSERCIDNAME=AMPUSER/3000/cidname") in new stack
    -- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=3000/cidname
    -- DBget: set variable AMPUSERCIDNAME to Augusta I.T Tes
    -- Executing GotoIf("SIP/3000-ca1c", "0?5") in new stack
    -- Executing SetCallerID("SIP/3000-ca1c", ""Augusta I.T Tes" <3000>") in
new stack
    -- Executing NoOp("SIP/3000-ca1c", "Using CallerID "Augusta I.T Tes"
<3000>") in new stack
    -- Executing Macro("SIP/3000-ca1c", "record-enable|3000|OUT") in new
stack
    -- Executing GotoIf("SIP/3000-ca1c", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing AGI("SIP/3000-ca1c",
"recordingcheck|20100507-082747|1273235267.398") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20100507-082747|1273235267.398: Outbound recording not
enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("SIP/3000-ca1c", "No recording needed") in new stack
    -- Executing Macro("SIP/3000-ca1c", "outbound-callerid|3") in new stack
    -- Executing DBget("SIP/3000-ca1c",
"USEROUTCID=AMPUSER/3000/outboundcid") in new stack
    -- DBget: varname=USEROUTCID, family=AMPUSER, key=3000/outboundcid
    -- DBget: set variable USEROUTCID to
    -- Executing GotoIf("SIP/3000-ca1c", "1?4") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing GotoIf("SIP/3000-ca1c", "1?6") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing NoOp("SIP/3000-ca1c", "CallerID set to "Augusta I.T Tes"
<3000>") in new stack
    -- Executing SetGroup("SIP/3000-ca1c", "OUT_3") in new stack
    -- Executing CheckGroup("SIP/3000-ca1c", "") in new stack
    -- Executing SetVar("SIP/3000-ca1c", "DIAL_NUMBER=3643873") in new stack
    -- Executing SetVar("SIP/3000-ca1c", "DIAL_TRUNK=3") in new stack
    -- Executing AGI("SIP/3000-ca1c", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
  fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing SetVar("SIP/3000-ca1c", "OUTNUM=3643873") in new stack
    -- Executing Cut("SIP/3000-ca1c", "custom=OUT_3|:|1") in new stack
    -- Executing GotoIf("SIP/3000-ca1c", "0?16") in new stack
    -- Executing Dial("SIP/3000-ca1c", "IAX2/augusta/3643873") in new stack
    -- Called augusta/3643873
    -- Call accepted by 192.168.1.10 (format ulaw)
    -- Format for call is ulaw
    -- IAX2/augusta-16384 is making progress passing it to SIP/3000-ca1c
    -- Hungup 'IAX2/augusta-16384'
  == Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on
'SIP/3000-ca1c' in macro 'dialout-trunk'
  == Spawn extension (from-internal, %233643873, 1) exited non-zero on
'SIP/3000-ca1c'
    -- Executing Macro("SIP/3000-ca1c", "hangupcall") in new stack
    -- Executing ResetCDR("SIP/3000-ca1c", "w") in new stack
    -- Executing NoCDR("SIP/3000-ca1c", "") in new stack
    -- Executing Wait("SIP/3000-ca1c", "5") in new stack
  == Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/3000-ca1c' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/3000-ca1c'

It stripped the hash and passed the number through the IAX2 trunk. I am just
getting a all "circuits are busy".
Thanks,
David



On Wed, May 5, 2010 at 6:53 PM, Philipp von Klitzing <
klitzing at pool.informatik.rwth-aachen.de> wrote:

> Hi!
>
> > I set: sip debug peer 3000 (my test extension)  and dialed #3643873
>
> Your X-Lite softphone actually calls %233643873 and not #3643873.
> You would need to check the SIP RFCs in order to find out if Asterisk is
> behaving correctly here by not decoding %23 as #.
>
> In the meanwhile you could try to add the extension %233643873 to your
> dialplan, or find out if you can configure the way X-Lite handles the #
> within the dialstring.
>
> > To: "#3643873"<sip:%233643873 at 192.168.2.10<sip%3A%25233643873 at 192.168.2.10>
> >
> > ...
> > User-Agent: X-Lite release 1104o stamp 56125
>
> > (telephone-event) Looking for %233643873 in from-internal (domain
> > ...
> > SIP/2.0 404 Not Found Via: SIP/2.0/UDP
>
> Philipp
>
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100507/91992752/attachment.htm 


More information about the asterisk-users mailing list