[Asterisk-Users] Help withAsterisk@homeandBroadvoiceincomingcalls..

dbruce dbruce at bananatel.ca
Sun Jul 24 16:38:08 MST 2005


What is happening is that the _X. extension is catching the call... you need
to take it out... it was only meant as a test to make sure which extension
it was actually being sent to...

It seems that it is then executing your vm macro without any parameters...
don't know why that would happen...

Try again after removing the catchall...

Regards,
Derek

----- Original Message -----
From: "Howard Leadmon" <howard at leadmon.net>
To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
<asterisk-users at lists.digium.com>
Sent: Sunday, July 24, 2005 4:35 PM
Subject: RE: [Asterisk-Users] Help
withAsterisk at homeandBroadvoiceincomingcalls..


>
>  OK, I added in the rule you gave me below, and yep it said 201, so your
right
> on with that one.
>
> So with the following extension rules:
>
> ;setup SIP extension for BroadVoice
> [globals]
> BVNUMBER=2405243333 ; your calling number
> BVRINGS=201 ; the phone to ring
> BVVMBOX=201 ; the VM box for this user
>
>
> [outrt-003-BroadVoice]
> include => outrt-003-BroadVoice-custom
> exten => _8.,1,Dial(SIP/${EXTEN:1}@sip.broadvoice.com,30)
> exten => _8.,2,Congestion()
> exten => _8.,102,Busy()
>
> [frombroadvoice]
> exten => _X.,1,Noop(Incoming call for extension ${EXTEN}in context
> frombroadvoice)
> exten => 201,1,Macro(exten-vm,${BVRINGS}@default,${BVRINGS})
> exten => ${VM_PREFIX}${BVVMBOX},1,Macro(vm,${BVVMBOX})
>
>
>
> I now see:
>
>
> Jul 24 18:25:37 DEBUG[1078]: Setting NAT on RTP to 0
> Jul 24 18:25:37 DEBUG[1078]: Check for res for 2405243333
> Jul 24 18:25:37 DEBUG[1078]: 2405243333 is not a local user
> Jul 24 18:25:37 DEBUG[1078]: build_route: Contact hop:
> <sip:4105156666 at 147.135.0.128:5060;ep=147.135.0.129;transport=udp>
> Jul 24 18:25:37 VERBOSE[1078]:     -- Executing
NoOp("SIP/2405243333-13be",
> "Incoming call for extension 701in context frombroadvoice") in new stack
> Jul 24 18:25:47 VERBOSE[1078]:   == CDR updated on SIP/2405243333-13be
> Jul 24 18:25:47 VERBOSE[1078]:     -- Executing
Macro("SIP/2405243333-13be",
> "vm|") in new stack
> Jul 24 18:25:47 VERBOSE[1078]:     -- Executing
Goto("SIP/2405243333-13be",
> "s-|1") in new stack
> Jul 24 18:25:47 VERBOSE[1078]:     -- Goto (macro-vm,s-,1)
> Jul 24 18:25:47 VERBOSE[1078]:     -- Executing
> VoiceMail("SIP/2405243333-13be", "u") in new stack
> Jul 24 18:25:47 WARNING[1078]: No entry in voicemail config file for ''
> Jul 24 18:25:47 VERBOSE[1078]:     -- Executing
Hangup("SIP/2405243333-13be",
> "") in new stack
> Jul 24 18:25:47 VERBOSE[1078]:   == Spawn extension (macro-vm, s-, 2)
exited
> non-zero on 'SIP/2405243333-13be' in macro 'vm'
> Jul 24 18:25:47 VERBOSE[1078]:   == Spawn extension (frombroadvoice, , 1)
> exited non-zero on 'SIP/2405243333-13be'
> Jul 24 18:25:47 DEBUG[1078]: cdr_mysql: inserting a CDR record.
> Jul 24 18:25:47 DEBUG[1078]: cdr_mysql: SQL command as follows:  INSERT
INTO
> cdr
>
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration
,b
> illsec,disposition,amaflags,accountcode) VALUES ('2005-07-24
> 18:25:37','\"Leadmon H \" <4105156666>','4105156666','','frombroadvoice',
> 'SIP/2405243333-13be','','Hangup','',10,0,'ANSWERED',3,'')
> Jul 24 18:25:47 DEBUG[1078]: update_user_counter(2405243333) - decrement
inUse
> counter
> Jul 24 18:25:47 DEBUG[1078]: 2405243333 is not a local user
> Jul 24 18:25:47 DEBUG[1078]: Stopping retransmission on
> 'SD2o9vc01-cd0c7ebdf9d4cc726c74f1e511173834-js11002' of Response
628736564:
> Found
> Jul 24 18:25:47 DEBUG[1078]: Stopping retransmission on
> 'SD2o9vc01-cd0c7ebdf9d4cc726c74f1e511173834-js11002' of Request 102: Found
>
>
>
> On a side note, and I want to mention it as maybe relevant, something is
now
> screwy with my vMail, which is strange as I haven't done anything but the
> tests here for you.   I can access the vmail, and if an extension is busy
it
> goes to the vmail.   What is messed up is that if I dial an extension and
just
> let it ring, it just keeps on ringing and doesn't transfer out.  For the
life
> of me I can't figure that one out right now, and don't see how just
changing
> this broadvoice context now has it so extension to extension (say 200
calling
> 202) is no longer getting a mailbox.   Never easy..  :(
>
>
> Still when I call the broadvoice number, something changed, as now I get a
> moment of silence, and then it hangs up.  No ringing, no vmail, actually I
> think I got a fraction of a ring one time, then it hung up.
>
> I am for sure still confused on this one, so any help much appreciated...
>
>
> ---
> Howard Leadmon - howard at leadmon.net
> http://www.leadmon.net
>
>
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> > bounces at lists.digium.com] On Behalf Of dbruce
> > Sent: Sunday, July 24, 2005 5:04 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: Re: [Asterisk-Users] Help with
> > Asterisk at homeandBroadvoiceincomingcalls..
> >
> > Ok.. I screwed up...
> >
> > You have a register statement:
> >
register=2405243333 at sip.broadvoice.com:123abc:2405243333 at sip.broadvoice.com/
> > 201
> >
> > so, the incoming call from broadvoice will be sent to extension 201 in
the
> > frombroadvoice context.
> >
> > To ensure what is going on, use this as your context.
> > exten => _X.,1,Noop(Incoming call for extension ${EXTEN} in context
> > frombroadvoice)
> >
> > That will tell you exactly what is being sent into the context.
> >
> > You are using the latest AAH, so the variable substitutions will work.
> >
> > I expect that you will end up using the following in frombroadvoice:
> >
> > exten => ${BVRINGS},1,Macro(exten-vm,${BVRINGS}@default,${BVRINGS})
> >
> > Sorry for the confusion....
> >
> > Regards,
> > Derek
>
> (Old parts removed)
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list