spawn extension by dialing with Asterisk
|
| Author |
Message |
greenhorn
Joined: Aug 07, 2006
Posts: 4
Status: Offline
|
| Posted:
Aug 07, 2006 - 02:09 PM |
|
|
Dear guys,
I am using one line and I have a spawn extension ....
I'm dialing with asterisk and have following messages:
Script:
exten => _XXX.,n,DIAL(SIP/sip_proxy-out/${EXTEN})
or this one, doesn't matter ...
exten => _XXX.,n,DIAL(SIP/${EXTEN}@sip_proxy-out)
Console:
-- Executing Dial("SIP/phone131-1155", "SIP/sip_proxy-out/074545454") in new stack
-- Called sip_proxy-out/074545454")
-- SIP/sip_proxy-out-5b8a is making progress passing it to SIP/phone131-1155
== Spawn extension (default, 074545454 8 ) exited non-zero on 'SIP/phone131-fa2f'
Asterisk is dialing but the Console says ....
== Spawn extension (default, 074545454 8 ) exited non-zero on 'SIP/phone131-fa2f'
what happens here ?
It seems something missing in extensions.conf.
Do someone have a hint ?
kindly regards
greenhorn |
|
|
|
 |
hmmhesays
Joined: Feb 02, 2006
Posts: 9
Status: Offline
|
| Posted:
Aug 07, 2006 - 06:42 PM |
|
|
Post a sip debug of the call. Spawn extension means the call is no longer active. |
|
|
|
 |
greenhorn
Joined: Aug 07, 2006
Posts: 4
Status: Offline
|
| Posted:
Aug 08, 2006 - 07:49 AM |
|
| hmmhesays : | | Post a sip debug of the call. Spawn extension means the call is no longer active. |
first I would ask one question:
It seems sometimes thas this message is normal on hangingup
or also by playing musiconhold() and so on ...
here is a simple extensions.conf script:
1 [default]
2 include => internal
3 [internal]
4 exten => _XXX,1.DIAL(SIP/agent${EXTEN},20}
5 exten => _XXX,n,NoOp(${EXTEN})
6 exten => _XXX,n,Set(BILLSEC=${CDR(billsec)})
7 exten => h,1,NoOp(${EXTEN})
the message comes up after line 4 - the message appears also on every DIAL-,Musiconhold- and other commands!
line 5 doesn't work, but I need it for billing issues
line 6 doesn't work
line 7 does work
here is the sip debug, I think:
-- Executing Dial("SIP/agent131-1c48", "SIP/agent133|20") in new stack
-- Called agent133
-- SIP/agent133-b2d3 is ringing
-- SIP/agent133-b2d3 answered SIP/agent131-1c48
-- Attempting native bridge of SIP/agent131-1c48 and SIP/agent133-b2d3
== Spawn extension (default, 133, 1) exited non-zero on 'SIP/agent131-1c48'
-- Executing NoOp("SIP/agent131-1c48", "h") in new stack
why are line 5 and 6 not working?
sometimes flag g is helping
4 exten => _XXX,1.DIAL(SIP/agent${EXTEN},20,g}
I'm looking forward
kindly regards
greenhorn |
|
|
|
 |
ianplain
Site Admin
Joined: Jul 05, 2004
Posts: 2962
Location: Bath UK
Status: Offline
|
| Posted:
Aug 09, 2006 - 12:05 AM |
|
OK this is going to sound a little harsh
AHHHHHHHHHHHHHHHHHHHHHHHHHH
How is anyone meant to know what is happening unless you post ALL the relevent sections of the .conf files, little snippets on their own mean NOTHING without the whole picture.
As to the problem with the billsec, How exactly do you think * will know what the billsec is before the call ends. this hase to be called from the h extension
for example
| Code: |
exten => h,1,Set(foo=${CDR(billsec)}) ; this will be 0
exten => h,n,Noop(${DIALEDTIME})
exten => h,n,Noop(${ANSWEREDTIME}) ; this is the call duration
exten => h,n,Math(cost_mult,1000*${mult})
exten => h,n,Math(call_dur,${ANSWEREDTIME}*${cost_mult})
exten => h,n,Noop(${call_dur})
exten => h,n,Math(calltime,${calltime}-${call_dur})
exten => h,n,Noop(${calltime})
exten => h,n,set(DB(calldur/${acc_code})=${calltime})
|
Ian |
|
|
|
 |
gogots
Joined: Apr 07, 2008
Posts: 2
Location: Atlanta
Status: Offline
|
| Posted:
Apr 07, 2008 - 10:18 PM |
|
|
Greenhorn ?
What ports are open in your firewall for the VOIP servuce ? |
|
|
 |
 |
|
| Forum Rules and Guidelines |
About VoIP User |
Privacy Policy
|
All logos and trademarks in this site are property of their respective owner. Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.
VoIP User Limited is incorporated in England and Wales under Company Number 6694577.
No part of this site may be reproduced without our prior consent.
|
|