how I could LOG outgoing calls ?

Catalog of dial plans
Post Reply
qubo
Posts: 127
Joined: Tue Apr 12, 2011 6:11 am

how I could LOG outgoing calls ?

Post by qubo » Fri Aug 08, 2014 4:13 pm

HI Aaron your incoming call logs by email was a success. Right now I am trying to make de oposite with Outgoing calls. could you help me to make log outgoing calls and email to gmail account here my outgoing dialplan
P.D. Only the outgoing number would be fine
thanks for your help Aaron

# Practical dial plan example.
sys.Log("New outgoing call received to #{req.URI.User}.")

case req.URI.User
# Speed Dials
when "500xxx3" then sys.Dial("123xxxx@local")
when "968xxxx5" then sys.Dial("00543xxxxxxx@superVoip[cd=460]")
when "4624xxx7" then sys.Dial("5412xxxxx4@local")
when "4624xxx3" then sys.Dial("55xxxxxxx@local")
when "5400xxxx" then sys.Dial("00542214xxxxx3@CheapVoip[cd=460]&00542214xxxxx@superVoip2[cd=460] [dt=7]|0054221xxxxx@CheapVoip[cd=460]")

# Prefix Dialing for Providers
when /^01342[1-9]/ then sys.Dial("0052342${EXTEN:5}@superVoip1[cd=405]&0052342${EXTEN:5}@superVoip2[cd=405] [dt=7]|0052342${EXTEN:5}@superVoip[cd=405]")
when /^0181[1-9]/ then sys.Dial("005281${EXTEN:4}@superVoip1[cd=405]&005281${EXTEN:4}@superVoip2[cd=405] [dt=7]|005281${EXTEN:4}@superVoip[cd=405]")

else sys.Dial("005233${EXTEN}@superVoip[cd=405]&005233${EXTEN}@superVoip2[cd=405] [dt=7]|005233${EXTEN}@superVoip[cd=405]")
end
Last edited by qubo on Wed Aug 20, 2014 5:38 pm, edited 1 time in total.

qubo
Posts: 127
Joined: Tue Apr 12, 2011 6:11 am

Re: how I could LOG outgoing calls ?

Post by qubo » Sat Aug 09, 2014 3:25 pm

well it seems that adding this below the sys.Log would work thanks

sys.Email("jcoxxxx@gmail.com", "Sipsorcery Outgoing Call", "calling to : #{req.URI.User}.")
Last edited by qubo on Wed Aug 20, 2014 5:38 pm, edited 2 times in total.

qubo
Posts: 127
Joined: Tue Apr 12, 2011 6:11 am

Re: how I could LOG outgoing calls ?

Post by qubo » Sun Aug 10, 2014 1:52 pm

If anyone wants this feature and make really fast could buy and app servicie for 4.99 one time called PUSHOVER it Works for android, iphone, and firefox plugin and chrome you are assigned an email that convert to push notifications

Post Reply