Hi,
Thanks for the reply.
After reading other forums, I also don’t believe that Asterisk should need to run as root, however, the person on expers exchange who had a similar problem said running as root fixed his problem.
The OP on EE says:
“Found the underlying cause. Asterisk on this system wasn’t running as root. Switching it to run as root solved the problem.”
He then goes on to say:
“Guesswork, but it appears to work something like this: If the calling device sets a CallerID, then the variable space is initialised, and hence Asterisk can update it. But if the calling device didn’t set the field at all (which is presumably what Zoiper does when no CallerID is set) then the field isn’t initialised in the first place and hence there’s nothing for Asterisk to set, and as it’s not root it doesn’t have permission to create the variable space.”
As I said in my OP, I was running TrixBox 2.0 VM image, using the same SIP Trunk supplier, and could set the Caller ID. However, after moving to a physical server, and running Asterisk & FreePBX, I can not set Caller ID, even with the same Outbound SIP Trunk settings.
If I add ‘fromuser=0845XXXXXX’ to the trunk, or in Zoiper’s advanced account options, it displays correctly. If I remove it, and add it to Outbound Caller ID in the trunk as “Name” <0845XXXX> it doesn’t display.
As for the other issue, I still can not pickup/answer incoming calls. The line just continues to ring. Zoiper is setup as an IAX2 client.
The following was in the log file after calling the DID from my mobile:
[2009-10-01 21:18:01] VERBOSE[4393] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: dialparties.agi: Caller ID name is ‘07XXXXXXX via My Company’ number is ‘0845XXXXXX’
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: dialparties.agi: Methodology of ring is ‘ringall’
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – dialparties.agi: Added extension 101 to extension map
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – dialparties.agi: Extension 101 cf is disabled
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – dialparties.agi: Extension 101 do not disturb is disabled
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – dialparties.agi: dbset CALLTRACE/101 to 0845XXXXXX
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – dialparties.agi: Filtered ARG3: 101
[2009-10-01 21:18:01] VERBOSE[4393] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – AGI Script dialparties.agi completed, returning 0
[2009-10-01 21:18:01] DEBUG[4390] app_macro.c: Executed application: AGI
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – Executing [s@macro-dial:7] Dial(“SIP/217.174.252.24-09c90728”, “IAX2/101|20|trM(auto-blkvm)”) in new stack
[2009-10-01 21:18:01] DEBUG[4390] chan_iax2.c: prepending 4 to prefs
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – Called 101
[2009-10-01 21:18:01] VERBOSE[2947] logger.c: – Call accepted by 192.168.0.5 (format ulaw)
[2009-10-01 21:18:01] VERBOSE[2947] logger.c: – Format for call is ulaw
[2009-10-01 21:18:01] VERBOSE[4390] logger.c: – IAX2/101-7020 is ringing
[2009-10-01 21:18:04] VERBOSE[4390] logger.c: – IAX2/101-7020 answered SIP/217.174.252.24-09c90728
[2009-10-01 21:18:04] VERBOSE[4390] logger.c: – Executing [s@macro-auto-blkvm:1] Set(“IAX2/101-7020”, “__MACRO_RESULT=”) in new stack
[2009-10-01 21:18:04] DEBUG[4390] app_macro.c: Executed application: Set
[2009-10-01 21:18:04] VERBOSE[4390] logger.c: – Executing [s@macro-auto-blkvm:2] DBdel(“IAX2/101-7020”, “BLKVM/600/SIP/217.174.252.24-09c90728”) in new stack
[2009-10-01 21:18:04] WARNING[4390] app_db.c: The DBdel application has been deprecated in favor of the DB_DELETE dialplan function!
[2009-10-01 21:18:04] VERBOSE[4390] logger.c: – DBdel: family=BLKVM, key=600/SIP/217.174.252.24-09c90728
[2009-10-01 21:18:04] DEBUG[4390] app_macro.c: Executed application: dbDel
[2009-10-01 21:18:04] DEBUG[4390] app_dial.c: Macro exited with status 0
[2009-10-01 21:18:18] VERBOSE[4390] logger.c: – Hungup ‘IAX2/101-7020’